The PSDataProtection
module utilizes Microsoft Data Protection to encrypt and decrypt secrets.
The module is distributed as a Windows Installer package (the PowerShell Gallery is not suitable for some enterprises).
Run the installer manually or in unattended mode:
msiexec.exe /i ps-data-protection.msi /qn
The default installation path is:
%ProgramFiles%\WindowsPowerShell\Modules\PSDataProtection
Use Get-Command
and Get-Help
to enumerate the cmdlets with this module and obtain their documentation:
Get-Command -Module PSDataProtection
Get-Help New-DataProtectionSecret -Full