Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - RE: Howto: Use a com object in Powershell

Reply
 
Old 12-15-2006   #1 (permalink)
fixitchris


 
 

RE: Howto: Use a com object in Powershell

did you try $vol.psobject | gm or .psbase?

"allanhh" wrote:

> I am trying to use a com object instance of the Novell volume administration
> control (nwvola.ocx) to list file details on a Netware server. I have used
> this technique successfully with vbscript and vb.net. Here's what I get:
>
> PS C:\> $vol = New-Object -comObject "NWVolAdmLib.NWVolAdmCtrl.1"
> PS C:\> $vol | Get-Member
>
> TypeName: System.__ComObject#{ebe2fdab-6c8f-11d1-a149-00401c6047e4}
>
> Name MemberType Definition
> ---- ---------- ----------
> AboutBox Method void AboutBox ()
> FindEntry Method INWEntry FindEntry (string)
> Load Method bool Load ()
> Unload Method bool Unload ()
>
> PS C:\>
>
> The problem is that only the methods are listed (there are several
> properties), and I cannot read or set the properties. This also happens with
> other Novell objects.
>


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: HowTo: Install missing hardware drivers using powershell scrip PowerShell
Powershell and .Net Object PowerShell
HowTo: Add an ActiveX control in PowerShell PowerShell
HowTo: Reset Local User Password with Powershell. PowerShell
HowTo: Monitor S.M.A.R.T data of HDD using PowerShell PowerShell


Vista Forums 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 Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46