Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Set Execution Policy Permissions

Posted on March 22, 2016March 22, 2016 By David Kittell

In order for PowerShell to run scripts you need to grant it specific permissions.

  • Restricted
    • No scripts can be run. Windows PowerShell can be used only in interactive mode.
  • AllSigned
    • Only scripts signed by a trusted publisher can be run.
  • RemoteSigned
    • Downloaded scripts must be signed by a trusted publisher before they can be run.
  • Unrestricted
    • No restrictions; all Windows PowerShell scripts can be run.
Get-ExecutionPolicy
set-executionpolicy remotesigned

Reference: https://technet.microsoft.com/en-us/library/ee176961.aspx

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell Execution PolicyPermissionsPowerShell

Post navigation

Previous post
Next post

Related Posts

Mac OSX – Computer Name

Posted on August 5, 2016

# Name the Machine in all areas the same – Start # Get Serial Number sSerialNumber=$(system_profiler SPHardwareDataType |grep "Serial Number (system)" |awk ‘{print $4}’ | cut -d/ -f1) echo $sSerialNumber # Ask User if the computer is a laptop printf "Is this a laptop, if yes type y or if…

Read More

Connect to SSH from Terminal

Posted on October 28, 2015

When on a UNIX based computer you can connect to another terminal via SSH using this command ssh -p 22 user@your.ip.address The -p defines the port, while 22 is the default port for SSH some servers change their port to ward off potential hackers. Make sure you know what the…

Read More

UNIX Terminal – Clear Bash History

Posted on October 28, 2015

history -cw All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories
  • Raspberry Pi - Remove Default Apps
  • PowerShell - Change Windows CD/DVD Drive Letter
©2025 David Kittell | WordPress Theme by SuperbThemes