On a set of Windows 2012 servers, i check disk space every day.
In a vb script, using this statement - (excerpt)
("Select * from Win32_LogicalDisk Where DriveType = " & HARD_DISK & "")
For Each objDisk in colDisks
If Not IsNull(objDisk.FreeSpace) Then
intVal = CDbl(objDisk.FreeSpace)
Without any changes to my knowledge to server security (using logon account), this vb script would work fine. So lately within the last few days, (note that the script runs without any error), i can execute it and it creates the WMI object. But now each day, the hard disk value does not change from day to day. The intVal value of free disk space stays the same on each day it is run. Where do I start to analyse?