Tag Archives: wmi

Don’t display last username if C drive encrypted with BitLocker

I’m moving from encrypting laptops with a third party disk encryption product to BitLocker. The third party product uses a pre-boot username & password prompt, and only boots into Windows if the credentials are correct. Users then have to log … Continue reading

Rate this:

Posted in Security, Storage, Windows | Tagged , , , , | Leave a comment

Using Group Policy WMI Filters with examples

WMI Filters exist at the bottom on the Group Policy Management Console and are a way to target Group Policy Objects (GPOs)┬ábased on the results of the WMI query. Other ways of targeting GPOs are by the OU that it … Continue reading

Rate this:

Posted in Windows | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

PowerShell function to convert WMI Event Log date and time to datetime data type

PowerShell likes to hold dates and times as the DateTime data type. This enables you to do useful things with it such as maths, easily pick out bits of it (e.g. just the date ignoring the time, just the hour, … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , | Leave a comment

PowerShell: Finding user sessions on RDSH servers

If you’ve been working with Citrix Metaframe/Presentation Server/XenApp and/or Microsoft Terminal Server/Terminal Services/Remote Desktop Session Host for a while you’ll probably be familiar with the command line utility quser (or query user). It returns a tabular output showing details of … Continue reading

Rate this:

Posted in PowerShell, Remote Desktop, Scripting | Tagged , , , , , , , , , | Leave a comment

Get VMware VM creation date (kind of)

VMware vSphere doesn’t seem to keep the VM creation date in its database anywhere, but if your VMs are all/mostly running Windows (and you have permission to do a WMI query against them) you can get the OS install date, … Continue reading

Rate this:

Posted in PowerShell, vSphere, Windows | Tagged , , , , , , , , , | 10 Comments

VBScript: Delete registry values that contain a backslash in the name

VBscript is great for most stuff, but occasionally you try and do something and it can’t handle it. I came across another one of these yesterday, trying to remove some old network printer connections. I ended up having to try … Continue reading

Rate this:

Posted in Scripting | Tagged , , , , , , | Leave a comment