$cName = InputBox('Lets Audit','Type a computername to audit:')
if StringLen($cName) > 0 Then
RunWait(@ComSpec & ' /c ' & 'psexec.exe \\' & $cName & ' systeminfo > '& $cName & '.log & pause')
Else
MsgBox(0,'Info','No computername was entered. Exiting.. Bye. Have a nice day!')
EndIf
No comments:
Post a Comment