windows-powershell-docs
windows-powershell-docs copied to clipboard
This repo is used to contribute to Windows 10, Windows Server 2016, and MDOP PowerShell module documentation.
Example 1 on this page describes PK as a private key and that PK.cer contains a private key. Both descriptions are incorrect and has misled at least one reader. In...
I find the `WriteCache`-related parameters description not detailed enough: * At first, I was even struggling to understand, whether it stores the data in the performance tier or in system...
The `NumberOfColumns` parameter is poorly documented. Especially, when it comes to the tiered storage space. * Both `New-VirtualDisk` and `New-StorageTier` allow to specify this parameter, but the current documentation does...
This is a silly and useless command. None of the other commands provide the registry key locations or parent locations of settings of a given policy. Also if you go...
In the LogLevel section, it lists four options for logs using numeric values, but this parameter is of type "Microsoft.Dism.Commands.LogLevel" which is an enum with 3 values. The correct information...
Get-ADReplicationAttributeMetadata works fine in powershell, but on powershell core it errors out about hexadecimal values ``` Get-ADUser -Filter "*" -ErrorAction Stop -Server $DC -credential $Credential | Get-ADReplicationAttributeMetadata -Server $DC -credential...
PS C:\WINDOWS\system32> Get-WindowsOptionalFeature -Online Get-WindowsOptionalFeature : 不支持此接口 所在位置 行:1 字符: 1 + Get-WindowsOptionalFeature -Online + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-WindowsOptionalFeature], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsOptionalFeatureCommand Log from setupdiag.exe...
Export-windowsdriver -online -destination doesn't work on Win11, but works on Win10. PS C:\Users\user> export-windowsdriver -Online -Destination c:\temp export-windowsdriver : Value cannot be null. Parameter name: SafeHandle cannot be null. At...
The #1 example given PS C:\> $BLV = Get-BitLockerVolume -MountPoint "C:" PS C:\> Backup-BitLockerKeyProtector -MountPoint "C:" -KeyProtectorId $BLV.KeyProtector[1].KeyProtectorId This specifies and arbitrary position in the array $BLV.KeyProtector. There is no...