?
Solved

Export of  autoadmin logon settings in registry for migration

Posted on 2005-03-16
21
Medium Priority
?
301 Views
Last Modified: 2010-04-13
I am looking to export only the 4 entries for autoadminlogon for a scripted migration process.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My User Name"
"DefaultPassword"="My Password"
"DefaultDomainName"="My domain"
"AutoAdminLogon"="1"

What is the best way of preserving this information so that it can be re-applied after re-imaging the workstation ?

Any help would be greatly appreciated !!!!!

Andre
0
Comment
Question by:flexxxx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 9
21 Comments
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13562226
>>>What is the best way of preserving this information so that it can be re-applied after re-imaging the workstation ?

There are many ways: -

Using Registry Editor.
Using Reg.exe or Regini.exe
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13562245
Please see this: -
http://www.windowsitlibrary.com/Content/237/2.html

And then how will you distribute changes: -
http://www.windowsitpro.com/Windows/Articles/ArticleID/20047/pg/2/2.html

***Quote***
Distributing Registration Files

A quick way to create a .reg file for distribution is to use regedit to export a key (or multiple keys), then use the resulting .reg file (or files). To export a key, select the key and choose Registry, Export Registry File. In the Export Registry File dialog box, enter a name and select a folder for the export file. Windows automatically adds the .reg extension. You can interactively change the registry settings on one computer, then export the key and use the export file as is, or you can export the key, then manually edit it. To edit a .reg file, don't double-click the file; instead, right-click and choose Edit from the shortcut menu. The file opens in Notepad. If you want to make registry changes in multiple keys, open each .reg file, paste the files' contents into one Notepad document, then save that document with a .reg extension.

You can distribute .reg files in any convenient manner. Attach the .reg file to an email message, add the appropriate command to a logon script, or use any other method you're comfortable with.

***End Quote***

This also: -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag01/html/distributingregistrychanges.asp

Let me know.

Thanks
SystmProg
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13562265
Or....If you can follow the steps: -

1. Point the cursor to Winlogon key and then export it to a file named "AutoLogon.reg".
2. Edit AutoLogon.reg file in Notepad only and note in Wordpad or Winword.
3. Remove the unnecessary lines from registry or leave it as it is because all workstation clients have the same settings untill or unless you specify you edit this file to change something.
4. And then save > put this file in a batch file > process through Group Policy.

Does it make sense ?

Thanks
SystmProg
0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 

Author Comment

by:flexxxx
ID: 13565275
I am trying to capture the settings automatically by a script - storing it back to a server - then applying it by scripting after re-imaging and minisetup. I have all the scripting in place, but I am looking for the spesifics to export single values and not the whole key.

Each workstation could have a different logon. Instead of taking the whole Winlogon key, could I export just the 4 entries, or do I have to use the whole key ??

I havent really looked closely at this key before - is it the same on all default installed windows 2000 systems ??

Thanks Again !!!

0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13565454
>>>Each workstation could have a different logon. Instead of taking the whole Winlogon key, could I export just the 4 entries, or do I have to use the whole key ??

Nothing will happen if you export the whole and then deleting the part which is not required.

Yes it is same on all.
0
 

Author Comment

by:flexxxx
ID: 13565810
Is there a applet which will delete what is not needed in the reg file - this is a fully automated rebuild and there would be no way to manually manipulate the file.

Is there a way to export winlogon without the sub keys ??

Can "Value Name" and "Value data can" be exported without taking the whole key ?



 
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13581775
Hi,

>>>Is there a applet which will delete what is not needed in the reg file - this is a fully automated rebuild and there would be no way to manually manipulate the file.

Why are you so scared of editing the registry file...........When you export registry from Registry editor it will export all the key and values in a REG file. This REG file can be edited easily and doing cut and paste is also easy. Here is an examle for your requirement: -

So this is the File i Exported from My Computer: -

I cut and paste from here: -

********From Here**************

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My User Name"
"DefaultPassword"="My Password"
"DefaultDomainName"="My domain"
"AutoAdminLogon"="1"

********Upto here************

1. I open notepad.exe, cut and paste the above and save this file to "Winlogon.reg".
2. Next i change something in this file and run in my computer to make sure changes are happening.
3. and then run it using Group Policy via Batch file.

Let me know.

