PowerTip: Encrypt Files with PowerShell

Doctor Scripto

Dr Scripto

Summary: Learn how to easily encrypt files by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily encrypt files?

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

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

0 comments

Comments are closed. Login to edit/delete your existing comments