Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

wmi accessing indexed properties

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 11-07-2006   #1 (permalink)
Thomy Kay
Guest


 

wmi accessing indexed properties

I learned a lot today about wmi support in Powershell. Anyway I didn't
manage it to do a simple thing with IIS administration.

I wanted to add a Mime mapping to IisMimeMapSetting.MimeMap property

I did

$wmi = get-WmiObject -namespace root\MicrosoftIISv2 -class
IisMimeMapSetting

But from now I don't know how to continue.

I see the members with

$wmi | get-member

$wmi.MimeMap

results in

POWERSHELL EXCEPTION
EXCEPTION TYPE:System.Management.Automation.CmdletInvocationException
MESSAGE:Exception retrieving members: "Not found "
POSITION:
--------------------------------------------------------------------------------

How can I list the collection? How can I extend the collection?

Tanks, Thomas

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing control properties Andrew .NET General 1 07-08-2008 12:52 PM
Accessing file properties via explorer shell hooks Hal Rottenberg PowerShell 3 06-02-2008 08:45 PM
Accessing File Properties Chris Harris PowerShell 0 03-04-2008 12:18 PM
Accessing Word document properties Grzegorz Niemirowski PowerShell 5 12-05-2007 09:32 PM
Accessing properties of a control in a style declaration muchinger@web.de Avalon 0 03-19-2007 09:55 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008