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

Cmdlet DLLs and PowerShell API without DLL registration

Closed Thread
 
Thread Tools Display Modes
Old 12-11-2006   #1 (permalink)
Jason Mobarak
Guest


 

Cmdlet DLLs and PowerShell API without DLL registration

Greetings --

Does the PowerShell API allow for cmdlet DLLs to be specified
programmatically at run time? I'd like to be able to script my .NET
application with PowerShell but allow my cmdlet DLLs to be loaded at
runtime by the .NET application instead of installing them system wide
with InstallUtil and Add-PsSnapIn.

The root of the problem is that I don't want the management overhead of
needing administrative access just to deploy a cmdlet DLL across a farm
of systems. So if there was a method to register the DLL with
PowerShell, without requiring administrative access, that would work
too.

Thanks,
-- Jason

Old 12-12-2006   #2 (permalink)
Krishna Vutukuri[MSFT]
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

Hi Jason,

Unfortunately PS Snapins cannot be loaded the way you want. To consume an
assembly into a PowerShell instance we need more information other than the
assembly name. Currently we depend on registry to gather this information.
Can you log in a feature request for this? We certainly do want to improve
this in our future releases.

--
Thanks
Krishna[MSFT]
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

"Jason Mobarak" <jason.mobarak@gmail.com> wrote in message
news:1165901154.982694.251170@j44g2000cwa.googlegroups.com...
> Greetings --
>
> Does the PowerShell API allow for cmdlet DLLs to be specified
> programmatically at run time? I'd like to be able to script my .NET
> application with PowerShell but allow my cmdlet DLLs to be loaded at
> runtime by the .NET application instead of installing them system wide
> with InstallUtil and Add-PsSnapIn.
>
> The root of the problem is that I don't want the management overhead of
> needing administrative access just to deploy a cmdlet DLL across a farm
> of systems. So if there was a method to register the DLL with
> PowerShell, without requiring administrative access, that would work
> too.
>
> Thanks,
> -- Jason
>



Old 12-14-2006   #3 (permalink)
Jason Mobarak
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

On Dec 12, 5:34 pm, "Krishna Vutukuri[MSFT]"
<kri...@online.microsoft.com> wrote:
> Unfortunately PS Snapins cannot be loaded the way you want. To consume an
> assembly into a PowerShell instance we need more information other than the
> assembly name. Currently we depend on registry to gather this information.


So, there's no way to give PowerShell this information other than
through installutil? I would use make-shell but I can't actually find
it in my PowerShell installation even though this page:

http://msdn2.microsoft.com/en-us/library/ms714644.aspx - "Registering
Cmdlets, Providers, and Host Applications"

....claims that:

"Now it is necessary to rebuild the shell. You can do this using a
utility called Make-Shell included with Windows PowerShell."

....but Make-Shell is nowhere to be found in my PowerShell 1.0 RTW
installation. The Make-Shell command has an option that enables it to
look for snap-in DLLs in a custom location -- so one would assume that
the ability to do this exists -somewhere- because Make-Shell claims
that it can (even though I've yet to perceive Make-Shell's existence).

> Can you log in a feature request for this? We certainly do want to improve
> this in our future releases.


How do I do this? The connect website that has been referenced on this
newsgroup no longer seems to work it claims that the site I'm trying to
access does not exist or I do not have proper permissions.

Thanks again,
-- Jason

> --
> Thanks
> Krishna[MSFT]
> Windows PowerShell Team
> Microsoft Corporation
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Jason Mobarak" <jason.moba...@gmail.com> wrote in messagenews:1165901154.982694.251170@j44g2000cwa.googlegroups.com...
>
> > Greetings --

>
> > Does the PowerShell API allow for cmdlet DLLs to be specified
> > programmatically at run time? I'd like to be able to script my .NET
> > application with PowerShell but allow my cmdlet DLLs to be loaded at
> > runtime by the .NET application instead of installing them system wide
> > with InstallUtil and Add-PsSnapIn.

>
> > The root of the problem is that I don't want the management overhead of
> > needing administrative access just to deploy a cmdlet DLL across a farm
> > of systems. So if there was a method to register the DLL with
> > PowerShell, without requiring administrative access, that would work
> > too.

>
> > Thanks,
> > -- Jason


Old 12-19-2006   #4 (permalink)
Jason Mobarak
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

Jason Mobarak wrote:
> On Dec 12, 5:34 pm, "Krishna Vutukuri[MSFT]"
> <kri...@online.microsoft.com> wrote:
>
>> Can you log in a feature request for this? We certainly do want to improve
>> this in our future releases.

>
> How do I do this?


I'm still unsure regarding how to report a feature request. If you
(Krishna Vutukuri), or anyone, knows what steps I need to take let me know.

Thanks,
Jason
Old 12-19-2006   #5 (permalink)
Keith Hill [MVP]
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

