Created
January 23, 2019 08:51
-
-
Save stylersnico/65ff7961b453ecd7ba17f3d4bdbcfde7 to your computer and use it in GitHub Desktop.
Script to run after a veeam backup for dismounting the disk so he is no longer available for malwares, ransomwares and intruders.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vol = get-wmiobject -Class Win32_Volume | where{$_.Name -eq 'B:\'} | |
$vol.DriveLetter = $null | |
$vol.Put() | |
$vol.Dismount($false, $false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment