Re: Startup Script install software



I granted the computer account everything but full permissions. If it was a
permissions issue then it would allow the exe to run at all. It's running
and creating the registry key and string value.

"Joseph T Corey" wrote:

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: trying to load XP SP3
    ... The last line of the script they have you copy/pastre reads: ... If you download the Subinacl.exe and install it and then copy/paste the text ... run it on your system - it eill change the registry and file permissions to ...
    (microsoft.public.windowsxp.general)
  • 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
    ... the startup script so I can use the local system rights for the install, ... My script works if you run it manually so I don't ... It does allow my script to create a flag in ...
    (microsoft.public.windows.server.active_directory)
  • Re: how to install a .msp using GPO
    ... Very helpful Meinolf, thank you. ... When I setup the share permissions, ... script, it runs with system permission on the local computer. ... Will this install with the proper permissions? ...
    (microsoft.public.windows.group_policy)
  • 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)