I created this command in vbscript and output to a file, but really I would like to assign the output to a variable so I can 'If variable = "whatever" then' in my vbscript code. Any ideas?
Set objShell = CreateObject("WScript.Shell")
strRun = "%comspec% /c cacls C:\ | find ""Domain Admins"" >...
I have this code below that will write a registry value to a file. I want the next line in the code to say if the registry value = 1 then write [PASSED!] if anything else write [FAILED!].
Set WshShell = WScript.CreateObject("WScript.Shell")
outfile.writeline "Append parent suffix of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.