Thanks
SystmProg
0
 

Author Comment

by:flexxxx
ID: 13582309
Hi,

It's not that I am scared to edit the reg file, it is that I cant manually manipulate any files during this fully automated rebuild.

In a nutshell, here is what is happening - fully automated with ghost/scripting:

1. System is up and sunning - on the domain wiht autologon enabled.
2. A new version of the software pacakage with a new base image is available for distibution to a set of clinical workstations.
3. The scripts will capture settings like - computer name, domain name, logged on user, autologon settings, IE settings etc and store them back on the server.
4. The workstaiton is re-imaged - sysprep file is edited by the script and injected in after imaging to retain computer name and domain.
5. Mini setup completes - software is copied down and installed - AUTO LOGON set back to the user it originally had
6. Workstation reboots logs on as the user (original autologon) settings are reapplied -  and launches the application - all settings are the same as before the upgrade.

I know I can export the whole winlogon key and apply that, but I would like to just transfer The following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My User Name"
"DefaultPassword"="My Password"
"DefaultDomainName"="My domain"
"AutoAdminLogon"="1"

without copying the wholy winlogon key and sub keys.

This whole process is automated and every workstation could have a different logon name.

Any way to just export the above mentioned on the fly ????

Thanks,

Andre

0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13589422
>>>It's not that I am scared to edit the reg file, it is that I cant manually manipulate any files during this fully automated rebuild.

Eh.?? sorry couldn't catch on the right time :-). So the problem is here...ok please confirm once again because i need to write a short script using regini.exe or other registry editors.

You want to export above values from the key automatically.
Then you will import above values in workstations automatically.

Let me know.

Thanks for letting me know.
SystmProg
0
 

Author Comment

by:flexxxx
ID: 13591902
That is correct.

My script runs to capture the system settings - including autologon. I would need to export the values back to the server on the build share (each workstation has its own subfolder) as autologon.REG.

Later on in the rebuild, this regfile will be added by the script to complete the setup and configuration.

Thanks for all the help !!!!!!
0
 

Author Comment

by:flexxxx
ID: 13616748
Any progress on the registry export of just certain values and datavalues (not the whole key) or is this something that cannot be done ??

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My User Name"
"DefaultPassword"="My Password"
"DefaultDomainName"="My domain"
"AutoAdminLogon"="1"

0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13619189
Please wait...got some work....will post today with a script.

Thanks
0
 

Author Comment

by:flexxxx
ID: 13621399
COOL ...... THANKS !!!!!!

0
 

Author Comment

by:flexxxx
ID: 13666013
Any progress on the registry export of just certain values and datavalues (not the whole key) or is this something that cannot be done ??

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My User Name"
"DefaultPassword"="My Password"
"DefaultDomainName"="My domain"
"AutoAdminLogon"="1"
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13680122
I am out of office till this saturday. I will post in next 24 hours.

Thanks
0
 

Author Comment

by:flexxxx
ID: 13868797
Any progress on the registry export of just certain values and datavalues (not the whole key) or is this something that cannot be done ??

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My User Name"
"DefaultPassword"="My Password"
"DefaultDomainName"="My domain"
"AutoAdminLogon"="1"



By now I assume that this is not possible to do anymore.
0
 

Author Comment

by:flexxxx
ID: 14572208
By now I assume that this is not possible to do anymore.
0
 
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 14982577
Ah!...I really forgot about the question at all.

Sorry...would you like to continue on the same?

Thanks
0
 

Author Comment

by:flexxxx
ID: 14983684
No need to continue as I have solved the issue (see below for code)



REGEDIT /E O:\migdata\%cpdir%\%computername%\TempLogon.REG "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

echo Windows Registry Editor Version 5.00 > O:\migdata\%cpdir%\%computername%\autologon.reg

echo [HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\winlogon] >> O:\migdata\%cpdir%\%computername%\autologon.reg

find /i "Default" < O:\migdata\%cpdir%\%computername%\TempLogon.REG >> O:\migdata\%cpdir%\%computername%\Autologon.reg

find /i "autoadmin" < O:\migdata\%cpdir%\%computername%\TempLogon.REG >> O:\migdata\%cpdir%\%computername%\Autologon.reg



0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 15003036
Closed, 500 points refunded.
Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
New style of hardware planning for Microsoft Exchange server.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question