Configuration
After the completion of the setup process, the following PowerShell cmdlets were executed on the virtual machine in an elevated PowerShell console:
#Enable SMB IN, ICMP ECHO IPv4 $FileSharing = ("FPS-SMB-In-TCP","FPS-ICMP4-ERQ-In") $FileSharing | %{ Enable-NetFirewallRule -Name $_} #Required WMI rules $WMI = ("WMI-ASYNC-In-TCP","WMI-RPCSS-In-TCP","WMI-WINMGMT-In-TCP") $WMI | %{ Enable-NetFirewallRule -Name $_} #Enable PowerShell Remoting Enable-PSRemoting -Force
These cmdlets enable the following Firewall rules:
- File and Printer Sharing (SMB-In)
- File and Printer Sharing (Echo Request - ICMPv4-In)
- Windows Management Instrumentation (ASync-In)
- Windows Management Instrumentation (DCOM-In)
- Windows Management Instrumentation (WMI-In)
By enabling these Firewall rules within the VM template, any VM created using this template will automatically have these rules enabled. Additionally, the PowerShell cmdlets ensure that PowerShell Remoting...