Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
on error resume next
set process = GetObject("winmgmts:{impersonationLevel=impersonate}!Win32_Process")
set startupinfo = GetObject("winmgmts:{impersonationLevel=impersonate}!Win32_ProcessStartup") set instance = startupinfo.SpawnInstance_
instance.Title = "Hairy woobit"
result = process.Create ("notepad.exe",,instance,processid)
WScript.Echo "Method returned result = " & result WScript.Echo "Id of new process is " & processid
if err <>0 then WScript.Echo Hex(Err.Number) end if
|