PowerShell-Docs icon indicating copy to clipboard operation
PowerShell-Docs copied to clipboard

Reference assemblies are needed for above example

Open moerwald opened this issue 6 years ago • 1 comments

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.

moerwald avatar Apr 24 '19 08:04 moerwald

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)

RansomVO avatar Jul 16 '19 19:07 RansomVO