If you are working with different cultures, this quick tip might be for you. This is a one-liner that will show all cultures that ship with .NET, including neutral and specific cultures. (more…)
Month: December 2014
Show-Calendar, cal for PowerShell
This is a PowerShell implementation of the cal command found in Unix/Linux. Its task is quite simply to output a calendar view of the choosen month(s). (more…)
Quick tip: Convert to Title Case
Most people know how to convert a string to all upper case or all lower case. In this quick tip, I’ll show you how to use ‘TextInfo’ to convert a string to Title Case. (more…)
Get-FileType
The other day I came across an excellent function written by Boe Prox, called Get-FileSignature. His function will read a file and give you the Hex and ASCII signature of the file. I thought a bit about how I could use this function and came across several sites on-line listing the file signatures of known file formats. That got me thinking! What if I could create a function that tried to determine a files type based on its file signature? (more…)
Get in the Christmas spirit with PowerShell
Get-HPHardwareInfo
If you work in an environment with HP servers, this function will help you get hardware information from the HP Insight Management WBEM providers if you have them installed. It uses CIM to query several HP specific classes in the root\hpq namespace. The following information will be returned by the function: (more…)
My ISESteroids Theme
In the last update of ISESteroids, theming support was added, and it’s now really easy to customize ISE to your liking. I thought I’d share my custom ISESteroids theme with you. It’s not a lot different than the default ISE colour scheme, but I think it’s easier on the eyes. (more…)
Get-PhysicalMemory
This is another old WMI function I have rewritten to use CIM instead. This one queries computers for memory information. (more…)
Get-Cpu
Some days ago I wrote about taking the leap and start using CIM instead of the good, old Get-WmiObject. I wrote the CIM function template as a result of some WMI functions that I decided to rewrite. Today I give you the first of them; Get-Cpu. (more…)
CIM – Taking the leap
If you use PowerShell regularly, chances are that you have used WMI. Microsoft introduced a new set of cmdlets in PowerShell version 3, the CIM cmdlets, which is meant as the new and improved way of interacting with WMI/CIM. (more…)