Hello, Windows administrator.
In this video we will discuss about how to run powershell script (.ps1) for the first time on Windows 8.
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 that execution policy first then you can run any of your own made scripts.
You can read more on this page: https://www.itprotoday.com/powershell...
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 to help me to grow this channel.