Solved

Get-WMIobject

Posted on 2016-10-24
4
23 Views
Last Modified: 2016-11-13
I plan to run poweshell script to get free space on mount point disks. I may have to schedule this script to run at every five minutes to monitor the logs disks.
Will this cause any performance impact on server if it runs at every five minutes interval ?
0
Comment
Question by:sara2000
  • 2
4 Comments
 
LVL 68

Expert Comment

by:Qlemo
ID: 41858269
If you are not asking for any detail: no. free/used space for a partition is available immediately.
Asking for file sizes for specific files is ok. Getting the folder size is more demanding, as it requires to go thru all subfolders.
But do you really need to have 5 minute monitoring?
0
 

Author Comment

by:sara2000
ID: 41858569
I am trying to monitor Exchange dbs and logs disk space (RDM LUN). If  the logs fills the lun then LUN will go offline (NetAPP LUNs) for that reason I would like to monitor it for every five minutes or an hour. I am going to run get-wmiobject remotely.
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points (awarded by participants)
ID: 41858626
Once each hour should be sufficient.
Whether you run WMI locally or remote doesn't matter (much), it is always executed on the target side.
As said, if you keep info on the disk/partitiion level (and knowing about free space is that level) there should be no issue:
(Get-WmiObject Win32_LogicalDisk -Computer ExchangeServer -Filter { DeviceID = 'D:' }).FreeSpace -lt 10GB

Open in new window

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now