Help with AD Login script
Posted on 2008-06-20
Im having a little trouble getting a login script working. What I need to do is allow read/write access to the following Touchstar registry key and its child keys
Do you any of you guys have a script or software that will allow this? Here is my current login script that im working off.
;Maps E: to Proteldata share for Pinnacle
net use e: \\ordentry\pi-2000
;Sets user desktop to deafult values upon login
rmdir /s /q "%userprofile%\desktop"
;Runs batch job to clear Pinnacle cache directory
\\ansa_nas\admin\it\dave\util\lsrunas /user:batch_run /password:xxxxxxxxx /domain:abc123.local /command:\\192.168.25.42\admin\it\dave\util\Del_cache.bat /runpath:c:\
;Add read/write permissions to registry key for Touchstar users (part of the script that keeps failing)
cd "D:\Program Files\Support Tools"
setacl -on "hklm\software\microsoft\" -ot reg -actn ace -ace n:%computername%\everyone;p:full
;Copies folder to users desktop with utilites needed to take calls
xcopy \\192.168.25.42\admin\Pinnacle_Inbound "%userprofile%\desktop\Pinnacle_Inbound" /I /Y
;Pause is included for testing. It will be removed once the login script is finalized