MSFN Forum: FirstLogonCommands to run a .reg file - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

FirstLogonCommands to run a .reg file

#1 User is offline   brallor 

  • Group: Members
  • Posts: 1
  • Joined: 02-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 March 2012 - 04:28 AM

Hi

I want my Wes7 to run .reg file to change in the register direct after first logon, what shall i write in the answer file?

Posted Image


Thanks


#2 User is offline   mandrake 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 02-March 12
  • OS:none specified
  • Country: Country Flag

Posted 02 March 2012 - 09:35 AM

I assume you wish to do that as an admin?
If that's the case it's my understanding that you must get the automatic logon as an admin user to work during oobeSystem pass a.k.a "Welcome". If you can get that to work then it should be a matter of adding

Microsoft-Shell-Setup|FirstLogonCommand|SynchronousCommand|Path=regedit /s <path to your reg-file>


... in oobeSystem pass.

But that only works if the oobeSystem pass runs at all. In my case it doesn't for some reason I don't know.

Good luck.

#3 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 02 March 2012 - 09:53 AM

Its the same for WES7 as it is for Win7. Example:

			<FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Description>Running Registry Change</Description>
                    <CommandLine>cmd /C start /wait c:\folder\registry_change.exe</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>


In my case, I do not put the command in there. You could use a .cmd file in that place if you'd like.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy