/powershell_dummies

powershell auto macros dummie repository it's maded for personal project tools.

Primary LanguagePowerShellMIT LicenseMIT

powershell scripts auto-complete-macro.

i'm mainly use windows 10 these shell scripts are maded for my project please don't use officially on your project.

Features

  • windows-terminal update and installing with scoop CLI installer is added.
  • custom-windows-terminal-settings.json is custom background templetes included. Dracula, Vibrant Tom

list of powershell scripts auto-complete-macro.

Usage

you must Install scoop on your PC if you are using windows os.
Make sure PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later) are installed. Then run:

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

# or shorter
iwr -useb get.scoop.sh | iex

if you didn't worked ? it's ok just follow this Execution policies and reboot your computer.

  1. first step check your powershell Execution Policies.
Get-ExecutionPolicy -List
  1. then read on your command line these policies what is locked.
        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser    RemoteSigned
 LocalMachine       AllSigned

normally policies are randomly set-up on your pc you don't need to focus these settings.

  1. set up new Execution policy.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser

we have plenty of selection of Execution Policy example check the below... i recommend first one.

Group Policy Execution Polcity
Allow all scripts Unrestricted
Allow local scripts and remote signed scripts RemoteSigned
Allow only signed scripts AllSigned

then your ExecutionPolicy is changed to Unrestricted check below codes ! then scoop installer is working now.

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser    Unrestricted
 LocalMachine       AllSigned
  1. Reboot PC reboot your PC and import above install commands on your powershell then it works. :)