Teknoratti
Technical User
I'm looking for help to create a vbscript to install a .msi software package. Here is my goal:
I want to place a .msi file on a network folder, i.e \\computerA\Package\software.msi
The .vbs file will be on another network drive folder. Basically any user who executes this .vbs file will have the .msi file installed on their local computer.
The software will be installed in the default location of c:\program files, and there will be no user interaction. Once the software is install. I also want to append the following script as the second step in the process, basically it will be a two part script: The first part will install the software, the second part will change a few registry settings which are listed below.
Option Explicit
Dim sName
Dim objReg
Dim strKeyPath
Dim ValueName
Dim strValue
Const HKEY_LOCAL_MACHINE = &H80000002
sName = InputBox("Input Computer Name to Remove Symantec Password")
Set objReg = GetObject("winmgmts:\\" & sName & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\AdministratorOnly\Security"
ValueName = "LockUnloadServices"
objReg.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, strValue
If strValue=1 Then
objReg.setDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, 0
End If
ValueName = "UseVPUninstallPassword"
objReg.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, strValue
If strValue=1 Then
objReg.setDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, 0
End If
After both scripts run I want the computer to reboot. Can anyone help?
Thanks
I want to place a .msi file on a network folder, i.e \\computerA\Package\software.msi
The .vbs file will be on another network drive folder. Basically any user who executes this .vbs file will have the .msi file installed on their local computer.
The software will be installed in the default location of c:\program files, and there will be no user interaction. Once the software is install. I also want to append the following script as the second step in the process, basically it will be a two part script: The first part will install the software, the second part will change a few registry settings which are listed below.
Option Explicit
Dim sName
Dim objReg
Dim strKeyPath
Dim ValueName
Dim strValue
Const HKEY_LOCAL_MACHINE = &H80000002
sName = InputBox("Input Computer Name to Remove Symantec Password")
Set objReg = GetObject("winmgmts:\\" & sName & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\AdministratorOnly\Security"
ValueName = "LockUnloadServices"
objReg.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, strValue
If strValue=1 Then
objReg.setDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, 0
End If
ValueName = "UseVPUninstallPassword"
objReg.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, strValue
If strValue=1 Then
objReg.setDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, ValueName, 0
End If
After both scripts run I want the computer to reboot. Can anyone help?
Thanks