VBScript: Run a DOS command
CommandLine = “dir c: |more” Set WshShell = CreateObject(“WScript.Shell”) WshShell.Run “CMD /C ” & CommandLine
View ArticleVBScript: List members of Novell group and print them to a textfile.
‘List members of Novell group.vbs strNovellGroup = “gultragenda” ‘ Main Prog GetMembers Sub GetMembers() CommandLine = “z:\nlist.exe group = ” & strNovellGroup & ” SHOW MEMBER /S /R | sort /+9...
View ArticleSet permission for Redirected Folders in bulk
If your environment needs multiple shares to store Redirected Folders. Such as a school environment, if they want split up every class or year .. Set permissions to these folders can be time consuming...
View ArticleThe struggle with quotes, WScript.Shell RUN propertie and XCACLS
Set permissions on bulk with XCACLS and VBScript is rather easy. But if you must pass some variables through the commad line, it can give you a long and painfull headache. For example quotes around...
View ArticleActive Directory: Users’ last logon timestamp
With the attribute Last-Logon-Timestamp it is possible to retrieve a users’ last logon date. Keep in mind that syncronisation of this attribute only happens on a 14 day schedule (default config). Read...
View ArticleEventquery.vbs: ERROR: Unable to execute the query for the ‘security’ log
I was querying the Security log from a server with eventquery.vbs, suddenly the Microsoft script returned this error: ERROR: Unable to execute the query for the 'security' log. Turned out that this...
View Article
More Pages to Explore .....