Remotely Managing Server 2019

After installation of Windows Server 2019, I found that it's helpful to enable these settings for remote configuration and access.

Server Manager and PS Remoting

To use remote PowerShell features and Windows Server Manager, use the below commands to view and update the existing status.

#To view current status
Configure-SMremoting.exe -get
#To enable SM Remoting
Configure-SMremoting.exe -enable
#To disable SM Remoting
Configure-SMremoting.exe -disable

#To enable PS Remoting
Enable-PSRemoting
#To disable PS Remoting
Disable-PSRemoting

#To enable File and printer sharing for all the Firewall profiles
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Any
#To enable File and printer sharing for domain only Firewall profile
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Domain

Moving Hyper-V VMs using PowerShell and CredSSP

When moving VMs from one physical Hyper-V server to the next, there is two pre-requisites to complete before initiating a move using the live migration feature.

  1. Enable CredSSP
  2. Check for incompatabillities