Prev: Replacing faulty disk in a software RAID5 array, on server 200
Next: Issues with Granular Backup on Server 2008 with Exchange 07 & NFS
From: OlivierT on 20 Apr 2010 11:55 Thank you for your responses but it doesn't work with my win 2008 R2. I create Run key under HCU\Software\Microsoft\Windows. In Run Key, I create 2 entries with REG_SZ named a and b. I tryed to execute the command by the Run menu and it works fine. When I logoff and login again, the command doesn't lunched. Olivier "Ace Fekay [MVP - Directory Services]" wrote: > On Mon, 19 Apr 2010 11:36:42 -0600, "Dave Patrick" > <DSPatrick(a)nospam.gmail.com> wrote: > > >Ace, > > > >HKEY_USERS\.DEFAULT subkey is not for new users. It is loaded when no one is > >logged on aka (system account) For current_user you would, as you mentioned, > >need to have the user logged on or edit the users hive by loading (File|Load > >Hive) ntuser.dat within their profile folder. > > > >\Default User profile uses ntuser.dat in \default user directory. > > > Thanks for the correction. :-) > > As for the User Run key, I would imagine if he can identify the SID of > the user, he can change it in HKEY_USERS, too. Sometimes if an account > has problems such as from a virus, if there are any other accounts, > I've logged in as the other account (as long as an admin account), and > went in there to check and change the user's Run key, if anything > looks suspicious. > > Ace > . >
From: OlivierT on 20 Apr 2010 12:03 When i lunch the command, it doesn' ask me an elevation of privilege. It works fine without prompting something. Thank you. "Chris M" wrote: > On 19/04/2010 16:45, OlivierT wrote: > > Hi all, > > > > With Windows 2003, I'm using > > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run to lunch > > process each time the user log in. > > I tryed to create the same key at the same place with Windows 2008 but it > > doesn't work. > > > > How can I do the same with Windows 2008 ? Does the Run Key still exist ? > > The key still exists, and it's still in the same place. > > I'm running Server 2008 R2 x64 and I have a program set to start at > login using this key. It works fine. > > If you run the program manually, does it require elevation or do > anything else that might prevent it from working correctly on Server 2008? > > -- > Chris M. > . >
From: Chris M on 20 Apr 2010 12:06 On 20/04/2010 16:55, OlivierT wrote: > Thank you for your responses but it doesn't work with my win 2008 R2. > > I create Run key under HCU\Software\Microsoft\Windows. In Run Key, I create > 2 entries with REG_SZ named a and b. > I tryed to execute the command by the Run menu and it works fine. You shouldn't need to create the Run key itself - it should already be there under HKCU\Software\Microsoft\Windows\CurrentVersion - was it not there already? -- Chris M. > "Ace Fekay [MVP - Directory Services]" wrote: > >> On Mon, 19 Apr 2010 11:36:42 -0600, "Dave Patrick" >> <DSPatrick(a)nospam.gmail.com> wrote: >> >>> Ace, >>> >>> HKEY_USERS\.DEFAULT subkey is not for new users. It is loaded when no one is >>> logged on aka (system account) For current_user you would, as you mentioned, >>> need to have the user logged on or edit the users hive by loading (File|Load >>> Hive) ntuser.dat within their profile folder. >>> >>> \Default User profile uses ntuser.dat in \default user directory. >> >> >> Thanks for the correction. :-) >> >> As for the User Run key, I would imagine if he can identify the SID of >> the user, he can change it in HKEY_USERS, too. Sometimes if an account >> has problems such as from a virus, if there are any other accounts, >> I've logged in as the other account (as long as an admin account), and >> went in there to check and change the user's Run key, if anything >> looks suspicious. >> >> Ace >> . >>
From: Ace Fekay [MVP - Directory Services] on 20 Apr 2010 13:51 I agree with Chris. You do not create that key. The system creates it for the currently logged on user account. You stated in created it in this location. HCU\Software\Microsoft\Windows It should exist in: HCU\Software\Microsoft\Windows\CurrentVersion\Run But it looks like it was just a typo, since you stated the correct path in your original post. Are there any errors in the Event logs? Ace On Tue, 20 Apr 2010 08:55:02 -0700, OlivierT <OlivierT(a)discussions.microsoft.com> wrote: >Thank you for your responses but it doesn't work with my win 2008 R2. > >I create Run key under HCU\Software\Microsoft\Windows. In Run Key, I create >2 entries with REG_SZ named a and b. >I tryed to execute the command by the Run menu and it works fine. > >When I logoff and login again, the command doesn't lunched. > >Olivier > > >"Ace Fekay [MVP - Directory Services]" wrote: > >> On Mon, 19 Apr 2010 11:36:42 -0600, "Dave Patrick" >> <DSPatrick(a)nospam.gmail.com> wrote: >> >> >Ace, >> > >> >HKEY_USERS\.DEFAULT subkey is not for new users. It is loaded when no one is >> >logged on aka (system account) For current_user you would, as you mentioned, >> >need to have the user logged on or edit the users hive by loading (File|Load >> >Hive) ntuser.dat within their profile folder. >> > >> >\Default User profile uses ntuser.dat in \default user directory. >> >> >> Thanks for the correction. :-) >> >> As for the User Run key, I would imagine if he can identify the SID of >> the user, he can change it in HKEY_USERS, too. Sometimes if an account >> has problems such as from a virus, if there are any other accounts, >> I've logged in as the other account (as long as an admin account), and >> went in there to check and change the user's Run key, if anything >> looks suspicious. >> >> Ace >> . >>
From: OlivierT on 21 Apr 2010 04:13
Hi, No, the key wasn't already created. I had to create it myself... Olivier "Chris M" wrote: > On 20/04/2010 16:55, OlivierT wrote: > > Thank you for your responses but it doesn't work with my win 2008 R2. > > > > I create Run key under HCU\Software\Microsoft\Windows. In Run Key, I create > > 2 entries with REG_SZ named a and b. > > I tryed to execute the command by the Run menu and it works fine. > > You shouldn't need to create the Run key itself - it should already be > there under HKCU\Software\Microsoft\Windows\CurrentVersion - was it not > there already? > > -- > Chris M. > > > "Ace Fekay [MVP - Directory Services]" wrote: > > > >> On Mon, 19 Apr 2010 11:36:42 -0600, "Dave Patrick" > >> <DSPatrick(a)nospam.gmail.com> wrote: > >> > >>> Ace, > >>> > >>> HKEY_USERS\.DEFAULT subkey is not for new users. It is loaded when no one is > >>> logged on aka (system account) For current_user you would, as you mentioned, > >>> need to have the user logged on or edit the users hive by loading (File|Load > >>> Hive) ntuser.dat within their profile folder. > >>> > >>> \Default User profile uses ntuser.dat in \default user directory. > >> > >> > >> Thanks for the correction. :-) > >> > >> As for the User Run key, I would imagine if he can identify the SID of > >> the user, he can change it in HKEY_USERS, too. Sometimes if an account > >> has problems such as from a virus, if there are any other accounts, > >> I've logged in as the other account (as long as an admin account), and > >> went in there to check and change the user's Run key, if anything > >> looks suspicious. > >> > >> Ace > >> . > >> > > . > |