Runonce reg key for mutliple users
Add your rating:
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?
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)
Please log in to answer
Posted by:
mike.burns7
15 years ago
Posted by:
WSPPackager
15 years ago
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.
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
15 years ago
Posted by:
anonymous_9363
15 years ago
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

so that the conversation will remain readable.