Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Encrypt Files with PowerShell

$
0
0

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")


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>