header image

Archive for September, 2008

TechEd ATE

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

No this isn’t a TechEd ate my hamster post!!! I will be on the Ask the Experts (ATE) stand at IT Pro TechEd EMEA in Barcelona. If you have PowerShell questions or even if you just want to say hi and have a chat – stop by   Share this post :   Technorati Tags: […]

under: PowerShell original

PowerShell Accelerators

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

PowerShell has a number of well known accelerators such as [adsi] and [wmi] that are in effect short cuts to creating .NET objects.  One problem with working with .NET in PowerShell is that the class names can get quite long eg System.DirectoryServices.ActiveDirectory.Domain.  This can get to be painful if you type it a lot.!! MoW […]

under: PowerShell original

Sweden II

Posted by: | September 16, 2008 | No Comment |

The sessions this morning seemed to go really well – got some good feed back and good questions.  Nearly every one who registered turned up which is really excellent.  100+ people attending the event seemed pretty good to me. The Scandinavian User group launched with its first meeting this afternoon.  From the discussions I heard […]

under: PowerShell User Group

IIS PowerShell examples

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

I havre mentioned the PowerShell provider for IIS 7 several times over the alst few months.  One thing I had missed and should have picked up earlier is a post  http://blogs.iis.net/jeonghwan/archive/2008/07/30/iis-powershell-user-guide-comparing-representative-iis-ui-tasks.aspx showing many examples of using the PowerShell provider and the cmdlets.   If you are using PowerShell and IIS you need to look at this […]

under: PowerShell original

Sweden

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

Arrived in Sweden – flight wasn’t too bad which is saying a lot for me – I do not like flying!!!   Looking forward to the first meeting of  Scandanavian PowerShell Group.   This is third group I’ve been at the first meeting and the 4th group I’ve seen start.  This is getting to be a […]

under: PowerShell User Group

The idiots are back

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

I tried re-enabling comments but the idiots returned and plastered yet more comments. Comments are permanently blocked.  It you wish to comment please send me a message or email   Share this post :   Technorati Tags: Rant

under: Rant

W2KSG: WMI Logical Disks

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

Listing 6.5 in the Scripting Guide returns to the Win32_Logical Disk class. Get-WmiObject -Class Win32_LogicalDisk | Select DeviceID All we need to do to display the drive letters is select the deviceid.  if you want to see the full information leave off the select.   Share this post :   Technorati Tags: PowerShell,WMI Logicaldisk

under: PowerShell and WMI

W2KSG: WMI Services

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

WMI gives us insight into most aspects of our system’s operation.  Windows machines have lots of services installed. We can see the services very simply Listing 6.3 Get-WmiObject -Class Win32_Service | Select DisplayName, State, StartMode The results will be returned in a nicely formatted table – one of the great strengths of PowerShell is that […]

under: PowerShell and WMI

ADSI – Put and attributes

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

A question came up about working with Active Directory objects regarding the difference between $object.attribute = "value" and $object.Put("attribute", "value") They both perform the same function in that the attribute is assigned a value. The question was whats the difference and which should you use. The question also noted that when creating objects they behave […]

under: PowerShell and Active Directory

Following on from the last post – the other thing we may be interested in is virtual memory.  Listing 6.2 gives us this Get-WmiObject -Class Win32_OperatingSystem | Select TotalVirtualMemorySize   Share this post :   Technorati Tags: PowerShell,WMI,Virtual memory

under: PowerShell and WMI

« Newer Posts - Older Posts »

Categories