4 votes
Accepted

Packer - AWS Windows 2016 SysPrep returns exit code 1

Castrohenge's answer set me on the right path, but I preferred to pass the '-NoShutdown' switch to SysprepInstance.ps1 to accomplish the same goal. C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\...
Ryan Meis's user avatar
4 votes
Accepted

Assign a specific machine SID to a new Windows system

The undocumented SetupCl.exe utility, which is part of the Windows setup tooling that cleans up the system image as one step of the generalization process that runs when the new Windows system boots, ...
Anton Tykhyy's user avatar
3 votes

Unable to connect to an Azure VM (sysprepped image)

There's no RDP functionality during the specialize phase of Windows Setup, which is the phase you're seeing in your screenshot upon first boot of your sysprepped VM. You're going to need to use ...
joeqwerty's user avatar
  • 111k
3 votes
Accepted

Sysprep didn't change the SID

Per: Technet you need to use sysprep with the generalize switch prior to cloning Sysprep /generalize That should fix your issues with the SID. In case you can't re-run sysprep /generalize and re-...
Scott Lundberg's user avatar
3 votes

How to determine sysprep status

Look for setupact.log and setuperr.log files under the following paths: C:\Windows\Panther C:\Windows\Panther\UnattendGC C:\Windows\System32\sysprep\Panther
Tomas Dabasinskas's user avatar
3 votes
Accepted

SysPrep Windows 10 Pro Error (0x0f0070 & 0x0f00d8)

So I managed to fix this by tinkering a bit with the Appx .NET package. I had a second user that was created during setup on VMware. "Admin" and "Administrator" were on the system. So I logged into "...
Proxy's user avatar
  • 574
2 votes

Deploying a windows machine with ansible and sysprep

You probably want to use the /shutdown switch instead of /reboot before make it into template, and you should give an /unattend:unattend.xml with preseeded answers for making a silent installation. ...
KJS's user avatar
  • 21
2 votes
Accepted

Sysprep'd VHD uploaded to Azure stuck on language selection in boot diagnostics.

This ended up being a user error. I was attaching the VHD to the VM using the following command: $vm = Set-AzureRmVMOSDisk -VM $vm -Name $osDiskName -VhdUri $osDiskUri -CreateOption Attach -Windows ...
Viertaxa's user avatar
  • 201
2 votes
Accepted

Putting this installation of Win10 Pro on multiple machines

Sysprep is the way to go, especially if the machines are identical hardware-wise. If not then you could still use sysprep and use the generalize option to strip all drivers etc from the machines. ...
Frederik's user avatar
  • 3,387
2 votes

What steps are needed after cloning from a image Ubuntu to new system? (sysprep, unconfig)

Look at virt-sysprep from the guestfs-tools package. virt-sysprep is a bash script to reset/unconfigure/sysprep a VM so clones can be made safely. From the manual: Virt-sysprep can reset or ...
TurpakpbIc's user avatar
2 votes
Accepted

Unable to connect to an Azure VM (sysprepped image)

You must have missed the step in the process to convert VHD to and Azure Image before deploying. Below is a link to the process. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/upload-...
Hannel's user avatar
  • 661
1 vote
Accepted

What is the correct way to set credentials for a directory when using EC2Launch sysprep?

