sysprep

Sysprep an Azure VM using PowerShell task in a pipeline

岁酱吖の 提交于 2021-02-08 05:50:50
问题 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), into which I RDP manually (there is a Manual Intervention task here), and configure WinRM (following this article: https://docs.microsoft.com/en-us/azure/marketplace/cloud-partner-portal/virtual-machine/cpp-configure-winrm-after-vm-creation#configure-vm-to-enable-winrm). Everything is fine

Launch SYSPREP in C#

一曲冷凌霜 提交于 2020-01-06 13:03:17
问题 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 reason sysprep does not launch when code is run. It gives an error that file cannot be found. For e.g. by using the code below Notepad will open with no issues. If I try and open sysprep it will not. Process.Start(@"C:\Windows\System32\notepad.exe"); -- opens with no issue Process.Start(@"C: