Some times agents start to stop collecting data without stopping completely . this is often when client are overloaded or management servers are for a while unavailable. In my case most times disk space counters stopped working as on of the first roles. So check this counter frequently, like every week or after maintenance jobs.
It can be easy done by using a query towards ops db.
First create a view
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
CREATE VIEW [dbo].[50beansDiskFreeSpace] AS SELECT TOP (10) PERCENT bme.Path, ps.PerfmonInstanceName, pdav.SampleValue, pdav.TimeSampled, dbo.MaintenanceMode.IsInMaintenanceMode FROM dbo.PerformanceDataAllView AS pdav WITH (NOLOCK) INNER JOIN dbo.PerformanceSource AS ps WITH (NOLOCK) ON pdav.PerformanceSourceInternalId = ps.PerformanceSourceInternalId INNER JOIN dbo.Rules AS r WITH (NOLOCK) ON ps.RuleId = r.RuleId INNER JOIN dbo.BaseManagedEntity AS bme WITH (NOLOCK) ON ps.BaseManagedEntityId = bme.BaseManagedEntityId INNER JOIN dbo.MaintenanceMode ON bme.BaseManagedEntityId = dbo.MaintenanceMode.BaseManagedEntityId WHERE (r.RuleName LIKE N'%LogicalDisk.FreeMB%' OR r.RuleName = N'Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk.Monitoring.CollectPerfDataSource.FreeSpaceMB') AND (pdav.TimeSampled = (SELECT MAX(TimeSampled) AS Expr1 FROM dbo.PerformanceDataAllView WHERE (PerformanceSourceInternalId = pdav.PerformanceSourceInternalId))) ORDER BY pdav.TimeSampled GO
Now run the view . On top you will find all disks in Maintenance mode. It is clear they did not collect any data within the last few minutes . After that follow all servers with a partly disabled agent. on the bottom you will find clients having an TimeSampled within an few minutes. They are working well.
As powershell is running by default in secure mode , use the following setting to run powershell scripts from a scheduled task.
This way you do not have to elevate the rights for running scripts. Ensure your Powershell script is located in a folder where he is well protected from tempering bud accessible by the user the scheduled task is running under.
Option: -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden –File <Path and Scriptname>
Example for Option :-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden –File C:\scripts\myscript.ps1
I used to write posts using Microsoft Word. After updating to WordPress 4.1 blogging was not possible anymore . In WordPress the settings for XML-RPC disappeared.
Microsoft is offering a free bundle of software called : Windows Essentials
Install only Windows Live Writer from this bundle. It is better than Word for blogging as you can apply categories etc.
Info: to change the path where Live Writer saves your local documents add the following RegKey
Windows Registry Editor Version 5.00
The file was created by using the command add-content without definition of encoding (default ANSI encoding). Later on lines where added by using command out-file (default Unicode encoding)
Do not mix the two line writer add-content and out-file without definining encoding.