PowerShell-Docs
PowerShell-Docs copied to clipboard
Reference assemblies are needed for above example
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.
- ID: ba54a8a2-201d-e028-8d96-75494779fef3
- Version Independent ID: aedf2455-91de-433f-4680-a1da3cb0088b
- Content: How to Write a Simple Cmdlet
- Content Source: developer/cmdlet/how-to-write-a-simple-cmdlet.md
- Product: powershell
- Technology: powershell-developer
- GitHub Login: @joeyaiello
- Microsoft Alias: jaiello
Do this:
- Right-click on References and select "Add Reference..."
- On the bottom, click the "Browse..." button.
- Navigate to "C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\3.0"
- 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)