⚙ Bypass PowerShell 2.0 in Windows 11
How to Run loadGAC.ps1 in PowerShell (PowerShell 2.0 DLC Setup)
📌 Overview
This article explains how to properly execute the loadGAC.ps1 script
after downloading and extracting the ps2DLC.zip file.
❗ Common Error:
“The term 'run' is not recognized as the name of a cmdlet…”
Cause: run is not a valid PowerShell command.
📥 Step 1: Download the File
- Download ps2DLC.zip from the provided source.
- Right-click on ps2DLC.zip
- Select Extract All
- Choose a folder (Example: C:\ps2DLC)
🛡 Step 3: Open PowerShell as Administrator
- Click Start
- Search for PowerShell
- Right-click → Select Run as Administrator
Run the following command:
cd C:\ps2DLC
Verify the script exists:
dir
You should see:
loadGAC.ps1
🔐 Step 5: Enable Script Execution (If Required)
If scripts are blocked, run:
Set-ExecutionPolicy RemoteSigned
Press Y and hit Enter.
Recommended (Temporary Bypass for Single Session):
Set-ExecutionPolicy Bypass -Scope Process
▶ Step 6: Run the Script (Correct Command)
Incorrect:
run .\loadGAC.ps1
Correct:
.\loadGAC.ps1
🚨 Common Issues & Solutions
Running scripts is disabled
Solution:
Set-ExecutionPolicy Bypass -Scope Process
Script not found
Ensure you are in the correct directory:
cd C:\ps2DLC
Access Denied
Open PowerShell in Administrator mode.
✅ Expected Result
After running:
.\loadGAC.ps1
The required assemblies will load successfully without command errors.
Important: PowerShell does not use the run command.
Always execute scripts using .\scriptname.ps1.