"Jason Mobarak" <jam-list@vandyke.com> wrote in message
news:OIF1%23N8IHHA.816@TK2MSFTNGP06.phx.gbl...
> Jason Mobarak wrote:
>> On Dec 12, 5:34 pm, "Krishna Vutukuri[MSFT]"
>> <kri...@online.microsoft.com> wrote:
>>
>>> Can you log in a feature request for this? We certainly do want to
>>> improve
>>> this in our future releases.

>>
>> How do I do this?

>
> I'm still unsure regarding how to report a feature request. If you
> (Krishna Vutukuri), or anyone, knows what steps I need to take let me
> know.


The link to the PowerShell feedback submission page is:

https://connect.microsoft.com/feedba...aspx?SiteID=99

You will need a .NET Passport/Windows Live ID account to access this page.

--
Keith


Old 12-19-2006   #6 (permalink)
Jason Mobarak
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

Keith Hill [MVP] wrote:
> "Jason Mobarak" <jam-list@vandyke.com> wrote in message
> news:OIF1%23N8IHHA.816@TK2MSFTNGP06.phx.gbl...
>> Jason Mobarak wrote:
>>> On Dec 12, 5:34 pm, "Krishna Vutukuri[MSFT]"
>>> <kri...@online.microsoft.com> wrote:
>>>
>>>> Can you log in a feature request for this? We certainly do want to
>>>> improve
>>>> this in our future releases.
>>> How do I do this?

>> I'm still unsure regarding how to report a feature request. If you
>> (Krishna Vutukuri), or anyone, knows what steps I need to take let me
>> know.

>
> The link to the PowerShell feedback submission page is:
>
> https://connect.microsoft.com/feedba...aspx?SiteID=99
>
> You will need a .NET Passport/Windows Live ID account to access this page.


Unless I'm missing something. Clicking that link and signing in with my
..NET passport still leaves me with:

@"
Page Not Found

The content that you requested cannot be found or you do not have
permission to view it.

If you believe you have reached this page in error, click the Contact Us
link at the bottom of the page to report the issue and include this ID
in your e-mail: <some sort of unique id>
"@

I'm attempting to go through the connect site's support stuff to see
were that leaves me.

It sucks that I was asked to log a feature request and it's turned in to
a crusade to find out how to do it.

Thanks,
-- Jason
Old 12-20-2006   #7 (permalink)
Keith Hill [MVP]
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

"Jason Mobarak" <jam-list@vandyke.com> wrote in message
news:%235plBw8IHHA.420@TK2MSFTNGP06.phx.gbl...
> Unless I'm missing something. Clicking that link and signing in with my
> .NET passport still leaves me with:
>
> @"
> Page Not Found
>
> The content that you requested cannot be found or you do not have
> permission to view it.
>
> If you believe you have reached this page in error, click the Contact Us
> link at the bottom of the page to report the issue and include this ID in
> your e-mail: <some sort of unique id>
> "@
>
> I'm attempting to go through the connect site's support stuff to see were
> that leaves me.
>
> It sucks that I was asked to log a feature request and it's turned in to a
> crusade to find out how to do it.


Yeah that does bite. I'm asking my MVP contact at Microsoft for some info
on this so sit tight. Depending on when folks are taking off for the
holidays it might take a couple of weeks to get a response but hopefully
not.

--
Keith


Old 12-22-2006   #8 (permalink)
Jason Mobarak
Guest


 

Re: Cmdlet DLLs and PowerShell API without DLL registration

Keith Hill [MVP] wrote:
> "Jason Mobarak" <jam-list@vandyke.com> wrote in message
> news:%235plBw8IHHA.420@TK2MSFTNGP06.phx.gbl...
>> Unless I'm missing something. Clicking that link and signing in with my
>> .NET passport still leaves me with:
>>
>> @"
>> Page Not Found
>>
>> The content that you requested cannot be found or you do not have
>> permission to view it.
>>
>> If you believe you have reached this page in error, click the Contact Us
>> link at the bottom of the page to report the issue and include this ID in
>> your e-mail: <some sort of unique id>
>> "@
>>
>> I'm attempting to go through the connect site's support stuff to see were
>> that leaves me.
>>
>> It sucks that I was asked to log a feature request and it's turned in to a
>> crusade to find out how to do it.

>
> Yeah that does bite. I'm asking my MVP contact at Microsoft for some info
> on this so sit tight. Depending on when folks are taking off for the
> holidays it might take a couple of weeks to get a response but hopefully
> not.


Thanks for the help Keith. The Microsoft Connect help team said the
PowerShell section of the connect website was not accepting new members
(though they said they would forward my "support request" to the
PowerShell team). Haven't heard anything past that.

-- Jason
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
get-service cmdlet in powershell v2 (ctp) RG PowerShell 3 12-14-2007 03:43 PM
What a difference PowerShell Cmdlet and PSCmelet? Alexander Vasilevsky PowerShell 2 11-04-2007 11:00 AM
Powershell and cmdlet config files Steve PowerShell 3 05-14-2007 09:23 AM
returning COM objects from PowerShell CmdLet Joris van Lier PowerShell 1 02-22-2007 05:35 AM
delete temp dlls via powershell John PowerShell 2 01-04-2007 10:24 PM








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

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 47 48 49 50