-
-
Notifications
You must be signed in to change notification settings - Fork 1
Execution Policy Cannot run PowerShell Compact Archive Tool
PowerShell Compact-Archive Tool starting from version 1.1.0 will no longer require you to configure your ExecutionPolicywithin PowerShell. Instead, please use the "Bootstrap Loader.bat" located within the Start Menu after installation - which will help launch PSCAT for you without any fuss. As such, you may skip this tutorial. I want to keep this page available only incase if someone needs it for specific reasons, or if needing to run an earlier version of PSCAT.
If trying to run the PowerShell Compact-Archive Tool, or any PowerShell script for that matter, one must first configure PowerShell to allow unsigned scripts to be executable within the shell's environment. By default, PowerShell will only execute scripts that are signed within the system itself. Microsoft enforces this rule only for security means - to protect its users from any malicious scripts from doing any malevolent activity within their system's. While this is kind-of an inconvenience to us, it should be noted that not all users need this functionality out-of-the-box - and with the default setting it is potentially protecting them. But, again, the draw-back is - it is not possible for us to easily run the PowerShell Compact-Archive Tool program with the default ExecutionPolicy set. We will have to configure the ExecutionPolicy by using the CMDLet Set-ExecutionPolicy within PowerShell.
Below are the steps to configure the Set_ExecutionPolicy such that the PSCAT application will work correctly within your system. These instructions are written on a beginner level, which will allow everyone to easily follow along.
In this step, we will launch the PowerShell application with Administrative roles. We will need the Administrative rights as we will configure how PowerShell interacts with the scripts, thus this configures the system's internal settings.
With this step, we just launched PowerShell with Administrative rights. In the next step, we will configure the Set-ExecutionPolicy.
In this step, we will manipulate the Execution Policy using the Set-ExecutionPolicy CMDLet. By doing this, ultimately, we will be able to run any program within PowerShell.
-
Type the following:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
-
Accept the risks by typing 'y' and providing the 'Enter' key to confirm.
In this last step, we configured PowerShell's Execution Policy such that it is now possible to run any PowerShell based applications freely within the system.
Do note that this project is no longer in evolution nor maintained development cycle anymore. Thus, meaning, no new features or bug fixes will be submitted into this project anymore.