Compare commits
5 Commits
Add_Domain
...
efrick-pat
| Author | SHA1 | Date | |
|---|---|---|---|
| 150687f2a1 | |||
| 3f805bead7 | |||
| dbe2543217 | |||
| 9170d37d0c | |||
| bf11d64feb |
10
README.md
10
README.md
@@ -91,4 +91,12 @@ It will require the ability to run Powershell Scripts which is restricted by def
|
|||||||
|
|
||||||
## Dev Notes
|
## Dev Notes
|
||||||
|
|
||||||
Going forward branch master will be write protected. Please do all further work on branches off of master.
|
Going forward branch master will be write protected. Please do all further work on branches off of master.
|
||||||
|
|
||||||
|
I will be starting to work on rewriting the main script in C#. This will afford the following advangages:
|
||||||
|
|
||||||
|
* An executable. This will have the advange of not having to mess with the Powershell ExecutionPolicy everytime you want to run the scritp.
|
||||||
|
|
||||||
|
* The Autorun in the USB_Run.zip file will actually be able to launch the script.
|
||||||
|
|
||||||
|
* With it being writin in C# it should be more extensable and somewhat easier to manintain.
|
||||||
@@ -3,4 +3,4 @@ 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.
|
||||||
|
|
||||||
Powershell.exe -command "$current_execution_policy = Get-ExecutionPolicy; Set-ExecutionPolicy Bypass CurrentUser;$current_path = pwd; .\sysinfo.ps1 -write_output -file_location $current_path.Path"
|
Powershell.exe -command "$current_execution_policy = Get-ExecutionPolicy; Set-ExecutionPolicy Bypass CurrentUser;$current_path = pwd; .\sysinfo.ps1 -write_output -file_location $current_path.Path;Set-ExecutionPolicy $current_execution_policy CurrentUser"
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ function Find-RAM { #This finds the systems total physical memory and then retur
|
|||||||
|
|
||||||
$system_memory = $cs.totalphysicalmemory
|
$system_memory = $cs.totalphysicalmemory
|
||||||
|
|
||||||
$system_memory = $system_memory * 0.000000001 #Multiplies by 0.000000001 as the number give by CIM is in bytes.
|
$system_memory = [math]::Round($system_memory / 1GB, 2)
|
||||||
$system_memory = [math]::floor($system_memory)
|
|
||||||
$system_memory = [String]$system_memory + " GB"
|
$system_memory = [String]$system_memory + " GB"
|
||||||
|
|
||||||
return $system_memory
|
return $system_memory
|
||||||
|
|||||||
Reference in New Issue
Block a user