Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im adding a logon script to a GPO to install a program for me. Can anyone see a problem with this script? When the PC boots it comes up saying that it can find the resource?


On Error Resume Next

strPlugin = "HKLM\Software\BottomlineTechnologies\TransformInstallationSystem\CurrentInstallPath"
strApp = "cmd /c \\\sysvol\\scripts\Apps\setup.exe installpath selectall autoexit hide"

Set WSHShell = CreateObject("WScript.Shell")
sReg = WSHShell.RegRead(strPlugin)

If Err.Number <> 0 Then
 'Plugin not yet installed
 WSHShell.Run strApp, 0, true
 WSHShell.LogEvent EVENT_SUCCESS, "InstalledPlugin"
 WSHShell.LogEvent EVENT_SUCCESS, "Plugin already installed."
End If

share|improve this question
The GP is a computer install not user. – user50966 Aug 12 '10 at 8:02
up vote 1 down vote accepted

At first glance: the UNC path needs to start with two backslashes, i.e.:

 strApp = "cmd /c \\\sysvol\... 

It appears that only a single backslash is used above.

share|improve this answer
Yeah that was just me editing the post wrong in here. – user50966 Aug 13 '10 at 4:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.