Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
raffa

Add key registry in autountttend.xml

Recommended Posts

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList","Administrator",0x00000001>

<Order>1</Order>

</SynchronousCommand>

</FirstLogonCommands>

It's possible ?

Share this post


Link to post
Share on other sites

Raffa,

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>\\servername\share\file.reg
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>

rather then trying to add just the single registry edit just add it through a .reg file. even if you are trying to add a single registry change you need to use a reg file

Share this post


Link to post
Share on other sites

Think you may want to slap in an actual command with that

%SYSTEMROOT%\regedit.exe /s \\servername\share\file.reg

the /s will remove any warnings and make it run silent

Edited by ubernerd

Share this post


Link to post
Share on other sites

Thank....in fact my problem e' that one to make to execute rows, reg.

After to have created:

$oem$ -->$1-->myshare
the rows .reg come copied in myshare, but it does not come executed. Hour one what I have not understood:
%SYSTEMROOT%\regedit.exe /s \\servername\share\file.reg

My account it's Administrator, I must write:

%SYSTEMROOT%\regedit.exe /s \\Administrator\myshare\file.reg

Thanks many for your aid !!!

Share this post


Link to post
Share on other sites

raffa

I see now what you're trying to do is add the Administrator to show at the logon screen

and this may do it but I haven't tried

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>regedit /s A:\UserList.reg</CommandLine>

<Order>1</Order>

</SynchronousCommand>

</FirstLogonCommands>

FULL path to this reg file wherever it is. You don't need \\ unless its on a Network share. If its on a drive somewhere

or floppy then simply regedit /s A:\UserList.reg

Create this as UserList.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]
"Administrator"=dword:00000001

FirstLogonCommands are run after logon but prior to showing the desktop.
It won't show first time you get there because of this. This will NOT create this account with this. It only shows it if it does exist. Edited by maxXPsoft

Share this post


Link to post
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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×