i have used this for an old RM app that needed user access to its own keys
save this as .vbs and call from your login script
Code:
' VBScript.
'
set WshShell = CreateObject("WScript.Shell")
' IN THE NEXT LINE (starting WshShell.Run..)
WshShell.Run "runas /user:administrator@domain.sch.uk ""\\server\netlogon\reg\setacl_r_snapshot.bat"""
WScript.Sleep 1000
' IN THE NEXT LINE (starting WshShell.SendKeys..)
'a) Enter an administrator password and leave the "~"
WshShell.Sendkeys "passwordhere~"
WScript.Quit()
save this as .bat
Code:
'edu-tech solutions Nov 2007
' install registry key
regedit /s \\2100-fs01\NETLOGON\reg\rm.reg
' set permissions on key
call "\\server\NETLOGON\reg\SetACL.exe" -on "HKEY_LOCAL_MACHINE\SOFTWARE\InterActual Technologies" -ot reg -actn ace -ace "n:domain.sch.uk\Domain Users;p:full"
call "\\server\NETLOGON\reg\SetACL.exe" -on "HKEY_LOCAL_MACHINE\SOFTWARE\Research Machines" -ot reg -actn ace -ace "n:domain.sch.uk\Domain Users;p:full"
and make sure that setacl.exe is in the same folder.
replace domain, server iand password in the scripts with the appropriate info
a bit messy i know, but it works.
hope this helps.
BoX