header image

Archive for July, 2008

Sorting a hash table

Posted by: | July 19, 2008 | No Comment |

There is a really good PowerShell script for working with indexed files – scans or photos and renumbering to cope with missing numbers available from http://www.tellingmachine.com/post/2008/07/Renaming-a-series-of-indexed-files-with-Powershell.aspx One point at the end of the post is about sorting hash tables.  This is not intuitive as piping the hash table into sort does not work.  You need […]

under: PowerShell original

UK User group meeting

Posted by: | July 18, 2008 | No Comment |

There will be a Live Meeting hosted by the UK PowerShell User group on 29 July. Marco Shaw, PowerShell MVP, will be talking about /n software NetCmdlets Webcast will be 1 hour starting at 7pm UK time (GMT+1) If you are not a member of the user group leave me a comment with contact  details […]

under: PowerShell User Group

PowerShell labcast

Posted by: | July 17, 2008 | No Comment |

There is a PowerShell labcast available from https://www.microsoft.com/resources/virtuallabs/step1-technet.aspx?LabId=f7c0553e-78ee-4514-a9aa-097b673be3a7 Some one who tried it reports: "It has a few quirks – on one occasion the voice-over disappears for a few minutes. If you leave the labcast and return to it later, your VM (and your work) is gone, so best done in a single session – […]

under: PowerShell original


Posted by: | July 15, 2008 | No Comment |

Having shown how a new WMI object can be created using Invoke-WmiMethod we need to consider how to remove a WMI Object.  CTP 2 supplies a Remove-WMIObject cmdlet.  This takes a WMI path to identify the individual object or you can use Get-WMIObject to identify object and pipe the result to Remove-WMIObject Get-WmiObject -Class Win32_process […]

under: PowerShell and WMI


Posted by: | July 15, 2008 | No Comment |

In this post http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!1525.entry I showed how to use the [WMIClass] accelerator to create a new WMI Object – in this case a process running notepad. CTP2 streamlines the process to a degree in that the Invoke-WmiMethod can do it all in one line Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList "notepad.exe" Straight forward single cmdlet […]

under: PowerShell and WMI

Michiel Wories provides a look at some of the thinking behind PowerShell in SQL Server and future plans  – http://blogs.msdn.com/mwories/archive/2008/06/25/what-no-cmdlets-sql-server-powershell.aspx   Share this post :   Technorati Tags: PowerShell,SQL Server

under: PowerShell and SQL Server

And now Hamlet

Posted by: | July 14, 2008 | No Comment |

Dmitry has risen to the challenge with a PowerShell version of Hamlet – http://dmitrysotnikov.wordpress.com/2008/07/14/powershell-hamlet/   Share this post :   Technorati Tags: PowerShell

under: PowerShell original

Macbeth in PowerShell

Posted by: | July 12, 2008 | No Comment |

Just read this http://blogs.technet.com/jamesone/archive/2008/07/12/you-know-you-have-been-doing-too-much-powershell-when-you-translate-macbeth.aspx Watch this space   Share this post :   Technorati Tags: PowerShell

under: PowerShell original

The IIS Team have announce a Live Meeting to discuss IIS 7 PowerShell provider CTP2 Details from http://forums.iis.net/t/1150349.aspx   Share this post :   Technorati Tags: PowerShell,IIS 7

under: PowerShell original


Posted by: | July 11, 2008 | No Comment |

There is one last WMI accelerator to look at – [WMI] – which is an accelerator for System.Management.ManagementObject.  This is the same object type that Get-WMIObject returns. [WMI] gets an object representing an existing WMI object If we start with Get-WmiObject $w1 = Get-WmiObject -Class Win32_Process -Filter "Name = ‘notepad.exe’"$w1 | get-member If we try […]

under: PowerShell and WMI

« Newer Posts - Older Posts »