Jump to content

Recommended Posts

Posted

Hi all,

I am using sysprep to prepare Windows 7 images for deployment. My sysprep images are built in a (VirtualBox) VM.

I have recently added a SetupComplete.cmd file to my image, at C:\Windows\Setup\SetupComplete.cmd. It reads:

diskpart /S ntfsextend.txt

And ntfsextend.txt, also in the same directory, reads:

select volume 2
extend
exit

However, having cloned the sysprepped image to a larger disk, the diskpart script does not seem to be run during setup. The SetupComplete.cmd and ntfsextend.txt files are still there, and when run manually after setup, will correctly expand the partition.

Is this a privileges issue or something else?


Posted

:)

I'm deploying the image using Clonezilla, from an NFS share. It has the ability to extend NTFS partitions during the clone, but it seems to trigger a CHKDSK on first boot, so I feel (a little) safer doing it from within Windows.

Posted

if you put anything in setupcomplete.cmd does it fire (or is it just this specifically that is failing)?

If no:

is there something in winpeshl.ini?

If yes:

Does it work from runonce?

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