After a long time, I wrote a short article. I created new virtual lab environment with win7x86. Then I tried to run a script that ended with .ps1 on PowerShell but there was a some errors.
The main reason for the mistake is as follows:
because the execution of scripts is disabled on this system
When I get this error, of course I started to search for solutions immediately. I found some sources then I tried. Actually it works.
First of all, we are going to find PowerShell then select Run as administrator. We are running the Set-ExecutionPolicy Unrestricted command on the incoming screen. When we run this command, it will ask us ‘yes’, ‘no’ and ‘Suspend’ questions. If you want you can choose ‘Y’ or press the enter button.
After this steps, we should find .ps1 script place in our OS. When we find, we can write on the command screen. You will see that the required installs are started. It can take some time because it performs several downloads.
I can say I fixed it like this. But there is a one more tips than I can give you. If you already have .Net Framework, you do not have to wait. You can start directly after enable progress.