Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

I want a custom New-ADComputer but what do I call it? (Namespacing question)

$
0
0

I thought about prefixing all my cmdlets that override originals with “My” or the company initials but… I… don’t… like that.

PS> MyNew-ADComputer PS> ABCNew-ADComputer 

Though I haven’t tried it yet, I saw on StackOverflow that you can use the module’s name to namespace cmdlets but that could get tedious.

PS> CompanyFunctionsNew-ADComputer 

Are any of these “best practice” or is there a better way?

submitted by /u/myworkaccount999
[link] [comments]

The post I want a custom New-ADComputer but what do I call it? (Namespacing question) appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles