Windows Server 1709 (excluding UI) template deployment


1. System installation

Import the installation image in the virtual machine, select “Windows Server 2012” for the client operating system and “SCSI” for the virtual disk type; install the operating system correctly according to the installation wizard

2. Install VMware Tools

Select the virtual machine, click virtual machine – install vmware tools, and the installation prompt will pop up

Switch to e: \ disk directory, dir view the file list, execute the command setup64.exe to install VMware Tools

3. Install password reset script

Add USB mobile device, import password reset script file; copy folder to C: \ root directory

xcopy e:\cloudResetPwdAgent.Windows\*.* c:\cloudResetPwdAgent.Windows /s/d/e

xcopy e:\CloudResetPwdUpdateAgent.Windows\*.* c:\cloudResetPwdUpdateAgent.Windows /s/d/e

Target C: \ is the filename

Or directory name

(F = file, d = directory)? D

Enter the cloudresetpwd * directory and execute setup.bat installation

Delete script directory after installation

rmdir cloudResetPwdAgent.Windows /s/q

rmdir cloudResetPwdUpdateAgent.Windows /s/q

/S is for deleting all subdirectories and files in them

/Q is no longer asking yes or no when deleting a file or directory

4. Turn off windows firewall

netsh firewall set opmode disable

netsh advfirewall set allprofile state off

Or in PowerShell

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

5. Open remote connection

Open port 3389

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal” “Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f

Close port 3389

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal” “Server /v fDenyTSConnections /t REG_DWORD /d 11111111 /f

Or use the sconfig tool to set it up

6. Turn off system update

Using the sconfig tool to set up