Last active
April 30, 2021 13:07
-
-
Save cparmn/29ed0e9d234fbf033a9954377018eaad to your computer and use it in GitHub Desktop.
Allows the Execution of Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```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