Questions tagged [sysprep]

48 questions
1
vote
2 answers

Launch Sysprep.exe from C# Program

How could I launch sysprep.exe with specific arguments from my c# program ? public void cmdPrint(string[] strcommmand) { Process cmd = new Process(); cmd.StartInfo.FileName = "cmd.exe"; …
kks21199
  • 1,116
  • 2
  • 10
  • 29
1
vote
0 answers

Sysprep taking an age on EBS custom AMIs

We have created a new custom AMI and followed the documentation here. When we launch an instance from our custom AMI we have to wait up to an hour for the instance to become usable. The system logs look like this: 2015/05/11 10:10:16Z: Windows is…
jaywayco
  • 5,846
  • 6
  • 25
  • 40
1
vote
1 answer

Secure String can't be decrypted after Sysprep

I have two PowerShell scripts I'm building for a Windows 7 image. Prior to the image I run PRE-IMAGE.ps1, and it has a line like this in it: $JoinDomainPassword = Read-Host -Prompt "Please enter the password for $joinDomainUser"…
Medos
  • 305
  • 1
  • 3
  • 9
0
votes
0 answers

Error when transferring Sysprep to OOBE mode

Error when transferring Sysprep to OOBE mode 2023-06-15 11:15:11, Error SYSPRP Package Microsoft.LanguageExperiencePackru-RU_17763.32.110.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This…
0
votes
0 answers

diskpart didn't work in unattended sysprep

I run sysprep with an answer file, which runs a batch script in the specialize configuration pass. The batch script gets the target HDD index, and runs diskpart against that HDD. All files are located in C:\temp: C:\temp\unattend.xml …
0
votes
0 answers

How to skip new user creation (OOBE) when deploying new image captured after sysprep

I need your help. I've tried to capture an image after sysprep, and I have created an answer file (autounattend.xml). I managed to skip most of the settings, the only pending thing being the new user creation when I deploy the image on another…
0
votes
0 answers

How can a sysprepped Image with an answer file be deployed so that the useraccount becomes the domain user account?

I created an image that is uploaded to WDS, with an answer file used for joining the Device to a Domain. Whenever I deploy, a new user is created on the new machine for this Domain user, called DOMAINNAME.Username. I would like to set it up in a way…
Max
  • 1
0
votes
1 answer

Hosting a custom Azure Compute Gallery Image locally in Hyper-V isn't working

I created a custom, generalized (using Sysprep), Windows 11 image from an Azure hosted VM and stored it in a custom Azure Compute image gallery. c:\Windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /quit It works when I use the custom…
Bret Boss
  • 16
  • 1
0
votes
1 answer

Make a PowerShell script run on startup in the OOBE Sysprep environment

Thanks for stopping by, I've searched the corners of the internet but haven't gotten anywhere. To provision devices for my organization, we must manually run PowerShell commands using SHIFT + F10 in the Windows 11 OOBE as we have multiple methods,…
JAKE RAFF
  • 1
  • 1
0
votes
1 answer

Sysprep Windows 10 LTSC 2021

We are building system controlled by computer running windows 10 ltsc 2021. It is kind of a kiosk system. There is an account, lets call it user1 with local admin rights that will autologon with no password. It also requires quite a few user account…
Wlodek
  • 11
  • 4
0
votes
0 answers

How to put a powershell command into Sysprep's deployment script

I need to put this command that works in PowerShell into the deployment file of SysPrep (FirstLogonCommands => SyncronousCommand area). Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like "*SystemApps*"} | Foreach {Add-AppxPackage…
Andrea
  • 103
  • 8
0
votes
1 answer

terraform-provider-vsphere customize windows ip address fail sysprep "Windows Setup could not configure Windows to run on this computer's hardware"

I'm currently trying to deploy a Domain Controller using terraform and packer. I built a Windows Server 2016 template where I installed an Active Directory domain controller. Here is how I deploy the VM: resource "vsphere_virtual_machine"…
0
votes
1 answer

Azure new VM account disabled by default (Custom Image)

I'm having trouble when creating a VM in Microsoft Azure using a custom windows image. Issue When connecting to the newly spawned VM using the credentials entered in Azure Portal, I get the following message : The user account is currently…
0
votes
0 answers

Generalizing azure-vm with sysprep.exe fails [0x0f0085 -Could not load DLL]

We have a couple of CI/CD pipelines in which we create images from Windows VMS (Server 2016 DC). These images are then used to deploy new vms in azure. Before creating the image, we run sysprep.exe in /quiet mode to generalize the machine. This has…
0
votes
1 answer

Sysprep Azure VM with Remote PowerShell

I am trying to SysPrep a VM in Azure via Azure DevOps YAML pipelines. In the same pipeline (previous stage), I am deploying the VM via Azure Resource Manager (ARM) templates and copying scripts and files to the machine. I want to automate the whole…
Moccar
  • 99
  • 2
  • 11