10 lines
		
	
	
		
			421 B
		
	
	
	
		
			PowerShell
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			421 B
		
	
	
	
		
			PowerShell
		
	
	
	
	
	
## Copied from https://github.com/ThatsNASt/tacticalrmm to add to new pull request for https://github.com/wh1te909/tacticalrmm
 | 
						|
 | 
						|
$x = Get-WMIObject -Namespace "root/CIMV2/Security/MicrosoftVolumeEncryption" -query "SELECT * FROM Win32_EncryptableVolume WHERE DriveLetter='C:'";
 | 
						|
$y = $x.GetProtectionStatus().ProtectionStatus
 | 
						|
	if ($y -eq 1) {
 | 
						|
		Write-Host "OK"; exit 0
 | 
						|
	}
 | 
						|
	else {
 | 
						|
		Write-Host "FAIL $y"; exit 1
 | 
						|
	}  |