Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

December 2007 - Posts

Powershell with Jeffrey Snover by James One (IT Forum 2007)

James One posted his interview with Jeffrey Snover at IT-Forum 2007 onto the edge site : Powershell with Jeffrey Snover (IT Forum 2007) I caught up with Jeffrey Snover at Tech-ed IT forum in Barcelona. Some of the things we covered were the Powershell
Posted by MoW | 0 Comments
Filed under: , ,

Processing XML with PowerShell

Dan Sullivan did an in depth and interesting article about : Processing XML with PowerShell for reference I wanted to add some simple examples using more interactive powershell functionality to do this in this post, ending with creating a simple 2 line
Posted by MoW | 0 Comments
Filed under: ,

Videos from 2nd Powershell virtual user meeting are online.

Marco Shaw did put the Videos from 2nd Powershell virtual user meeting online. You can found the details from this meeting HERE , as I missed this live meeting I was eagerly waiting for this ;-) http://marcoshaw.blogspot.com/2007/12/windows-powershell-virtual-user-group-2.html
Posted by MoW | 0 Comments
Filed under: ,

more PowerShell projects on CodePlex

Also CodePlex is keeping active, this Month again 2 interesting projects added : Windows Automation Snapin for PowerShell by Joel 'Jaykul' Bennett (a #powershell regular and also check out his blog and other CodePlex project PoSHConsole ) PowerShell Debug
Posted by MoW | 2 Comments
Filed under: ,

Writing Custom Cmdlets for Windows PowerShell, and Hosting PowerShell

A great Primer to get you started with writing PowerShell Cmdlets : Writing Custom Cmdlets for Windows PowerShell , as step by step walktrough for creating a Get-Contact Cmdlet to retrieve contacts in outlook from PowerShell the Introduction from the
Posted by MoW | 0 Comments

A PoSHy New Year part 1

Hope you all had a good X-mas let's count down to the new Year ( *edit* fixed the script I forgot the $r = new-object Random line , thanks to cert for noticing in the comments and to agoodb for providing the fix there ) : # NewYear1.ps1 # PoSHy New Year
Posted by MoW | 3 Comments
Filed under: , ,

PowerShell get-Worldtime function

As we are running for a new year again,Some more timeZone fun, I did a WMI example here : Hey PowerShell Guy!, How Can I Retrieve Time Zone Information for a Computer? , now I show an example that shows the given date in all timezones with information
Posted by MoW | 2 Comments

PowerShell Gift Guide and Toolbox

Scripting guys on vacation ?, they strill throw X-mas lists around ;) Windows PowerShell Gift Guide Windows PowerShell Toolbox * Update * and not to forget an Interview with Lee Holmes ! Enjoy, Greetings /\/\o\/\/
Posted by MoW | 0 Comments

A PoSHy X-mas part two

And in this second part, let there be balls .. # Merry X-mas from PoSH part 2 # http://thePowerShellGuy.com Function Merry-Xmas { 1 .. 2 |% { $Peek = " ^ " $tree = " /|\" $i = 20 $pos = $host .ui.rawui.CursorPosition write-host - fore ' Red ' ( $peek
Posted by MoW | 1 Comments
Filed under: , ,

A PoSHy X-mas part one

First we need a PoSHy tree : $Peek = " ^ " $tree = "/|\" $i = 20 . { write-host -fore 'green' ($peek.PadLeft($i -1).PadRight(36) * 2) write-host -fore 'green' ($tree.PadLeft($i -1).PadRight(36) * 2) 1..16 |% { $tree = $tree -replace "/(.*)\\",'//$1\\'
Posted by MoW | 0 Comments
Filed under: ,

Hey PowerShell Guy!,How Can I Map Drives Based on Membership in an Active Directory Group and a CSV file.

In this translation of a Hey Scripting guy article to PowerShell based on : How Can I Map Drives Based on Membership in an Active Directory Group When the User Belongs to Multiple Groups? I tuned the example a bit as I did not like the configuration of
Posted by MoW | 4 Comments

Hey PowerShell Guy!, How Can I Retrieve Time Zone Information for a Computer?

As you can see in former posts also I picked up my Hey PowerShell guy series again, I did stop when the ScriptCenter started to provide PowerShell examples also see : Hey, PowerShell Guy ! How Can I .. Sorry forget about it I allready Know . But this
Posted by MoW | 3 Comments
Filed under: ,

Hey, PowerShell Guy!, How do you know it's Morning or evening ?

I Paste the following into the Consolewindow : switch (get-date -Format tt) { 'AM' {'It is morning time.'} 'PM' {'It is afternoon/evening time.'} } A variation on the Hey Scripting Guy article : How Can I Tell If a Time Occurred in the Morning or the
Posted by MoW | 2 Comments
Filed under: ,

Hey PowerShell Guy!, How Can I Delete Files That Are a Specified Number of Hours Old?

And another translation of a Hey Scripting Guy Article : How Can I Delete Files That Are a Specified Number of Hours Old? dir |? {$_.CreationTime -lt (get-date).AddHours(-8)} | del -whatif or for files not written in the last 8 hours : dir |? {$_.LastWriteTime
Posted by MoW | 2 Comments
Filed under: ,

Hey PowerShell Guy !, How Can I Remove Duplicate Values From a Pair of Text Files?

Again a Hey Scripting Guy ! translation about replacements in Text files : How Can I Remove Duplicate Values From a Pair of Text Files? To replace the 35 lines Vbscript solution with 3 loops given in the original article, the following PowerShell commands
Posted by MoW | 2 Comments
Filed under: ,

Hey PowerShell Guy !, How Can I Replace Text That Includes Double Quote Marks and a Tab Character?

Some time ago but a new Hey Scripting Guy ! translation to PowerShell How can I replace text that includes double quote marks and a tab character ? the example given in this article is : Speaking of which, let’s talk scripting for awhile. As we understand
Posted by MoW | 2 Comments
Filed under: , ,