- Installed Windows Server 2022 as a Virtual machine in ESXi
- Installed Windows 11 as a Virtual machine Workstation in ESXi
on the target: Enable-PSRemoting ipconfig
- Use sconfig to:
- Change the hostname
- Change the IP address to static
- Change the DNS server to our own IP address
on the control machine: Service-Start WinRM set-item wsman:\localhost\Client\TrustedHosts -value New-PSSession -ComputerName -Credential (Get-Credential) remember id Enter-PSSession
sconfig Set static IP Set DNS Server as your set static IP Install-WindowsFeature AD-Domain-Services -IncludeManagementTools