Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Get-System Information Powershell Basics

164 views

Published on

Get-System Information Powershell Basics

Published in: Software
  • Be the first to comment

Get-System Information Powershell Basics

  1. 1. Get-System Information Powershell #to get the environment settings. The output grid view provides nice GUI Get-ChildItem Env: | select-object Name,Value | Out-GridView #How much RAM installed in the computer Get-WmiObject -Class Win32_ComputerSystem | Select-Object -Property @{Name="Total Memory (GB)"; Expression = {$_.TotalPhysicalMemory/1GB}} #to get the user-path settings. The output grid view provides nice GUI with filter $env:Path.Split(";") | Out-GridView #to get the system-path settings. The output grid view provides nice GUI with filter [Environment]::GetEnvironmentVariable("Path", "Machine").Split(";") | Out-GridView #To Set a new system environment variable [Environment]::SetEnvironmentVariable("ResharperPath", "C:ResharperPathbin", "Machine") #To Set the user environment variable [Environment]::SetEnvironmentVariable("UserData", "D:User100Data", "user")

×