Powershell Security warning

October 12, 2009

Security Warning
Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your
computer. Do you want to run E:\Temp\Backup\lib\Get-MC2Configuration.ps1?
[D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is “D”): r

When you copy a powershell script from a remote location (network share, remote computer, Internet, …) to your local computer, you get this security warning:

Security Warning

Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your

computer. Do you want to run E:\Temp\Backup\lib\Get-MC2Configuration.ps1?

[D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is “D”):

To get rid of this, richt click the file in Windows Explorer, choose properties, and click “Unblock”.  To know how Windows knows this file is copied from a remote location, search for  “NTFS Alternate Data Streams Windows Security Zone”  (e.g. http://community.tigranetworks.co.uk/blogs/tim_long/archive/2009/03/30/how-windows-tracks-a-file-s-security-zone.aspx)

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: