Run from USB

This commit is contained in:
2021-04-28 10:17:30 -04:00
parent 8339c3b1b3
commit 9c16227e91
2 changed files with 16 additions and 6 deletions

View File

@@ -24,6 +24,18 @@ It currently outputs:
## Quick Run
### From USB Stick
Download the USB_Run.zip latest release from [Releases](https://efrick.ddns.net/git/efrick/Sysinfo/releases).
Unzip and copy the folder to a USB stick.
Click on the file `quickrun.bat`
This will put the output file into the directory it was run from.
### From Web
Copy and past into `CMD`
**[Note:]** must be run from an admin prompt.
@@ -36,11 +48,12 @@ Powershell.exe -command "$current_execution_policy = Get-ExecutionPolicy; Set-Ex
This copies the bat file to a temporary location and runs it with the command switch to write the results to the desktop.
### Powershell Breakout
#### Powershell Breakout
Below is a breakout of the Powershell commands run by the Quickrun above.
```powershell
$current_execution_policy = Get-ExecutionPolicy; Set-ExecutionPolicy Bypass CurrentUser
$current_execution_policy = Get-ExecutionPolicy
Set-ExecutionPolicy Bypass CurrentUser
(New-Object System.Net.WebClient).DownloadFile("https://efrick.ddns.net/git/efrick/Sysinfo/raw/branch/master/sysinfo.ps1", "sysinfo.ps1")
.\sysinfo.ps1 -write_output
rm .\sysinfo.ps1