Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-VM -Name parameter "Accept wildcard characters:" is incorrect for only Server 2012 R2 #3768

Open
3 tasks done
thegraffix opened this issue Feb 22, 2024 · 0 comments
Open
3 tasks done
Labels
issue-doc-bug Something is out of date, unclear, confusing, or broken in the article. Blocks customer success. needs-triage Waiting - Needs triage

Comments

@thegraffix
Copy link

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in Get-Foo cmdlet" instead of "Typo."
  • Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.

Links

https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vm?view=winserver2012r2-ps#-name

Summary

Server 2012 R2's Get-VM help states that -Name doesn't accept wildcard when it actually does.

Details

Server 2012 R2's Get-VM help page states that the -Name parameter doesn't accept wildcard characters, which is inaccurate. It does accept wildcard characters.
All other operating system help pages state (correctly) that -Name does accept wildcard characters.

https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vm?view=windowsserver2025-ps#-name
https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vm?view=winserver2012-ps#-name
https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vm?view=windowsserver2016-ps#-name
https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vm?view=windowsserver2019-ps#-name
https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vm?view=windowsserver2022-ps#-name

Suggested Fix

Change Server 2012 R2 Get-VM -Name parameter's Accept wildcard characters: property value from 'False' to 'True'.

@thegraffix thegraffix added issue-doc-bug Something is out of date, unclear, confusing, or broken in the article. Blocks customer success. needs-triage Waiting - Needs triage labels Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue-doc-bug Something is out of date, unclear, confusing, or broken in the article. Blocks customer success. needs-triage Waiting - Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant