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 Tutorial - Where can I find System.management.automation.resources.dll

Reply
 
Old 09-05-2007   #1 (permalink)
Joe G
Guest


 
 

Where can I find System.management.automation.resources.dll

The System.management.automation.resources.dll didn't come with the download.

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


 
 

Re: Where can I find System.management.automation.resources.dll

get-childItem $env:windir
System.management.automation.resources.dll -recurse

Directory: Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\assembly\GAC_MS
IL\System.Management.Automation.resources\1.0.0.0_en_31bf3856ad364e35

--
Kiron

My System SpecsSystem Spec
Old 09-05-2007   #3 (permalink)
Jon
Guest


 
 

Re: Where can I find System.management.automation.resources.dll

"Joe G" <Joe G@xxxxxx> wrote in message
news:1D1261C5-F27D-44C1-9AD7-840EFABFDB73@xxxxxx
Quote:

> The System.management.automation.resources.dll didn't come with the
> download.

I've got 2 copies on this machine, both of which were installed with the
PowerShell download

C:\Windows\assembly\GAC_MSIL\System.Management.Automation.Resources\1.0.0.0_en_31bf3856ad364e35\System.Management.Automation.Resources.dll

C:\Windows\winsxs\msil_system.management.automation.resources_31bf3856ad364e35_6.0.6000.16386_en-us_8ea69ba228f687a2\System.Management.Automation.Resources.dll

--
Jon

My System SpecsSystem Spec
Old 09-05-2007   #4 (permalink)
Joe G
Guest


 
 

Re: Where can I find System.management.automation.resources.dll

Thanks for the fast response. I used your suggestion and it kind of found
file, though using the explorer I don't see the GAC_MSIL folder under that of
the assembly. What I'm trying to do is reference this in my visual studio C#
project but browsing for the resource doesn't work and I don't really
understand the assembly folder in the first place, having no experience in
using same.

"Kiron" wrote:
Quote:

> get-childItem $env:windir
> System.management.automation.resources.dll -recurse
>
> Directory: Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\assembly\GAC_MS
> IL\System.Management.Automation.resources\1.0.0.0_en_31bf3856ad364e35
>
> --
> Kiron
>
>
My System SpecsSystem Spec
Old 09-05-2007   #5 (permalink)
Kiron
Guest


 
 

Re: Where can I find System.management.automation.resources.dll

You can open its folder:

get-childItem $env:windir
System.management.automation.resources.dll -recurse | foreach
{$_.fullname -replace $_.name} | invoke-item

...or copy the assembly:

$dll = @(get-childItem $env:windir
System.management.automation.resources.dll -recurse)
copy-item $dll[0].fullName <destination>

--
Kiron

My System SpecsSystem Spec
Old 09-06-2007   #6 (permalink)
Joe G
Guest


 
 

Re: Where can I find System.management.automation.resources.dll

Maybe you could explain why when I use the windows explorer to look at the
windows assembly folder all i see are the assembly names entities but not the
folders (i.e. GAC_MSIL) which are all I see when I use a command window?

"Jon" wrote:
Quote:

> "Joe G" <Joe G@xxxxxx> wrote in message
> news:1D1261C5-F27D-44C1-9AD7-840EFABFDB73@xxxxxx
Quote:

> > The System.management.automation.resources.dll didn't come with the
> > download.
>
>
> I've got 2 copies on this machine, both of which were installed with the
> PowerShell download
>
> C:\Windows\assembly\GAC_MSIL\System.Management.Automation.Resources\1.0.0.0_en_31bf3856ad364e35\System.Management.Automation.Resources.dll
>
> C:\Windows\winsxs\msil_system.management.automation.resources_31bf3856ad364e35_6.0.6000.16386_en-us_8ea69ba228f687a2\System.Management.Automation.Resources.dll
>
> --
> Jon
>
>
My System SpecsSystem Spec
Old 09-06-2007   #7 (permalink)
Kiron
Guest


 
 

Re: Where can I find System.management.automation.resources.dll

"...reference information about the APIs provided by Windows PowerShell"
Take a look at Windows PowerShell SDK, I believe that's what you're looking
for:

Windows PowerShell SDK
http://msdn2.microsoft.com/en-us/library/ms714469.aspx

At the bottom of the page is the download link.

--
Kiron

My System SpecsSystem Spec
Old 09-06-2007   #8 (permalink)
Jon
Guest


 
 

Re: Where can I find System.management.automation.resources.dll


"Joe G" <JoeG@xxxxxx> wrote in message
news:A8CC1928-BC28-454F-95F9-269CBE472758@xxxxxx
Quote:

> Maybe you could explain why when I use the windows explorer to look at the
> windows assembly folder all i see are the assembly names entities but not
> the
> folders (i.e. GAC_MSIL) which are all I see when I use a command window?
>


Sure. It's due to the 'desktop.ini' file within the assembly folder, which
affects the way explorer.exe presents it to you. Delete that file and you'd
get the standard view. You may wish to make a copy of it first as a backup,
if you try that.

#To see the contents of the file
get-content -force "C:\Windows\assembly\desktop.ini"

NB You'd need to run the above command from an elevated command prompt, if
you're using Vista

--
Jon


My System SpecsSystem Spec
Old 09-06-2007   #9 (permalink)
Jon
Guest


 
 

Re: Where can I find System.management.automation.resources.dll


"Jon" <Email_Address@xxxxxx> wrote in message
news:exj%23$cK8HHA.600@xxxxxx

Quote:

> #To see the contents of the file
> get-content -force "C:\Windows\assembly\desktop.ini"
>
> NB You'd need to run the above command from an elevated command prompt, if
> you're using Vista
>

Ok, my bad. The following should work elevated or non-elevated

get-content "C:\Windows\assembly\desktop.ini"

--
Jon


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
System.Management.Automation.dll missing PowerShell
RC2 - where has System.Management.Automation.dll gone? PowerShell
Re: System.Management.Automation.dll missing? PowerShell
-is [System.Management.Automation.PSCustomObject] PowerShell
referencing system.management.automation DLL (or other Gac'd ones) 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