49 questions
-1
votes
0
answers
28
views
Windows 2022 Terminal Server running but not listening on fresh syspreped image. Finish setup via commands?
ive got a Windows 2022 coming up from a sysprep-image. On console it waits for some initial questions to be done for localisation, license acceptance and Administrator password. However, meanwhile I ...
0
votes
0
answers
46
views
Computer Configuration does not apply after creating a new Windows image
I am going through the process of making a new Windows 10 Pro image for imaging our workstations. The sysprep process goes fine, but after installing the image on our devices it will not pull the ...
0
votes
0
answers
123
views
GCE instance no longer starts after a sysprep
I have an instance that runs windows server 22 on GCP. The goal is this instance is copying, for that I make a gcesysprep, which does it correctly and turns off my machine. But when I want to access ...
0
votes
1
answer
3k
views
Get-AppxPackage of a single user
Is there a way to get the name of installed packages for a single user to avoid sysprep failures?
Can't find differences in the info provided with "Get-AppxPackage" between one installed for ...
1
vote
0
answers
141
views
WinRM, HTTPS listener setup within Template loses private key after Sysprep
I have a windows 2022 gold template used deploying machines. A winrm https listener is setup initially to allow encrypted communication between setup servers and the new machine being deployed. The ...
1
vote
1
answer
180
views
How to login with different user credential while creating GCE instance using powershell startup script
I am trying following-->
Creating GCE instance via gcloud cmds
As a metadata I am providing ps1 scripts which is creating User and adding to required domain
Once user created I need to use that ...
0
votes
1
answer
213
views
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 /...
0
votes
1
answer
3k
views
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 ...
1
vote
1
answer
1k
views
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 ...
0
votes
0
answers
316
views
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 -...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
1k
views
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 ...
0
votes
0
answers
1k
views
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 ...
0
votes
1
answer
785
views
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 ...
1
vote
1
answer
754
views
Generating a password for a generalized Windows Server instance on OCI
It is my understanding that the Oracle default Windows server images leverage Cloudbase-Init alongside an Unattend.xml file to generate a password for the user, but I am curious about the specifics of ...
3
votes
4
answers
3k
views
Sysprep an Azure VM using PowerShell task in a pipeline
My (dotNET) application is built (using a Windows Hosted agent), from a build pipeline, and in the subsequent Release pipeline, I provision a 16GB-Win2016 VM (enabling RDP, HTTP, HTTPS, WinRM and SSH),...
2
votes
1
answer
22k
views
Remove-AppxPackage for all users
I would like to remove the Fitbit package from the Microsoft Store apps in Window 10.
I have -allusers in the Powershell command but it's telling me Fitbit isn't in the current user.
I don't care what ...
3
votes
0
answers
1k
views
Partial sysprep when creating Windows AMI
tdlr; I want to create an AMI with "partial sysprep" so that SSM can connect when I launch a different Instance Type than the original off that AMI, but want to keep all else equal. It only needs to ...
0
votes
2
answers
16k
views
sysprep on Win10 exits with error RunExternalDlls:Not running DLLs
I try to use sysprep on Win 10 Pro. I use these options:
Generalize
OOBE
Shutdown
Log file setuperr.log shows:
[0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an ...
0
votes
1
answer
2k
views
Sysprep fatal error Could not load DLL DscCore.dll[gle=0x0000007e]
Azure VM, Win Server 2012 was created from snapshot of image copied from another region. Installed asp.net apps, all is working except sysprep, need to create a new image. setupact.log has:
Error [...
0
votes
0
answers
3k
views
Azure Image fails to deploy to VMSS or VM
I have an image, which has been sysprep'd with no unattend.xml file.
When I try to deploy it to a VMSS, it fails with:
New-AzVmss : Long running operation failed with status 'Failed'.
Additional ...
0
votes
1
answer
3k
views
Using terraform and sysprep/unattend to provision windows vm
I'm trying to deploy virtual machines in vsphere using terraform and running into issues with sysprep/unattend files. I am supplying an unattend.xml file using
customize {
windows_sysprep_text = "...
0
votes
1
answer
4k
views
Sysprep fails when generalizing VM during sysprep cleanup
I'm trying to generalize an Azure VM image. When running sysprep, the following errors get logged error log
SYSPRP WinMain:Processing 'cleanup' external provider request. 2019-01-29 10:32:52, Info ...
0
votes
1
answer
2k
views
Sysprep is getting failed
I tried to run sysprep in one windows vm hosted in azure, it failed. below error I can see in setuperr log. Could you please check what is the problem here?
2018-08-20 12:53:10, Error [0x0f0060] ...
1
vote
1
answer
6k
views
Run SysPrep remotely through commands from Azure powershell
I want to run some commands to do Sysprep remotely through powershell.
So first I created a session using this:
$UserName = "IPAddress\username"
$Password = ConvertTo-SecureString "password" -...
0
votes
3
answers
402
views
Launch SYSPREP in C#
I have found this via stack-overflow search but no one has given a solution that works. I am writing a simple program and the first part of it is to launch sysprep.exe with some arguments. For some ...
-2
votes
2
answers
3k
views
Windows 10 Fall Patch_SYSPrep Fails_Miracastview issue
I know this is a known error, below is what I am getting, what I have done is:
I did the steps in the link below and it did not work:
https://support.microsoft.com/en-us/help/4057974/miracastview-...
-1
votes
1
answer
66
views
How to restore internet explorer 11 configuration when creating new VM from vhd?
I need a reliable procedure for the following problem i'm facing:
I created win 10 vm in azure, changed browser setting and then created vhd from it. When i create new VM from that image, every single ...
1
vote
0
answers
1k
views
Sysprep failed because of Miracastview
When I run sysprep on Windows 10, I am getting below error in the log file:
Package Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all ...
2
votes
1
answer
44k
views
Sysprep failure on windows.miracastview
When trying to sysprep and windows 10 (1709) build I get the following error:
Package Windows.MiracastView_6.3.0.0_neutral_cw5n1h2txyewy was installed for a
user but not provisioned for all users. ...
-3
votes
1
answer
308
views
Can't acces to syspreped VM
I'm trying to automate things with Windows Server 2016.
Now I can't acces a syspreped VM via PowerShell Direct because you have to set password for the Administrator account. How can I access ...
1
vote
4
answers
5k
views
Call to 169.254.169.254/latest/meta-data/instance-id fails in AWS deployment script
I'm using some scripts based on http://blog.brianbeach.com/2014/07/setting-hostname-in-syspreped-ami.html to set the Host Name of a new windows instance created from an AMI to be the Name tag of the ...
0
votes
1
answer
616
views
How to specify administrator password on Windows 2012 when Run Sysprep with the EC2Config Service
I am creating AMI based on hardened Window2012, this is the steps I did:
change some local group policies
run some scripts to install/uninstall some applications
enable some windows features
run ...
1
vote
2
answers
2k
views
Ec2Config.exe -sysprep VIA powershell Script
So I am attempting to use Amazons Ec2Config.exe -sysprep command to sysprep an instance and prepare it to be cloned into a new AMI with the programs I require installed. The following are the last two ...
0
votes
1
answer
690
views
I used sysprep on a VM (new portal) and lost connectivity to the machine
In the new portal, there's an icon that says 'Capture'. I assume this was for capturing an image of a VM (snapshot), but it was greyed out. Doing a little reading, several posts suggested running ...
0
votes
1
answer
339
views
Recreate SID on Google Cloud VM
I have two virtual machines running in google cloud. They both run MS Server 2012.
It appears that the person who created them used a clone as the machine SID's are the same. This is now causing a ...
0
votes
1
answer
1k
views
Windows Server 2016TP5 Sysprep setupdigetclassdevs failed with error 0
I do Windows Server 2016TP5 build with Packer.
ISO is downloaded from MSDN, and hash is fine.
Packer on my machine is working fine with Linux and Windows Server 2012R2.
Autounattend and scripts are ...
1
vote
1
answer
785
views
Moving Servers to IaaS without sysprep azure-virtual-machine
azure-virtual-machine
Hello,
I am moving a bunch of servers from my datacentre to azure. Servers are test & development sharepoint & SQL. depending on how successful the migration is we will ...
1
vote
0
answers
3k
views
Failure provisioning a vm
I have an on prem sysprepped vhd with which I am trying to create a vm in azure. I am running into all kinds of errors and I am solving one after the other. Now, I actually have an error which is not ...
1
vote
0
answers
225
views
Launching Sysprep from HTA with Run method fails
I have three files:
test.vbs
Set objFileSystem = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
st = ""
windir = objShell.ExpandEnvironmentStrings("%windir%"...
0
votes
1
answer
252
views
Ovirt Python SDK and Sysprep
I understand how to set an OS hostname in CloudInit for a Linux VM using the Python SDK like below, but how would I do the same thing for setting an OS hostname in a Windows VM using Sysprep? I can’t ...
1
vote
0
answers
5k
views
MDT - Disable auto login of default administrator account in the task sequence
In my task sequence for a deployment of a captured image of Windows 7 Pro, I have a step that disables the default administrator account. I also have a step that elevates another account dubbed '...
1
vote
2
answers
966
views
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 = "...
1
vote
0
answers
779
views
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 ...
1
vote
1
answer
572
views
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 ...
0
votes
1
answer
521
views
Scripting Sysprep
I'm trying to create a script that will automate the sysprep process but I'm running into issues with the reg add command. I keep getting Invalid Syntax even though everything looks correct according ...
0
votes
2
answers
493
views
Something's missing from my Unattended XML
I'm using this brief unattended.xml file ive written to be used with sysprep, and although the basics are quite obvious, i think there's an issue with either the layout, headings, or maybe even the ...
0
votes
1
answer
341
views
Provide password to SSOCONFIG.EXE as parameter?
How can you provide the password to ssoconfig.exe -restoresecret as parameter?
I'm trying to use the sysprep scripts from Colin Meade on TechNet
Checked on MSDN and ssoconfig -restoresecret only has ...
23
votes
3
answers
24k
views
What's the Hash in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.<extension>\UserChoice?
With Windows 8, the user's choice for which application to open for a given document type seems to be kept in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\<...