How to run powershell script (.ps1) for the first time (How to fix SecurityError)

Subscribers:
613
Published on ● Video Link: https://www.youtube.com/watch?v=DY6yHvzd1kE



Duration: 8:54
16,985 views
71


Hello, Windows administrator. In this video we will discuss about running powershell script (.ps1) for the first time.

You know, we can't run our own powershell scripts for the first time because of ExecutionPolicy is setted to AllSign. I use Windows 8. This mean that the Powershell don't allow any scripts to be run if not have digital signature. So you need to change the execution policy first than you can run any of your own made scripts.

You can read more on this page: https://www.itprotoday.com/powershell/running-powershell-scripts-easy-1-2-3

So, the steps to run your own script are:
1st. Run the powershell
Open run and type: cmd and then type: powershell and then enter.
2nd. Set the execution policy to lower level than your current level of security, for instance: RemoteSigned.
Set-ExecutionPolicy RemoteSigned
3rd. Then, run the script.
If path to the folder contained the script not yet added to PATH, then you need to added directly: &"YOUR_PATH_TO_THE_FOLDER\YOUR_FILE_NAME"
If path to the folder contained the script had been added to PATH, then you just need to add the filename only:

Thanks for watching and don't forget to subscribe if you like this video.




Other Videos By Computertechlighthouse


2020-03-28Strange moon and star aligning found today 28-03-2020, 19:00
2020-03-28I make Matrix the movie intro like using Small Basic
2020-03-26How to troubleshoot Python IDLE can't run or F5 file (IDLE's subprocess didn't make connection)
2020-03-14Batch Language: Extracting a substring from a string!
2020-03-13Audacity Tutorial: Silencing, DTMFing, Noising, etc. your song part!
2020-03-09Cisco Packet Tracer Activity 5.5.1 Explaination Part 1
2020-03-09Cisco Packet Tracer Activity 5.5.1 Explaination Part 2
2020-03-08Cisco Packet Tracer LAB 5.5.2: Router Segment Broadcast Domains
2020-03-05FOR /F can't use multiple commands and how to solve it
2020-03-04How to ping a range of IP addresses using Windows BATCH FOR /L command
2020-03-02How to run powershell script (.ps1) for the first time (How to fix SecurityError)
2020-03-01How to search for File(s) on your Windows computer using command line (cmd)
2020-02-26How to set a network interface IP address using netsh subcommands
2020-02-26How to rename a network interface using netsh interface subcommand
2020-02-26How to disable and enable a network interface quickly using netsh subcommand
2020-02-26How to use netsh interface command to determine all of or one of your interface IP address quickly
2020-02-03How to play Donkey Kong 64 with Project64 (a Nintendo Emulator) [Easy]
2020-01-25Asus Zenfone Troubleshooting can't finished bootup forever / freezing
2018-06-25How to instal font from google font on windows 7
2018-06-24Microsoft Access Tutorial 6 : Exporting Microsoft Access Table to Microsoft Excel
2018-06-24Microsoft Access Tutorial 5: Filling data