Including some commands in an unatttend file

balubeto

New member
Member
VIP
Local time
4:48 PM
Messages
106
Hi

Running the sysprep /generalize /oobe /reboot /unattend:c:\Unattend.xml command in Audit mode, how do I create an answer file that allows to:

1) include a partition in the system protection of Windows 7 SP1.

2) rename and put a password to the Administrator account.

3) permanently delete some system directory (even hidden ones).

4) eliminate this answer file when it has finished its execution.

Thanks

Bye
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7

My Computer My Computer

At a glance

Windows 8.1 Pro RTM x64Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Brid...4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2...MSI GeForce GTX770 Gaming OC 2GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Most of what you have listed cannot be done via the Answer File. The Answer File does not affect partitioning, does not support renaming the Administrator account (though it does support setting a password), cannot delete directories (except via script which would be external to the Answer File), and does not support deleting itself once complete (again, except via script).

From what you’ve described in this thread and others, you really ought to take a look at the Microsoft Deployment Toolkit (MDT). MDT will allow you to automate the partitioning and has customizable support for actions throughout the deployment phases including post deployment scripts. Ideally, you would delete whatever directories you did not desire while customizing the system in Audit Mode, you can also use the answer file to create a user with Administrator rights and set a password for that user in the Answer File, though it will not affect the automatically disabled Administrator account. To perform that task, the proper method would be to perform the task via Local Policy or Group Policy. MDT also handles the location and cleanup of Answer Files and other deployment related files.

MDT is really the route to go considering the complexity of your requirements and the time you have in this thus far, MDT will take a bit to learn, but it will automate every part of the process once it is configured and provide limitless scalability for future deployments. A good place to start would be Automated Installation to Upgrade to Windows 7: Step-by-Step Guide from the Springboard Series on TechNet. There are a wide variety of additional resources including many step by step guides and detailed explanations of all of the tools and utilities available from Microsoft for deployment on the Deliver Page for Windows 7 on the Springboard Site on TechNet.
 

My Computer My Computer

At a glance

Windows 7 Enterprise 64bit
OS
Windows 7 Enterprise 64bit
Here is a tutorial that I created relating to developing a simple autounattend.xml file.
This uses WAIK and OSCDIMG to create a custom Windows bootable ISO file with the answer file in it.

Let me know if this is helpful for you.
-Chris H.

 

My Computer My Computer

At a glance

Windows 8 Pro x64AMD-FX Bulldozer 8150 3.0ghzCorsair 16GB DDR 3EVGA Nvidia GTX 580 3GB GDDR5
Computer Manufacturer/Model Number
Custom PC - Built Myself
OS
Windows 8 Pro x64
CPU
AMD-FX Bulldozer 8150 3.0ghz
Motherboard
ASUS Sabertooth 990fx
Memory
Corsair 16GB DDR 3
Graphics Card(s)
EVGA Nvidia GTX 580 3GB GDDR5
Sound Card
SoundBlaster Audigy
Monitor(s) Displays
Samsung 23"
Hard Drives
Kingston HyperX 240GB Sata III SSD
Seagate Barracuda 1TB, SATA III
PSU
Seasonic 1000W Platinum
Case
NZXT Phantom II
Back
Top