MicrosoftDocs / PowerShell-Docs

The official PowerShell documentation sources
https://learn.microsoft.com/powershell
Other
1.99k stars 1.58k forks source link

Reference assemblies are needed for above example #4210

Open moerwald opened 5 years ago

moerwald commented 5 years ago

Enhancement: Mention that the user will need the "Microsoft.PowerShell.5.ReferenceAssemblies" NuGet package, to retrieve "System.Management.Automation"


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

RansomVO commented 5 years ago

Do this: 1) Right-click on References and select "Add Reference..." 2) On the bottom, click the "Browse..." button. 3) Navigate to "C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\3.0" 4) Select System.Management.Automation.dll and hit the "Add" button. (Refer to https://docs.microsoft.com/en-us/powershell/scripting/developer/installing-the-windows-powershell-sdk)