|
|
I am very new to scripting but understand networking and administration of networks. I am wanting to install an application with elevated privileges and found this sample script on the Microsoft Scripting Samples site:
Const wbemImpersonationLevelDelegate = 4
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objConnection = objwbemLocator.ConnectServer _ ("WebServer", "root\cimv2", "fabrikam\administrator", _ "password", , "kerberos:WebServer") objConnection.Security_.ImpersonationLevel = wbemImpersonationLevelDelegate
Set objSoftware = objConnection.Get("Win32_Product") errReturn = objSoftware.Install("\\atl-dc-02\scripts\1561_lab.msi",,True)
Since I know absolutely nothing about what this is doing, could some please help me to customize it for my environment and possibly shed some light on whether this will allow me to elevate the privileges of the user so that the software can be installed if they are only a member of the "users" group on the local machine?
Any help would be greatly appreciated.
Steven Gear
|
|
|