![]() ![]() `sc config BDESVC start = disabled `: Disable the BitLocker Drive Encryption Service, which is responsible for managing BitLocker operations.ĥ. `reg add "HKLM\Software\Policies\Microsoft\Windows\EnhancedStorageDevices " /v "TCGSecurityActivationDisabled " /t REG_DWORD /d "1 " /f `: Disable the Trusted Platform Module (TPM) security activation to prevent automatic encryption of new storage devices.Ĥ. Otherwise, the command will fail, and the files will remain encrypted.ģ. You should be logged in as the user who encrypted the files or an administrator who has the EFS recovery agent certificate. Note that this command only works for files encrypted with the Encrypting File System (EFS). `cipher /d /s:C:\ `: Decrypt all encrypted files on the C drive. `fsutil behavior set disableencryption 1 `: Disable encryption on the file system.Ģ. ![]() Register-ScheduledTask -Action $taskAction -Trigger $taskTrigger -TaskName "ActivateBatterySaver " -Description "Switches to battery saver plan when idle " 3.2 Disk Encryptionĭelay encryption and present user choice:ġ. # Script to activate the power plan $scriptContent = # Activate the power plan powercfg /setactive $newPlanGuid $scriptPath = " $ env:USERPROFILE\setBatterySaver.ps1 " $scriptContent | Out-File -Path $scriptPath # Create a scheduled task to run the script when the computer is idle $taskAction = New-ScheduledTaskAction -Execute "powershell.exe " -Argument "-ExecutionPolicy Bypass -File $scriptPath " $taskTrigger = New-ScheduledTaskTrigger -AtStartup -RepetitionInterval (::FromMinutes( 10)) -Idle Powercfg -setdcvalueindex SCHEME_CURRENT SUB_NONE F44E3DAE -CB3E -4D65 -8A2A -7A5C5C6D3090 0 # Disable WoL for all network adapters Get-NetAdapter | Where-Object. Powercfg -setacvalueindex SCHEME_CURRENT SUB_NONE F44E3DAE -CB3E -4D65 -8A2A -7A5C5C6D3090 0
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |