Re: Startup Script install software



I'd assume it has to do with permissions. Does "Authenticated Users" have Read/Execute permissions to the share? Startup scripts run under the context of the SYSTEM account so you need to grant the client AD computer accounts access to the share. I assume Authenticated User would work, but if you're worried about others executing it you could create a group of your target workstations.

--
Joseph T. Corey MCSE, MCITP-EA
Windows Systems Administrator

"Troy" <Troy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:5B9F52EC-1CE5-4F81-A82D-9EB2317DE48C@xxxxxxxxxxxxxxxx
I have a very small exe program I need to install on several workstations. I
do not have a msi nor do I want to journey into creating one. I want to use
the startup script so I can use the local system rights for the install,
however it isn't working. My script works if you run it manually so I don't
think it's my script. I even tried creating a batch file and use
start \\servername\share\program.exe
and this didn't work either. It does allow my script to create a flag in
the registry though.

Const HKEY_LOCAL_MACHINE = &H80000002

Set oShell = CreateObject("WScript.Shell")
strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Numara"
strValueName = "flag"
oReg.GetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath, _
strValueName,strValue

Wscript.Echo "value is: " & strValue

'test for install using registry flag
'if flag isn't present, install numara host
'and create registry flag
if strValue = "installed" then
msgbox "Numara already installed"
else
oShell.Run "\\servername\install$\nrchost.exe"

strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Numara"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath

strKeyPath = "SOFTWARE\Numara"
strValueName = "flag"
strValue = "installed"

oReg.SetStringValue _
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

end if

.



Relevant Pages

  • Re: Startup Script install software
    ... I granted the computer account everything but full permissions. ... the startup script so I can use the local system rights for the install, ... My script works if you run it manually so I ... It does allow my script to create a flag in ...
    (microsoft.public.windows.server.active_directory)
  • Re: Startup Script install software
    ... it does a silent install. ... the startup script so I can use the local system rights for the ... strValueName = "flag" ...
    (microsoft.public.windows.server.active_directory)
  • Re: Startup Script install software
    ... Just create a global group and place those computers you want it distributed to and give them the apply policy to the software install policy and link it to the ou where the computers reside. ... It does allow my script to create a flag ...
    (microsoft.public.windows.server.active_directory)
  • Re: Startup Script install software
    ... it does a silent install. ... the startup script so I can use the local system rights for the ... It does allow my script to create a flag ...
    (microsoft.public.windows.server.active_directory)
  • Re: Login Script - Installing HotFix/Patches
    ... >> When I install the hotfix's patches via login script they work fine. ... > You could let the script make a flag file (e.g. in the ... > Check the version number of a dll/exe file that the hotfix includes to see ...
    (microsoft.public.security)

Quantcast