Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PS-Scripts

Collection of multiple scripts, utilities and tools under one directory. Share feedback at r1111111r@gmail.com

1. SystemInventory

A Power Shell script/tool that collects critical info about servers and emails the report.

The following information is gathered :

  • Computer Information like RAM, OS, Processor (with Pie-Chart)
  • Top 10 Running Processes
  • List of Shared Folders
  • Disk-Info showing disks having Low Disk space (less than 20%,configurable)
  • List of all Services that are Automatic but in Stopped stage.

The initial source of the script is https://www.simple-talk.com/content/article.aspx?article=1459.

However, this script is optimised using PowerShell remoting , so it gives very good performance. Also, it has Error Handling and some other features.

Future Features (Please Contribute)

  • Currently logged-in users
  • Users who have access to servers but are not in our defined TRUST list
  • Pending Patches / Windows Updates
  • Color Highlight Low-Disk Space warnings in email report
  • NTFS/Share permissions

Usage

Help

Get-Help .\SystemsReport.ps1 -Full

Running Script

Create a file having the list of servers of which report needs to be generated. Enter one server name in one line. See Example file : ServerNames.txt .\SystemsReport.ps1 -ConfigPath .\ServerNames.txt

Also, set the following variables as per environment :

#region Variables and Arguments
$fromemail = "youremail@yourcompany.com"
$users = "boss@company.com" # List of users to email this report to (separate by comma)
$server = "yourmailserver.yourcompany.com" #enter SMTP server DNS name / IP address here
$computers = Get-Content $ConfigPath #grab the names of the servers/computers to check from the config file
# Alternatively, set below variable
<b># $Computers = "Server1", "Server2"</b>
# Set free disk space threshold below in percent (default at 20%)
$thresholdspace = 20
[int]$ProccessNumToFetch = 10
$ListOfAttachments = @()
$Report = @()
$CurrentTime = Get-Date
#endregion

About

Collection of some handy scripts.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /