Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Reg-Key in CurrentUser

Status
Not open for further replies.

GerhardR

IS-IT--Management
Feb 24, 2005
90
0
0
AT
Hi!

We've this in a *.REG-File:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"UserPreferencesMask"=hex:be,3e,07,80


A batch file uses this file with "regedit -s <Name>.reg"

If I start the Batch-File in the explorer - everything works fine. It doesn't if I use this Batch-File for SMS. Do you have an Idea, what went wrong? In the Status-Messages the Advertisements are with success, but nothing changes on the clients?!

Thanks for help!
Gerhard

 
It needs to be set to "Only when a user is logged on" and the mode must be set to "Run with user's rights" to install under the currently logged on user registry key HKEY_CURRENT_USER otherwise it will run with whatever account SMS is using for the install
 
Thank you!!!

I run it with administrative rights - that was the problem.

Thanky you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top