Re: Startup Script install software
- From: Troy <Troy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Oct 2008 11:19:02 -0700
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
- References:
- Startup Script install software
- From: Troy
- Re: Startup Script install software
- From: Joseph T Corey
- Startup Script install software
- Prev by Date: Re: problems with the main DC
- Next by Date: Re: Windows user name limit?
- Previous by thread: Re: Startup Script install software
- Next by thread: Re: Startup Script install software
- Index(es):
Relevant Pages
|