C:\>psexec \\%computername% -c -i -w c:\temp cmd.exe /c "c:\temp\602xmlfiller.msi"
a nebo: strComputer = „atl-dc-02“ Set objWMIService = GetObject(„winmgmts:“ _ & „{impersonationLevel=impersonate}!\\“ & strComputer & „\root\cimv2“) Set objSoftware = objWMIService.Get(„Win32_Product“) errReturn = objSoftware.Install(„c:\scripts\database.msi“,,True) Wscript.Echo errReturn
zdroj – http://technet.microsoft.com/cs-cz/library/ee156549%28en-us%29.aspx
Jméno:
Email:
Web:
*povinné položky - email nebude zobrazen
a nebo:
strComputer = „atl-dc-02“
Set objWMIService = GetObject(„winmgmts:“ _
& „{impersonationLevel=impersonate}!\\“ & strComputer & „\root\cimv2“)
Set objSoftware = objWMIService.Get(„Win32_Product“)
errReturn = objSoftware.Install(„c:\scripts\database.msi“,,True)
Wscript.Echo errReturn
zdroj – http://technet.microsoft.com/cs-cz/library/ee156549%28en-us%29.aspx