Monthly Archives: July 2009

PowerShell in Practice Ch14&15

The latest MEAP for PowerShell in Practice adds chapters 14 and 15 to the set. The book is essentially complete now – with just the appendix and the stuff at the front to do It can be obtained from http://www.manning.com/siddawayContinue reading

Posted in Powershell | Leave a comment

Its a wrap

When we run a cmdlet such as Get-EventLog we often find that the display is truncated PS> Get-EventLog -LogName Application | select -First 5   Index Time          EntryType   Source                 InstanceID Message   —– —-          ———   ——                 ———- ——-   12961 Jul 31 … Continue reading

Posted in Powershell | Leave a comment

Services and Processes

Services and processes seem to be a constant source of topics for PowerShell.  Probably because they are so fundamental to Windows. I wanted to see the relationship between a service and its underlying process. 001002003004005006007008009010011012013014015016017018019020021022023024025026027028029030031032033034035036037038039040041042043044045046 ##Requires -version 2.0## create empty … Continue reading

Posted in PowerShell V2 | Leave a comment

User Group Live Meetings

I’ll be doing a couple of Live Meeting webcasts over the next few weeks: PowerShell remoting – including Exchange 2010 WMI in PowerShell v2 More info when the dates are finalised. If there is a particular topic that you would … Continue reading

Posted in PowerShell User Group | Leave a comment

Tombstone Periods

We can get the tombstone period of our Active Directory by 001002003 $root = [ADSI]"" $ds = [ADSI]("LDAP://CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration," + $root.DistinguishedName)$ds.tombstoneLifeTime   But if the value isn’t set it means we are using the default which changes depending on the version of Windows used to create … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

PowerShell 2.0 ETA

In case you wanted more info on when we can see PowerShell v2 available as a download for XP2003Vista2008  – see  http://blogs.msdn.com/powershell/archive/2009/07/23/windows-powershell-2-0-rtm.aspx The post says a few months before we can get it.  Why the delay? Best guess is that … Continue reading

Posted in PowerShell V2 | Leave a comment

July User Group slides and demo

I’ve put the slides and demo file on my Sky Drive http://cid-43cfa46a74cf3e96.skydrive.live.com/browse.aspx/PowerShell%20User%20Group and download the July_2009 zip file Enjoy Technorati Tags: PowerShell User Group,Downloads

Posted in PowerShell User Group | Leave a comment

Today’s the day the gremlins have their picnic

So the story so far. Our intrepid presenter is sent to the wilds of Northern England and must deliver the Live Meeting to the PowerShell UG from his hotle room.  No problem. First problem is that the network in the … Continue reading

Posted in PowerShell User Group | Leave a comment

Good news

There’s good news – Windows 7 and Windows 2008 R2 went RTM yesterday.  Look for downloads early next month for TechNetMSDN subscribers. General availability is 22 October. But there’s more Windows 7 and Windows 2008 R2 contain PowerShell v2 – … Continue reading

Posted in PowerShell V2 | Leave a comment

Excel 2010 PowerShell I

This now works for a non-US locale. 001002003004 $xl = New-Object -ComObject "Excel.Application"$xl.visible = $true$wb = $xl.workbooks$wb.Add()   Well to be strictly correct it works in a UK locale and I’m assuming it works for other non-US locales.  As previous versions of Excel threw a wobbly and we … Continue reading

Posted in Powershell | Leave a comment