By default, this command displays useful properties for all volumes. You can specify a particular volume using theparameter. For example, to view the status of only the C: drive, use: Copy Get-BitLockerVolume -MountPoint "C:" To enable BitLocker with a PIN, use the following command (repl...
Backup-BitLockerKeyProtector Saves a key protector for a BitLocker volume in AD DS. Clear-BitLockerAutoUnlock Removes BitLocker automatic unlocking keys. Disable-BitLocker Disables BitLocker encryption for a volume. Disable-BitLockerAutoUnlock Disables automatic unlocking for a BitLocker volume. Enable-BitLo...
$BitLocker = Get-WmiObject -Namespace "Root\cimv2\Security\MicrosoftVolumeEncryption" -Class "Win32_EncryptableVolume" -Filter "DriveLetter = '$DriveLetter'" $ProtectorIds = $BitLocker.GetKeyProtectors("0").volumekeyprotectorID $return = @() foreach ($ProtectorID in $ProtectorIds){ $KeyProt...
BitLocker Cmdlets More Information Windows PowerShell® 是基于任务的命令行 shell 和脚本语言,专为系统管理而设计。本参考主题面向信息技术 (IT) 专业人员,可在利用 Windows PowerShell cmdlet 编写脚本和对任务实施自动化时提供协助。BitLocker CmdletsThis...
打开命令提示符(Command Prompt)或者 PowerShell。 输入diskpart进入 Diskpart 命令行环境。 常用的 Diskpart 命令: list disk:列出所有的磁盘。 select disk X:选择要操作的磁盘,X 是磁盘的编号。 list partition:列出选择的磁盘上的所有分区。 create partition primary size=X:在选定的磁盘上创建一个主分区,大小...
用于访问组织的域或租户、Exchange Server 和 Skype for Business 服务器的远程 PowerShell。 适用于组织的域或租户、Exchange Server 和 Skype for Business 服务器的管理员凭据。备注 无论是创建新帐户还是修改现有帐户,验证脚本都验证设备帐户配置是否正确。 在向 Surface Hub 添加设备帐户之前,应始终运行验证脚本。
The Module parameter of the Update-Help cmdlet doesn't accept the full path of a module file or module manifest file. To update help for a module that isn't in a $env:PSModulePath location, import the module into the current session before you run the Update-Help command. ...
Enable-BitLocker-MountPoint"C:"-EncryptionMethod Aes256-Pin$SecureString-TPMandPinProtector Note:TheTPMand aPINfor key protection are used in this example to enable BitLocker for a specific drive. The first command creates a secure string containing a PIN using the “ConvertTo-SecureString” cmdlet...
运行Get-Command 列出所有的 Windows PowerShell cmdlet,最终我发现了 Select-Object。它的描述为使用它将“选择某个对象或对象集的指定属性”。所以我尝试运行以下命令:复制 gwmi win32_logicaldisk -filter "drivetype = 3" | select freespace 通过将 Gwmi 的结果传送到 Select(Select-Object 的别名),我可以...
Start-Job -ScriptBlock {Get-Counter -Counter "\LogicalDisk(_Total)\% Free Space" -MaxSamples 1000} Id Name PSJobTypeName State HasMoreData Location Command -- --- --- --- --- --- --- 1 Job1 BackgroundJob Running True localhost Get-Counter -CounterStart-Job 使用ScriptBlock 参数来...