Category Archives: WMI

Delete User Profiles Interactively with PowerShell

Last week, one of my administrators was complaining at how involved it was to remove a profile on a remote user’s computer. A little over two years ago, I wrote Delete Inactive Profiles, as a substitute for DelProf for post … Continue reading

Posted in PowerShell, Scripting, Windows 10, Windows 7, Windows 8, Windows Administration, WMI | Tagged , | Leave a comment

Get MAC Address from IP Address

I got a call last week from a member of one the other teams where I work.  He asked, “Do you have a script which will resolve a list of IP Addresses to MAC Addresses?” My answer was, “not yet”.  … Continue reading

Posted in Functions, PowerShell, Scripting, Windows Administration, WMI | Tagged , , | Leave a comment

CIM_DATETIME Conversion Functions

Also known as WMI Time, or WBEM DateTime,  CIM_DATETime, https://msdn.microsoft.com/en-us/library/aa387237(v=vs.85).aspx, is that odd Windows DateTime format that shows values looking like “20160905103517.816236-240”  The COM Object that presents this is  WbemScripting.SWbemDateTime, and you frequently see code to convert to this format … Continue reading

Posted in PowerShell, Scripting, Scriptlets, WMI | Tagged | Leave a comment

WMI Repair — The Old Way is a Bad Way

This was forwarded to me from one of our Microsoft guys.  I have been using a batch file to fix WMI with this line for years: WMI: Stop hurting yourself by using “for /f %%s in (‘dir /s /b *.mof … Continue reading

Posted in SCCM, Windows Administration, WMI | Leave a comment

Finding Rarely Used Computers On Your Network

I support a number of hospitals.  Many of these have very large facilities, where the placement of computers was originally done by a space planner or others trying to make an educated guess about how and where people would be … Continue reading

Posted in PowerShell, Scripting, Windows Administration, WMI | Tagged , | Leave a comment

Get IE Zone Information

Like most large enterprises, we use a group policies to manage Internet Explorer settings.  We manage the security settings, and we enforce which sites are in Trusted Sites and the other internet zones.  The user cannot change the list, or … Continue reading

Posted in PowerShell, Windows Administration, WMI | Leave a comment

Win32_ReliablityRecords, PowerShell and ScriptoMatic

I was reviewing my blog stats today and found a link from a site in UK to my version of ScriptoMatic.hta.  I have upgraded my home laptop to 8.1, and decided to see whether it still works (it does).  If … Continue reading

Posted in PowerShell, Scripting, Windows 7, Windows 8, Windows Administration, WMI | Tagged , , | Leave a comment

Customer Service Rants and Raves: Good Guys and Bad Guys

I had a very nice experience today with PJ Technologies, the makers of the WMI Explorer, WMIX, (see http://www.goverlan.com/#WMI-Enterprise-Desktop-Management).  I had to reinstall, and had misplaced the license key.  They had it to me in minutes. I had a very … Continue reading

Posted in Rants, WMI | Leave a comment

ShareEnum Alternative

The SysInternals ShareEnum.exe program relies on the NETBIOS browser list and chokes in very large domains.  I wanted a program which let me to audit share permissions with greater flexiblity. ShareEnum.wsf is an alternative to ShareEnum.exe.  It relies on WMI to enumerate share permissions.  The WMI … Continue reading

Posted in Alan's Favorites, Security, Windows Administration, WMI | Leave a comment

Who logs onto this computer?

One of the questions that is frequently asked in a large organization is, “Who uses computer XYZ123?”. Many tools will report the current user, but the current user may or may not be the the person who usually works on a given computer.  … Continue reading

Posted in VbScript, Windows 7, Windows Administration, WMI | 1 Comment