Jump to content

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 ?

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

Link to comment
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 !!!

Link to comment
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
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...