| |
wynken
Posts: 2
Score: 0
Joined: 7/23/2004
From:
Status: offline
|
Hello there! Newbie here. ;-) I need to write a vbscript (if possible) to check if a particular .dll is registered on a remote PC, and if it is not registered, I need to register it. Is there any way to do this in vbscript? I was able to put the script below with alot of cut & paste from other scripts. The first part of the script tests to see if we can connect to the remote PC. The part that I need is to check if the .dll is registered, and if not, to register it. ___________________________________ On Error Resume Next If WScript.Arguments.Count = 0 Then Wscript.Echo "Usage: regdll.vbs computername" Wscript.Echo "Where computername is the remote PC you want to connect to." WScript.Quit End If For Each Computer In WScript.Arguments Set objWMIService = GetObject("winmgmts://" & Computer) If Err.Number <> 0 Then Wscript.Echo Computer & " " & Err.Description Err.Clear Else Wscript.Echo "Connected to: " & Computer End if Next __________________________________________ Any help that could be provided is greatly appreciated. ;-) wynken
|
|