Why does Get-PhysicalDisk fail when I format its output in Windows 11?

0
0
Asked By MellowCedar42 On

I'm running this from an elevated Command Prompt on Windows 11: powershell "Get-PhysicalDisk | Formet-Table FriendlyName, MediaType, HealthStatus, OperationalStatus". Instead of showing the disk information, PowerShell says that "Formet-Table" is not recognized as a cmdlet or program. Is there a fix?

3 Answers

Answered By QuietRook31 On

Newer PowerShell versions may suggest the closest matching command when a name is misspelled, but that feature depends on the version and settings. In this case, correcting `Formet-Table` to `Format-Table` is all that’s needed.

Answered By NorthstarMango5 On

The error is pointing directly at the misspelled command. You can also check whether the disk cmdlet itself works by running `Get-PhysicalDisk` separately. For discovering commands, try `Get-Command *physical*` or use Tab completion, such as typing `For` and pressing Tab.

Answered By PixelHarbor7 On

It’s just a typo: the cmdlet is `Format-Table`, not `Formet-Table`. Try: `powershell "Get-PhysicalDisk | Format-Table FriendlyName, MediaType, HealthStatus, OperationalStatus"`.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.