Comments for smsagenthttps://smsagent.wordpress.com
Tips, tricks and time-savers for the Windows and ConfigMgr administratorThu, 27 Jul 2017 00:04:57 +0000hourly1http://wordpress.com/Comment on Forcing a ConfigMgr Client to Send a New CCMEval Report by Stevehttps://smsagent.wordpress.com/2016/09/05/forcing-a-configmgr-client-to-send-a-new-ccmeval-report/comment-page-1/#comment-877
Thu, 27 Jul 2017 00:04:57 +0000http://smsagent.wordpress.com/?p=2119#comment-877Thanks for looking into it anyway – I guess it must be an environmental thing. It only happened to about 10 (unrelated) servers out of about 100 anyway.
Cheers
]]>Comment on Removing Disabled Computer Accounts from SCCM with PowerShell by Trevor Joneshttps://smsagent.wordpress.com/2016/09/01/removing-disabled-computer-accounts-from-sccm-with-powershell/comment-page-1/#comment-875
Wed, 26 Jul 2017 15:30:51 +0000http://smsagent.wordpress.com/?p=2010#comment-875It will only send an email if it actually deleted any records.
]]>Comment on Removing Disabled Computer Accounts from SCCM with PowerShell by Trevor Joneshttps://smsagent.wordpress.com/2016/09/01/removing-disabled-computer-accounts-from-sccm-with-powershell/comment-page-1/#comment-874
Wed, 26 Jul 2017 15:28:46 +0000http://smsagent.wordpress.com/?p=2010#comment-874Try adding the code:

if ($NotEnabledDevices)
{

}

that I mentioned in a previous comment

]]>Comment on Removing Disabled Computer Accounts from SCCM with PowerShell by Trevor Joneshttps://smsagent.wordpress.com/2016/09/01/removing-disabled-computer-accounts-from-sccm-with-powershell/comment-page-1/#comment-873
Wed, 26 Jul 2017 15:25:54 +0000http://smsagent.wordpress.com/?p=2010#comment-873This could be because only one result is being returned therefore the AddRange() method is not recognizing it as an array, therefore not technically a range. You could try casting it into an array like this:

$DeletedRecords.AddRange([array]$($NotEnabledDevices …

]]>Comment on Forcing a ConfigMgr Client to Send a New CCMEval Report by Trevor Joneshttps://smsagent.wordpress.com/2016/09/05/forcing-a-configmgr-client-to-send-a-new-ccmeval-report/comment-page-1/#comment-872
Wed, 26 Jul 2017 15:15:45 +0000http://smsagent.wordpress.com/?p=2119#comment-872I am unable to reproduce that issue. I tested on an W2K12R2 server and it worked fine. The only thing it is doing at that point in the script is checking for the existence of the ‘ccmeval’ process in a do-while loop:

First of all thank you for sharing a fantastic report. Saves a lot of our time .

Just one question – Is there any way we can narrow down our search based on collection instead of Entire Database ?
Currently its searching Entire database and I am getting 100’s of entries which I don’t need .

It would be really helpful if you can bring it down to collection instead of entire database.

]]>Comment on Removing Disabled Computer Accounts from SCCM with PowerShell by sachinkpshindehttps://smsagent.wordpress.com/2016/09/01/removing-disabled-computer-accounts-from-sccm-with-powershell/comment-page-1/#comment-864
Tue, 25 Jul 2017 13:00:12 +0000http://smsagent.wordpress.com/?p=2010#comment-864Thanks for the nice script. Since I am not master in PowerShell if you could help me on the below error I will be thankful

this error after adding below suggested line
if ($NotEnabledDevices)
{
}