Sunday, June 15, 2025

Running a ps1 script

I downloaded a fido script and extracted it onto the desktop.
I opened PowerShell 7 as admin and pasted this in.

cd $env:USERPROFILE\Desktop
Set-ExecutionPolicy Bypass -Scope Process -Force
.\fido.ps1
script will stop so hit enter

The above can all be pasted into PowerShell admin at the same time
If the ps1 file is on the desktop
ExecutionPolicy will be temporarily bypass
File will be executed

To check Execution policy
Get-ExecutionPolicy -List

 Default looks like this:
Scope                         ExecutionPolicy
        -----                         ----------------
        MachinePolicy                 Undefined
        UserPolicy                    Undefined
        Process                       Undefined
        CurrentUser                   Undefined
        LocalMachine                  Restricted

ChrisTitusTool Shortcut

Runs PowerShell 7 (can be manually changed) Right-click on your desktop and go to New -> Shortcut It should ask for the location of the i...