Hi, I am using a WMI script to rename/IP machines per their mac address -- when that is done I am using the following to call a command that joins to the domain and performs some other things. I just want to see if someone can clarify the syntax for me and provide other available options you can use. Basically - I want the script to run the command, wait while it executes, then close all windows. Here is the code I am using.
set objWMIService = GetObject("winmgmts://" & Computer)
set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run"cmd.exe /C test.bat", 1, TRUE
I assume the /C will close the window -- but not sure
Note sure what ,1, TRUE do
Any clarification and extra info would be greatly appreciated!