PowerShell script to offline and online a disk First, we need to find out the disk number ,for that run the following command get-disk It will list Read More PowerShell script to offline and online a disk