Script to List File Space by Date

Mark Berry February 10, 2017

After setting up a Network Video Recorder recently (using Milestone XProtect Essentials software), I needed a way to add up and compare how much disk space is being used for each day of recordings. Without this information, there is no easy way to see what effect various settings have on disk space (e.g. frames per second, motion sensing, etc.). And because there are often tens of thousands of files per day, Windows Explorer balks at filtering the files by date and summing their space.


Run Downloaded PowerShell Scripts

Mark Berry February 17, 2016

If you downloaded a PowerShell scripts, for example as part of a .zip file, you may see the message

[Script name] is not digitally signed. The script will not execute on the system. For more information, see about_Execution_Policies at

This happens even if you follow the suggestion in my earlier post to

Set-ExecutionPolicy RemoteSigned

What gives?


Set Up and Download Scripts and Helpers

Mark Berry December 10, 2015

Scripting is great, but if you manage a bunch of computers, how do you get those scripts and their helper programs onto the computers in the first place? I wrote a script for that!


Print Detailed Windows Update Information

Mark Berry November 12, 2015

Earlier this year, I wrote about how to show and change Windows Update settings on a machine using PowerShell. But sometimes you need to know more about a Windows update than you can see in those scripts or in the Windows user interface, for example the UpdateID. This PowerShell script will print key information about one or more udpates. Run it from a Remote Management tool or directly on the machine you are investigating.


Uninstall and Hide Windows Updates

Mark Berry November 11, 2015

Sometimes Microsoft releases a bad update via Windows Update. It might be 3035583 that has been released multitple times to to push Windows 10 nag prompts to users. Or 3097877 that causes Outlook to crash repeatedly.

Here is a PowerShell script that uses wusa.exe to uninstall an update, then PowerShell to hide that same update. It will even check for superseded updates with the same number and hide those. The script was designed to run from the MaxFocus dashboard but can also be run standalone.


PowerShell Command to List Users and Password Expiration Dates

Mark Berry March 13, 2015

Here from TechNet is a quick PowerShell script to list enabled Active Directory Accounts and their password expiration dates:

Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} -Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" | `
Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}} 

PowerShell Script to Change Windows Update Settings

Mark Berry March 12, 2015

I’ve already posted a script to show Windows Update settings. What if you want to change the settings? In particular, I needed to be able to use MAXfocus Site Automated Tasks to change the NotificationLevel so I could control when downloads and updates happen.


Updated PowerShell Script to Show Windows Update Settings

Mark Berry March 12, 2015

Last year in this article, I posted a PowerShell script to display Windows Update settings. I’ve enhanced that script to show two additional values and to optionally list all pending updates.



Welcome to MCB Systems!

MCB Systems is a San Diego-based provider of software and information technology services.

Our software services include customization and programming to make software work for you.

Our proactive I.T. services help businesses control costs by providing a fixed monthly bill for routine I.T. services.

We take a consulting approach that listens first and provides solutions tailored to your business.

Contact MCB Systems today to discuss your technology needs!

Copyright © 2017 MCB Systems. All rights reserved.
Terms of Use - Privacy Policy
Created in WordPress using the Afterburner theme by RocketTheme.