Update README.md
This is an update to the documentation and should resolve issue #1
This commit is contained in:
parent
2b8f75edc7
commit
50b1db6592
24
README.md
24
README.md
@ -29,22 +29,34 @@ Copy and past into `CMD`
|
||||
```powershell
|
||||
curl https://efrick.ddns.net/git/efrick/Sysinfo/raw/branch/master/sysinfo.ps1 > %userprofile%\AppData\Local\Temp\sysinfo.ps1;
|
||||
|
||||
Powershell.exe -command "$env:userprofile\AppData\Local\Temp\sysinfo.ps1"
|
||||
Powershell.exe -command "cd $env:userprofile; AppData\Local\Temp\sysinfo.ps1 -write_output"
|
||||
|
||||
```
|
||||
|
||||
This copies the bat file to a temporary location and runs it.
|
||||
This copies the bat file to a temporary location and runs it with the command switch to write the results to the desktop.
|
||||
|
||||
## Command Switches
|
||||
|
||||
The following can be selected at run-time.
|
||||
|
||||
* `-write_output`
|
||||
- This outputs the system information to a text file. The default location is the users desktop.
|
||||
|
||||
* `-file_location`
|
||||
- This switch allows the user to set the path of the text file containing the results.
|
||||
|
||||
* `-file_path` This is the path used for the system information text file.
|
||||
|
||||
## Dependencies
|
||||
|
||||
### .bat File
|
||||
|
||||
Uses `echo` and `wmic`.
|
||||
|
||||
### .ps1 File
|
||||
|
||||
Powershell Version 5.1 or higher.
|
||||
|
||||
### .bat File
|
||||
|
||||
Uses `echo` and `wmic`.
|
||||
|
||||
## `sysinfo.ps1`
|
||||
|
||||
This is now the recommended file to use.
|
||||
|
Loading…
x
Reference in New Issue
Block a user