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"" > C:\woop.txt"
objShell.Run strRun, 1, True
Set objShell = CreateObject("WScript.Shell")
strRun = "%comspec% /c cacls C:\ | find ""Domain Admins"" > C:\woop.txt"
objShell.Run strRun, 1, True