/build/static/layout/Breadcrumb_cap_w.png

Runonce reg key for mutliple users

I've read that the runonce registry key should be run for each time a new user logs in, as stated here:

http://msdn.microsoft.com/en-us/library/aa376977%28VS.85%29.aspx

my problem is that when I put a key in under either HKLM or HKCU it only runs for the username that i was logged into when i created the key.

What piece am I missing?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: mike.burns7 14 years ago
Yellow Belt
0
I believe i have found my answer.
The user needs to be a administrator to run the Run/RunOnce Registry key?

is there a way around this? give the user permission to run this key without admin rights?
Posted by: WSPPackager 14 years ago
Senior Purple Belt
0
Hi Mike,

Why dont you use Active Setup? This will make sure to run whenever new user log onto that machine.

You can find nice article on this in AppDeploy. http://itninja.com/blog/view/appdeploy:-articles:-activesetup

Regards,
WSP packager.
Posted by: mike.burns7 14 years ago
Yellow Belt
0
thanks i was not aware of the active setup key

for the UID, i read that it is good practice to keep them unique. can i make it anything I want or is there a practice i should follow to create a UID?
Posted by: anonymous_9363 14 years ago
Red Belt
0
GUIDs are, by defintion, unique. Here's some code I use occasionally for creating them. The 'copying to clipboard' functionality is optional, obviously:Option Explicit

Dim objTypeLib
Dim strGUID
Dim objIE

On Error Resume Next

Set objTypeLib = CreateObject("Scriptlet.TypeLib")
If Err.Number <> 0 Then
WSCript.Quit(False)
End If

strGUID = objTypeLib.Guid

'// Use IE to get GUID into clipboard
Set objIE = CreateObject("InternetExplorer.Application")
If Err.Number <> 0 Then
WSCript.Quit(False)
End If

objIE.Navigate("about:blank")
objIE.document.parentwindow.clipboardData.SetData "text", strGUID
objIE.Quit

Set objIE = Nothing
Set objTypeLib = Nothing
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