Skip to content

smatechnologies/windows-system-monitors-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows system monitors with Powershell

This script shows basic examples of how to monitor Windows system resources using Powershell.

Prerequisites

  • Powershell v5.1

Instructions

  • Server - Name of the server you are targeting to monitor
  • Load - CPU usage in %
  • Drive - Drive you are checking for the amount of freespace
  • Freespace - Freespace in % you want to monitor for
  • Amount - Amount of free RAM in %
  • ServiceName - Name of service to check the status of (wildcards supported)
  • Monitor - Which type of monitor: cpu, disk, ram, service, ping, process, port, partition, resizepartition, loggedonuser
  • Process - Name of process you want to monitor
  • Port - Port you want to monitor
  • Disk - Disk that you want information on or to resize
  • Partition - Partition that you want to resize
  • Size - Size in GB that you want to resize the partition too

Example:

powershell.exe -ExecutionPolicy Bypass -File "C:\Windows_Monitors.ps1" -server <myserver> -monitor <disk> -drive c -freespace 10

Disclaimer

No Support and No Warranty are provided by SMA Technologies for this project and related material. The use of this project's files is on your own risk.

SMA Technologies assumes no liability for damage caused by the usage of any of the files offered here via this Github repository.

License

Copyright 2020 SMA Technologies

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributing

We love contributions, please read our Contribution Guide to get started!

Code of Conduct

Contributor Covenant SMA Technologies has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.

About

Demonstrates how to monitor Windows system resources using Powershell

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •