Jump to content

FirstLogonCommands to run a .reg file


Recommended Posts


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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...