Instead of setting the permissions in the startup script, you can set them using the EC2Launch configuration file, because EC2Launch sysprep can reset settings when run. First go create a powershell ( ...
Saxtheowl's user avatar
  • 1,172
1 vote
Accepted

OOBE not run after sysprep, only a login screen is displayed

Since the warning is about a driver, investigate the driver store with dism /Online /Get-Drivers Search for oem31.inf and/or fn.inf and try to uninstall that device before sysprep. If confirmed it is ...
NiKiZe's user avatar
  • 1,306
1 vote

Sysprep: Does it remove Windows Credentials from an user account?

I was using this method so I can create an image that already has a mounted network drive. What I found out was that my automated process (Packer), even if it was running under the same account, does ...
Mike's user avatar
  • 121
1 vote

Cannot SysPrep Windows 10 Enterprise (spring creators update): "A fatal error occurred..."

There is a great blog post on TechNet about Cleaning up apps to keep Windows 10 sysprep happy. The key takeaways from this are: "...sysprep will fail when creating a custom Windows 10 image if there ...
Sam Erde's user avatar
  • 3,467
1 vote

What steps are needed after cloning from a image Ubuntu to new system? (sysprep, unconfig)

If you intend to deploy the image in the same network you should check if you have a static ip address on /etc/network/interfaces and change, if necessary, the configuration for a another ip address ...
C. La Mosca's user avatar
1 vote
Accepted

Windows 10 broken after running newsid

Obviously you shouldn't have used the tool. Windows has similar functionality builtin. As the computers are new, I assume you don't have much to lose (no actual data saved, yet). Go to the original ...
Esa Jokinen's user avatar
  • 49.7k
1 vote

Packer - AWS Windows 2016 SysPrep returns exit code 1

The issue was caused by the fact the SysprepInstance.ps1 script shutdown the instance, using the following command: # Finally, perform sysprep. Start-Process -FilePath $sysprepPath -ArgumentList ("/...
Castrohenge's user avatar
1 vote

Recover from accidental Sysprep on only AD DC

You cannot recover from running Sysprep on a DC. According to MS documentation What is Sysprep?: The /generalize option instructs Sysprep to remove system-specific data from the Windows ...
I say Reinstate Monica's user avatar
1 vote
Accepted

Applying OOBE to captured WIM

Found a solution to my problem: I managed to deploy an OOBE-enabled image by editing unattended.xml file, deleted all sections that contained Built-In Administrator Enabling aswell as "trued" all OOBE ...
Jon's user avatar
  • 167
1 vote

Sysprep: Deploy image created in VirtualBox - Workflow?

Yes, you can sysprep without activating your reference image. Just keep in mind that your Windows VM will stop working eventually after 30 days. I have no experience with this though, since we use ...
30000MONKEYS's user avatar
1 vote

Putting this installation of Win10 Pro on multiple machines

Sysprep is the way to go. But, in your scenario /generalize is NOT optional. You have to use /generalize to reset the security IDs of each machine or they will conflict on the network.
Appleoddity's user avatar
  • 3,860
1 vote

KMS Activation for Windows and Office Fails

What is the difference if I sysprep /generalize with SkipRearm=1 and sysprep /generalize with SkipRearm=0? Note: this is based on stuff I have read, I don't have practical experiance. "rearming" ...
Peter Green's user avatar
  • 4,296
1 vote

Accept License terms with sysprep and unattend.xml Windows Server 2016

I had the issue that I needed to accept the EULA during the Windows setup steps before Windows is even installed. This helped me to get rid of the EULA window during the setup: * In Windows System ...
YZN3RF's user avatar
  • 11
1 vote

Accept License terms with sysprep and unattend.xml Windows Server 2016

In my case this works as expected: <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="...
Gorodeckij Dimitrij's user avatar
1 vote

SysPrep windows 2012 r2 for VM cloning

Here's how I do this: I create VMs with a PowerShell script as part of the script I copy an existing VHDX with a sysprep'ed OS. I then mount the VHDX and create a unattend.xml as well as a \Windows\...
Peter Hahndorf's user avatar
1 vote
Accepted

Sysprep for EC2 instances

When you create an AMI of a running EC2 instance, whether from the AWS Management Console, AWS CLI, or other SDK, sysprep is not executed. If want to run sysprep, you must sign in to execute it. You ...
Matt Houser's user avatar
  • 10.2k
1 vote

How to deactivate onedrive and telemetry in Windows 10 by using a sysprep answer file

Turns out you can't. The fastest way to do this is to use gpedit.msc and deactivate them by GPO. Check under Computer config/admin template/windows component/onedrive. For telemetry, check under ...
Axiom's user avatar
  • 41
1 vote

Editing Sysprep Unattend.xml after Sysprep

Mount the sysprep'd image as a VHD on a VM or if it's captured as a WIM them mount the WIM to a newly created empty directory Navigate to C:\Windows\Panther and update the XML file in-place Dismount ...
danijeljw-RPC's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible