Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Install Application via VBS Script

HTVi
TV Discussion Newsgroups

Install Application via VBS Script
Mrl1te 4/25/2007 6:42:04 PM
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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen