OSD or USMT capturing Local Administrators Group and restoring it?
- From: "Allen Ma" <allen.ma@creoDOTcom(replace the DOT with .)>
- Date: Wed, 6 Jul 2005 16:27:04 -0700
Greetings,
All our computers have the Domain user as part of the local Adminstators
group on each of their PCs (example each machine will have their own user
name in the Administrators group, Domain\JohnB).
With the OSD or USMT tool, is there a way to capture the users in these
groups and restore them after the OSD upgrade? I noticed that after the
upgrade from Win2k to the OSD image containing WinXP, the user profiles are
restored but any users in the Adminstrators Group don't get backed up or
restored and I have to manually enter this in. Is there a way to do this
with the USMT tool, switches/inf?
Only thing I've come up with is to create a batch file (saved as .cmd) for
backup and restore , however I can't seem to figure out what the command line
when creating a Custom action to get it to run after the Validation phase. I
know it's failing on the batch file as the logs indicate a "The OS
installation failed action Capture Administrator Group with exit code 3. The
operating system reported error 2147500037: Unspecified error " where
Capture Administrator Group is my Custom Action that links it to the batch
file.
Not sure where to go right now, I'm sure it's something I type in the Custom
Action command line section.
My settings:
In the Advanced properties:
Validation:
1) left blank
State Capture, I've created:
1) Custom action: connect to a server where this batch file exists
2) Custom action: command line: backupAdmin.cmd
file:\\servername\batch\backupAdmin.cmd
3) Capture User State: \\servername\USMT, configuration files: migapp.inf,
migism.inf, migsys.inf, miguser.inf, sysfiles.inf, usmtdef.inf /v 5 /o /s /f
/all
Pre/Post Install:
1) left blank
State Restore
1) Restore User state: /v 5
2) Custom action: Connect to \\server\batch
3) Custom action: command line: restoreAdmin.cmd files:
\\server\batch\restoreAdmin.cmd
The batch files contain this:
Backup (backupAdmin.cmd):
net localgroup administrators > "c:\documents and settings\user.txt"
--> I believe the Documents and Settings get copied captured(still testing)
Restore (restoreAdmin.cmd):
for /F "tokens=1 skip=4" %%a in (user.txt) do NET LOCALGROUP Administrators
/ADD %%a
Any thoughts or suggestions?
.
- Follow-Ups:
- Prev by Date: Re: OSD deploy CD account
- Next by Date: RE: OSD or USMT capturing Local Administrators Group and restoring it?
- Previous by thread: Re: preinstall phase
- Next by thread: RE: OSD or USMT capturing Local Administrators Group and restoring it?
- Index(es):
Relevant Pages
|