SMS Package: DeleteKey
Command Line: cscript DeleteKey.vbs
'DeleteKey
Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objRegistry=GetObject("winmgmts:\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Office\MS Project\Profiles\Project
Server"
objRegistry.DeleteKey HKEY_CURRENT_USER, strKeyPath
Why does this work when running the script from command line, and
doesn't work when execute via SMS. I'm hoping someone can help
me...I'm at a loss.
Thanks
<tro...@integrysgroup.com> wrote in message
news:e7bd421d-c871-4c17...@2g2000hsn.googlegroups.com...
Not sure as to what you are inquiring about...admin mode in
Advertisement?? The advertisement was set up with name, package and
program, assigned to collection, and no mandatory assignment, advanced
client set to run from DP.
Could this be an issue with the the SMSservice Account not having
sufficient rights to modify a PC's registry? And if so, how could one
verify this??
I have found it adds/remove the Reg Key in HKCU\.Default\Software
\Microsoft\Office\Ms Project|Profiles, instead of HKCU\Software\...
when deploying this from SMS. Is there a script I can run to put it
in Current User or some setting in SMS?
<tro...@integrysgroup.com> wrote in message
news:3884356a-b0f7-453d...@x41g2000hsb.googlegroups.com...
Working now. I changed run mode to run with user's rights! -Thanks