#PSTip Converting a String to a System.DateTime object
In a perfect world all date and time data available are represented by System.DateTime objects. In the real world we are usually not that lucky.
Read MoreIn a perfect world all date and time data available are represented by System.DateTime objects. In the real world we are usually not that lucky.
Read MoreNote: This tip requires PowerShell 3.0 or above. One of the new features introduced in PowerShell 4.0 is the collection filtering by using a method syntax.
Read MoreThe big news, for the PowerShell enthusiasts, from TechEd NA 2013 was the Desired State Configuration (DSC) feature announcement. DSC can be used to streamline configuration changes in a datacenter environment and in a consistent manner.
Read MoreHow do you turn ‘20130701’ to ‘2013-07-01’? There are many ways to tackle this, breaking it into pieces (substring) and joining it back with a dash, use some regex fu to manipulate it, parse it as a DateTime and format it and so on.
Read MoreNote: This tip requires PowerShell 4.0 or above. PowerShell enables you to refer to a property of an object in a dynamic fashion:
Read MoreNote: This tip requires PowerShell 2.0 or above. The Disable-ADAccount cmdlet disables an Active Directory user, computer, or service account. When you need to disable multiple accounts you might find yourself trying something obvious like:
Read More