PowerTip: Use PowerShell to Decrypt Files


Summary: Use Windows PowerShell to decrypt files.

Hey, Scripting Guy! Question How can I use Windows PowerShell to decrypt a file that it previously encrypted?

Hey, Scripting Guy! Answer Use the Decrypt static method from System.IO.File .NET Framework class, for example:

[io.file]::Decrypt("C:\fso\FileWithOutExtension")

Comments (0)

Skip to main content