Odinstalowanie roli DHCP z serwera – PowerShell

$cred=Get-Credential -UserName MSFT\jon.adminer -Message "Podaj hasło"

Invoke-Command -ComputerName DC01-MSFT -Credential $cred -ScriptBlock {
 Import-Module Servermanager
 Remove-WindowsFeature DHCP -Restart
                                                                      }