How to set permissions to run PowerShell Scripts
Microsoft Windows PowerShell command line shell and scripting language helps IT professionals achieve greater control and productivity. Using a new admin-focused scripting language, more than 130 standard command line tools, and consistent syntax and utilities, Windows PowerShell allows IT professionals to more easily control system administration and accelerate automation.
By default, Powershell comes with the most secure policy i.e. Restricted. It permits users to execute commands in the shell, but does not permit scripts to run. Click here for more details about execution policies. Here is how you set the policy to execute Powershell scripts
You can change the PowerShell execution policy on your computer. The change is effective immediately and is retained until you change it again. Only Administrators are permitted to change the policy.
To change your execution policy, type:
Set-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned
If the command is successful, PowerShell displays the command prompt. There is no success message. If the command fails, PowerShell displays an error message, and reverts to the previous execution policy.
To see the PowerShell execution policy, type:
Get-ExecutionPolicy
If the command is not successful, you might have misspelled the policy name. Check the name and try again. If you do not have permission to run this command, see your system administrator.
Please feel free to use the comments form below if you have any questions or need more explanation on anything. Use the icons below to share this tutorial with your friends.
tags cloud
popular searches
free download for mysql database server 5.1.5, php, linux, mysql mysql, mysql, java, install mysql, gearman, ubuntu, tools, source code, bison, mysql initialization, install cairo, laptop
Similar Tutorials:
- Windows PowerShell command line shell execution policies
- My list of important Linux commands
- MS Windows IIS FTP-Part 1- Managing Users
- Microsoft Windows IIS FTP Part 3 - The Doorway Folder Trick
- MySQL error while dropping databases
Tutorials in 'Operating Systems > MS Windows' (more):
- Windows PowerShell command line shell execution policies
- How to Define Static hostnames for IP Addresses in Windows (counterpart of Linux`s /etc/hosts file in Windows)
- Installing & Configuring JSDoc On Windows


Comments (write a comment):
0 comments so far. Be the first one to leave a comment on this article.