Advertisements

Category: Windows Server 2019 PowerShell

In a large environment where you have hundreds of servers, imagine now having to go and manually add in more than 2 DNS servers to each of those? That will take a few days or weeks. With PowerShell you can do this and you can randomize the order or each server so that one DNS […]

Advertisements
Read more

Importing roles and features on a windows server has never been easier. Lot’s of people prefer the GUI interface but PowerShell makes your life so much easier. Firstly, for PowerShell to understand what you are trying to do, you need to have the correct module in place. In this instance we are working with Server […]

Read more

RSS abbreviated for Receive Side Scaling has value by being enabled on a Server as it betters performance. By Default, RSS is enabled on Server 2016 and 2019 but cannot be enabled on Windows Server 2008 R2 or below. On Server 2012 or R2 you can enable it using a simple PowerShell command. First you […]

Read more

In PowerShell, you are able to disable IPv6 on a Server using a single command as follows: reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f Now you can take this a step further and also disable IPv6 tunneling as well and will explain why shortly: Get-NetAdapterBinding -ComponentID “ms_tcpip6” | disable-NetAdapterBinding -ComponentID “ms_tcpip6” –PassThru […]

Read more

As an Admin you can restrict access to PowerShell and what can run. With a simple command you can view the execution policy set on a server: Get-ExecutionPolicy As shown above, it is set to unrestricted on this server. To change it to restricted as an example you can run the following command in PowerShell: […]

Read more

Part of any Operating System that you install, whether it is Server 2012 or Server 2019, Server Manager launches on startup. A quick command below will create a registry key and disable it so it doesn’t start on windows boot. Here is the command: Invoke-Command -ComputerName Exchange-2019 -ScriptBlock { New-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType […]

Read more