Merge pull request 'Run from USB' (#9) from USB_run into master
Reviewed-on: #9
This commit is contained in:
commit
93b2bf9180
17
README.md
17
README.md
@ -24,6 +24,18 @@ It currently outputs:
|
|||||||
|
|
||||||
## Quick Run
|
## 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`
|
Copy and past into `CMD`
|
||||||
|
|
||||||
**[Note:]** must be run from an admin prompt.
|
**[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.
|
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.
|
Below is a breakout of the Powershell commands run by the Quickrun above.
|
||||||
|
|
||||||
```powershell
|
```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")
|
(New-Object System.Net.WebClient).DownloadFile("https://efrick.ddns.net/git/efrick/Sysinfo/raw/branch/master/sysinfo.ps1", "sysinfo.ps1")
|
||||||
.\sysinfo.ps1 -write_output
|
.\sysinfo.ps1 -write_output
|
||||||
rm .\sysinfo.ps1
|
rm .\sysinfo.ps1
|
||||||
|
@ -2,8 +2,5 @@ ECHO off
|
|||||||
REM Runs the quick run commands form the readme.md
|
REM Runs the quick run commands form the readme.md
|
||||||
REM https://efrick.ddns.net/git/efrick/Sysinfo/src/branch/master/README.md#quick-run
|
REM https://efrick.ddns.net/git/efrick/Sysinfo/src/branch/master/README.md#quick-run
|
||||||
REM This must be run from an elevated prompt.
|
REM This must be run from an elevated prompt.
|
||||||
curl https://efrick.ddns.net/git/efrick/Sysinfo/raw/branch/master/sysinfo.ps1 > %userprofile%\AppData\Local\Temp\sysinfo.ps1;
|
|
||||||
|
|
||||||
Powershell.exe -command "cd $env:userprofile; AppData\Local\Temp\sysinfo.ps1 -write_output"
|
Powershell.exe -command "$current_execution_policy = Get-ExecutionPolicy; Set-ExecutionPolicy Bypass CurrentUser;$current_path = pwd; .\sysinfo.ps1 -write_output -file_location $current_path.Path"
|
||||||
|
|
||||||
del %userprofile%\AppData\Local\Temp\sysinfo.ps1
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user