Jump to content

Recommended Posts

Posted
<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 ?


Posted

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

Posted (edited)

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
Posted

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 !!!

Posted (edited)

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

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...