Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, i try to enable bitlocker from gpo, i have create this script
Start-Transcript -Path "C:\temp\logscript.txt" -Append
Set-ExecutionPolicy Unrestricted -Scope Process -Force
$bitlockerInstalled = Get-BitLockerVolume | Where-Object { $_.ProtectionStatus -eq 'On' }
if ($bitlockerInstalled) {
} else {
este
Enable-BitLocker -MountPoint "C:" -EncryptionMethod XtsAes128 -UsedSpaceOnly -SkipHardwareTest -RecoveryPasswordProtector
}
Stop-Transcript
and deploy in more tipology (task scheduler, logon script). it work only if i log to user Admin.
when i create a task scheduler i have set to run with system account but problem not solved.
i suppose the problem are that the user account not can't even give the command GET-BITLOCKERVOLUME:
C:\Users\test.bit> Get-BitLockerVolume
Get-CimInstance : Accesso negato
In C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\BitLocker\BitLocker.psm1:144 car:13
+ Get-CimInstance `
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (root\cimv2\Secu...cryptableVolume:String) [Get-CimInstance], CimExcep
tion
+ FullyQualifiedErrorId : HRESULT 0x80041003,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
Get-Win32EncryptableVolumeInternal : A non è associato un volume BitLocker.
In C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\BitLocker\BitLocker.psm1:696 car:42
+ ... $AllWin32EncryptableVolume = Get-Win32EncryptableVolumeInternal
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Get-Win32EncryptableVolumeInternal
anyone can help me?