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 - Powershell assemblies

Reply
 
Old 10-05-2007   #1 (permalink)
VS


 
 

Powershell assemblies

Hello-

Which assembly contains the CmdLet class? How can I get this assmebly?

Thanks!
VS

My System SpecsSystem Spec
Old 10-05-2007   #2 (permalink)
Kiron


 
 

Re: Powershell assemblies

Get-PSSnapIn shows what is currently loaded in the console.

get-psSnapIn | fl name, assemblyName, moduleName

If you're looking for the SDK:
http://msdn2.microsoft.com/en-us/library/ms714469.aspx

--
Kiron
My System SpecsSystem Spec
Old 10-06-2007   #3 (permalink)
Marco Shaw [MVP]


 
 

Re: Powershell assemblies

VS wrote:
Quote:

> Hello-
>
> Which assembly contains the CmdLet class? How can I get this assmebly?
>
> Thanks!
> VS
The cmdlet class is in the System.Management.Automation assembly.

Here's a quick and dirty way to get that assembly (thanks to Lee Holmes)
from the GAC:

PSH> [psobject].assembly.location
C:\WINDOWS\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll

Quick and dirty... If you plan to do more development get the Vista SDK
to get the other PowerShell assemblies, examples, and documentation:
http://blogs.msdn.com/powershell/arc...shell-sdk.aspx

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 10-07-2007   #4 (permalink)
VS


 
 

Re: Powershell assemblies

Thanks Marco. This post was helpful. I found the location of the reference
assemblies - 'Program Files\Reference Assemblies\Microsoft' in the comments
on the blog. This should be documented on MSDN.


"Marco Shaw [MVP]" wrote:
Quote:

> VS wrote:
Quote:

> > Hello-
> >
> > Which assembly contains the CmdLet class? How can I get this assmebly?
> >
> > Thanks!
> > VS
>
> The cmdlet class is in the System.Management.Automation assembly.
>
> Here's a quick and dirty way to get that assembly (thanks to Lee Holmes)
> from the GAC:
>
> PSH> [psobject].assembly.location
> C:\WINDOWS\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll
>
> Quick and dirty... If you plan to do more development get the Vista SDK
> to get the other PowerShell assemblies, examples, and documentation:
> http://blogs.msdn.com/powershell/arc...shell-sdk.aspx
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Powershell Assemblies PowerShell
using external assemblies in Powershell scripts PowerShell
psh assemblies moved? PowerShell
Powershell and loading dependent assemblies PowerShell
How to find out which assemblies are 64bit? 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