MSFN Forum: Add key registry in autountttend.xml - MSFN Forum

Jump to content



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

Add key registry in autountttend.xml like adding one key of registry in the rows autounattend.xml Rate Topic: -----

#1 User is offline   raffa 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 28-April 06

Posted 14 December 2006 - 08:54 AM

Quote

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


#2 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 December 2006 - 09:29 AM

that really don't look like it will work
Do you want the ADMIN account??? I'm not talking about the watered down ones. Look here
http://www.msfn.org/...showtopic=84696

#3 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,898
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 December 2006 - 08:20 AM

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

#4 User is offline   ubernerd 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 15-March 05

Posted 15 December 2006 - 02:07 PM

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

This post has been edited by ubernerd: 15 December 2006 - 02:07 PM


#5 User is offline   raffa 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 28-April 06

Posted 15 December 2006 - 04:29 PM

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

Quote

$oem$ -->$1-->myshare
the rows .reg come copied in myshare, but it does not come executed. Hour one what I have not understood:

Quote

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


My account it's Administrator, I must write:

Quote

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


Thanks many for your aid !!!

#6 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 December 2006 - 05:12 AM

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


Quote

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.

This post has been edited by maxXPsoft: 16 December 2006 - 05:28 AM


#7 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 December 2006 - 02:58 PM

That don't work adding the reg key
You have to first Enable the Administrator account. The only way is here
http://www.msfn.org/...showtopic=84696
If that work's for you then reply there.

Share this topic:


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

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



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