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

Standard User Account Setup

Create Standard User With Blank Password Batch File @echo off setlocal :: Check for admin privileges net session >nul 2>&1 if %err...