Determine Pipeline Input
There was a recent post on the Powershell Forums titled Finding Function Name in which the user wanted to know if there was anyway to determine which cmdlet or function was being used to send input...
View ArticlePowershell Objects and .PS1XML Files
Anyone who uses powershell on a regular basis knows that the output of any powershell cmdlet is of an object type. Powershell produces objects. For example let’s look at the objects produced by two...
View ArticleQuery Security Log Using Powershell
I’ve just completed a script that will parse the Windows Security Event log for Event ID’s of type 4624 (user logons). Once the events have been retrieved the script then creates and outputs a...
View ArticleCreating Hyper-V Symbolic Links using Powershell
As an MCT I’m required to download preconfigured VM’s and supporting VHD’s from Microsoft which are then imported into base images running Server 2008 R2 and HyperV. Prior to importing the VM’s,...
View ArticleBacking Up Event Logs using Powershell
I was recently asked to create a script that would backup certain event logs ( Application & Security ) to it’s native .evt format and then clear all events from the corresponding logs once...
View ArticlePowershell: Importing Hyper-V VM’s
In my previous post Creating Hyper-V Symolic Links using Powershell I created a small but useful function called Create-SymbolicLinks which was used to execute one or more .bat files that created...
View ArticlePowershell: Adding Directories to Path Statement
Adding directories to the Path statement is a rarity for most techs these days but on occasion, such as configuring Sharpeoint 2010 to use an Adobe IFilter or my own desire to make it easier to run...
View ArticlePowershell: Retrieving AD FSMO Role Holders
I was recently asked to create a script to display the current FSMO Role holders in an Active Directory domain. There are 5 FSMO roles and the first domain controller in the forest root domain holds...
View ArticlePowershell: Create Custom MAC\IP Table
Local MAC Discovery There are times where I need to determine the MAC address of not only my PC but also the other PC’s on the local network segment. There are a few different ways to determine the...
View ArticlePowershell: Importing Items into a Sharepoint List
I was teaching a Windows Server 2003 to 2008 upgrade class onsite recently for a client and it included several Powershell examples on performing such tasks as installing a role\feature or managing AD...
View Article
More Pages to Explore .....