Tag Archives: quickhits

Quick Hits: List All Available WMI Namespaces Using PowerShell

Sometimes it is worth knowing what the available namespaces are in WMI, especially if you are looking for a specific class and are not sure where it might be (sometimes it just isn’t under Root\Cimv2). Another reason is just for … Continue reading

Posted in powershell | Tagged , , , , | 2 Comments

Quick Hits: Finding, Creating and Removing PowerShell Type Accelerators

I saw a question recently that somebody asked on how to locate and create custom type accelerators without the need of the PowerShell Community Extensions (PSCX) and its type accelerator, [accelerator]. I quickly answered his question, but decided that this … Continue reading

Posted in powershell, Tips | Tagged , , , , | 3 Comments

Quick Hits: Set the Default Property Display in PowerShell on Custom Objects

Whenever we write a function or a  script and choose what properties to display, we are usually greeted with the usual display of every single property that we used instead of what the the PowerShell cmdlets and other module cmdlets … Continue reading

Posted in powershell, Tips | Tagged , , , , | 11 Comments

Quick Hits: Determine Tombstone Lifetime in Active Directory

Recently, I wanted to know what the tombstone lifetime was in my environment and decided to find this using PowerShell. Given, I could have done something with dsquery or dug in using the ADSI type accelerator to connect to my … Continue reading

Posted in powershell, Tips | Tagged , , , | 3 Comments

Quick Hits: Speed Up Some of your Commands by Avoiding the Pipeline

Sometimes running a command using the pipeline can take a while depending on the amount of data that is being processed. For the easiest example, I will make use of Get-Random to demonstrate the differences in speed and how much … Continue reading

Posted in powershell | Tagged , , , , | 1 Comment