Difference between revisions of "Convert WindowsImage PS1 File"
Line 3: | Line 3: | ||
First, the disclaimer. This article is not about a step by step of how to use this utility. Rather it is about the problems I ran into using this utility. | First, the disclaimer. This article is not about a step by step of how to use this utility. Rather it is about the problems I ran into using this utility. | ||
== Problem #1; | == Problem #1; Error message and it won't run == | ||
Basically I typed the name of the file to run Convert-WindowsImage.ps1 and got a warning and remember immediately that I should have pre-pended .\ to the beginning of it.<syntaxhighlight lang="batch"> | Basically I typed the name of the file to run Convert-WindowsImage.ps1 and got a warning and remember immediately that I should have pre-pended .\ to the beginning of it.<syntaxhighlight lang="batch"> | ||
.\Convert-WindowsImage.ps1 | .\Convert-WindowsImage.ps1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | |||
== Problem #2; No error message and it still won't run == | |||
</div>This issue was related to all of the restrictions and protections Microsoft puts in place to protect us from all the evil in the world and at the same time make the PowerShell completely dysfunctional (or so it seems). You've might have already read about and tried the Set-Execution Policy to Unrestricted or Bypass and still have nothing work as happened to me. The key to figuring this out was a simple comment by a contributor on a forum. He said, "...downloaded from the internet." That made me think about these warning dialogs in Windows 10 that would pop up when I opened videos, music files, graphics, or anything else downloaded from the internet that put up an extra warning alluding to the file being from the internet and asking if I really wanted to open the file. | |||
I did download the Convert-WindowsImage.ps1 file from the internet, but wait, it's just a text file, why don't I just create a new text file on my computer and copy and paste the contents of the original file into the new one? So I did. And it worked as the new file I created wasn't downloaded from the internet, but whose origins were local on my computer. |
Revision as of 09:42, 25 January 2018
Convert-WindowsImage.ps1
First, the disclaimer. This article is not about a step by step of how to use this utility. Rather it is about the problems I ran into using this utility.
Problem #1; Error message and it won't run
Basically I typed the name of the file to run Convert-WindowsImage.ps1 and got a warning and remember immediately that I should have pre-pended .\ to the beginning of it..\Convert-WindowsImage.ps1
Problem #2; No error message and it still won't run
This issue was related to all of the restrictions and protections Microsoft puts in place to protect us from all the evil in the world and at the same time make the PowerShell completely dysfunctional (or so it seems). You've might have already read about and tried the Set-Execution Policy to Unrestricted or Bypass and still have nothing work as happened to me. The key to figuring this out was a simple comment by a contributor on a forum. He said, "...downloaded from the internet." That made me think about these warning dialogs in Windows 10 that would pop up when I opened videos, music files, graphics, or anything else downloaded from the internet that put up an extra warning alluding to the file being from the internet and asking if I really wanted to open the file.
I did download the Convert-WindowsImage.ps1 file from the internet, but wait, it's just a text file, why don't I just create a new text file on my computer and copy and paste the contents of the original file into the new one? So I did. And it worked as the new file I created wasn't downloaded from the internet, but whose origins were local on my computer.