PowerShell - Shorten namespace names so it's easier to access types

Posted by Adam Driscoll on Stack Overflow See other posts from Stack Overflow or by Adam Driscoll
Published on 2010-05-26T16:45:35Z Indexed on 2010/05/26 20:21 UTC
Read the original article Hit count: 495

Filed under:
|

Is there a method of shortening PowerShell namespace references?

Typing [RootNameSpace1.NameSpace2.Namepsace3+SomeEnum]::SomeValue is taxing and not a very good user expierence. I realize that you can reference System level objects without a namespace such that [Type]::GetType(... will work. Is there some manifest I could create or command I could use to shorten lengthy namespaces?

© Stack Overflow or respective owner

Related posts about powershell

Related posts about namespaces