我想知道是否有其他人完成了我想做的事--我有GPO在激活位锁时自动存储AD中的密钥,但是我似乎必须手动完成,所以我用这个设置了一个登录脚本棒。
script.bat
Powershell.exe -ExecutionPolicy Bypass \\192.168.3.150\shares\publica\sistemas\enablebitlocker.ps1但是,由于一些奇怪的原因,我得到了这个弹出式,我想让它安静地运行它,或者有办法自动说是?
Safety warningRun only the trusted scripts. Scripts from the Internet can be useful, but this script coulddamage your equipment. If you trust this script, use the Unblock-File cmdlet to allow it to run without this messagewarning. Do you want to run这是powershell脚本
$CdriveStatus = Get-BitLockerVolume -MountPoint 'c:'
if ($CdriveStatus.volumeStatus -eq 'FullyDecrypted') {
C:\Windows\System32\manage-bde.exe -on c: -recoverypassword -skiphardwaretest
}谢谢
目前正在运行的服务器2012不允许
发布于 2021-06-06 20:41:42
似乎是通过按名称添加脚本而不是通过IP来修复它。
\\apolo\shares\publica\sistemas\enablebitlocker.ps1https://serverfault.com/questions/1065149
复制相似问题