AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

WMI Remote Softwareinstallation

Ein Thema von Christof · begonnen am 11. Okt 2004 · letzter Beitrag vom 11. Okt 2004
Antwort Antwort
Christof

Registriert seit: 15. Jan 2003
Ort: Saarland
97 Beiträge
 
Delphi 2005 Architect
 
#1

WMI Remote Softwareinstallation

  Alt 11. Okt 2004, 18:01
Hallo,

hat jemand Ahnung wie ich per remote Software über WMI installiere kann?

Ich habe schon mehrmals gesehen das das mit mit WMI geht. Es gibt diverse Programme die

WMI Beispiel

So etwas will ich nachbauen für mein Programm wie geht das ? Mit .NET ???


Gruß

Christof
  Mit Zitat antworten Zitat
Alter Mann

Registriert seit: 15. Nov 2003
Ort: Berlin
934 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: WMI Remote Softwareinstallation

  Alt 11. Okt 2004, 19:06
Hallo Christof,

Erfahrung habe ich noch keine damit, aber hier ein Beispiel:

Code:
Installing Software on a Remote Computer

Description
Installs a hypothetical software program (using a Windows Installer package) on a remote computer. Requires delegation for the computer and user accounts involved in the procedure.

Supported Platforms

Windows Server 2003    Yes, with the Windows Installer WMI provider installed
Windows XP            Yes
Windows 2000           Yes
Windows NT 4.0         Yes, with WMI installed
Windows 98             Yes, with WMI installed

Script Code

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)
Wscript.Echo errReturn
für mehr Info empfehle ich den Anhang.
Angehängte Dateien
Dateityp: exe script_center_repository_658.exe (1,60 MB, 33x aufgerufen)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:55 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz