Skip to content

Instantly share code, notes, and snippets.

@cparmn
Last active April 30, 2021 13:07
Show Gist options
  • Save cparmn/29ed0e9d234fbf033a9954377018eaad to your computer and use it in GitHub Desktop.
Save cparmn/29ed0e9d234fbf033a9954377018eaad to your computer and use it in GitHub Desktop.
Allows the Execution of Scripts
```powershell
write-host "This will run`r`nThis is still on line one Now lets run the ps Command"
ps | where-object {$_.ProcessName -eq "cmd"}
write-host "Finally on line 3`r`n ...stilll line 3..."
ipconfig
write-host "Now we're on the final line "
```powershel
netsh -f script1.ps1 | % {[regex]::matches($_ ,'(?<=The following command was not found: )(.*?)(?=\.$)')} | % { $_.value -replace "" } | powers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment