Other Articles
Windows PowerShell:- Change the Execution Policy
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...
Windows Server 2012/2012 R2/2016 – Remove Malware embedded in WMI with PowerShell
With Malware getting smarter each time and out running the Anti-Virus and embedding itself in the Operating System that it thinks its Legit, there is a way to remove it when it writes an encrypted entry or multiple entries to the WMI database. To remove it you will...
PowerShell – Setting all offline disks online with single command
In Exchange, if you have created a large number of disks to cater for your DAG or multiple DAG's, setting them online one by one can be a very time consuming job. With PowerShell you can set all the offline disks online and then create your mount points but we will...
Windows Server 2019 – Stop Server Manager loading at startup using a PowerShell command
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...