r/PowerShell • u/UnHolyDeity666 • Jul 11 '26
Solved Command Get-PhysicalDisk doesn't work on windows 11
so i tried this command: powershell "Get-PhysicalDisk | Formet-Table FriendlyName, MediaType, HealthStatus, OperationalStatus"
and i got an error saying:
>! \Formet-Table : The term 'Formet-Table' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:20
+ Get-PhysicalDisk | Formet-Table FriendlyName, MediaType, HealthStatus ...
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Formet-Table:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException !<
this is on windowss 11 on an admin CMD, any fixes?
8
u/jgwebbo Jul 11 '26
Format-Table
9
u/_alpinisto Jul 11 '26
r/shittysysadmin
No offense, I'm a pretty shitty sysadmin myself
5
u/BlackV Jul 11 '26 edited Jul 11 '26
Jeepers buddy, long day? :)
Have a look at the error, it says
If you're still unsure of the command you can try
Which will list all the matching commands
Additionally sounds like you are not using tab complete
Would cycle through all the cmdlets starting with
form, orWould cycle through all the cmdlets that contain
physicalOr if you wanted a pretty list
you can navigate with cursor keys
4
u/Overall-Thought Jul 11 '26
Format-Table, not Formet
4
u/JSChronicles Jul 11 '26 edited Jul 11 '26
I was going to write something a bit snarky to add to this but I ran out of steam and care because I think you would understand it just as much as the simplistic error that you didn't read.
I like how the post is "Get-PhysicalDisk doesn't work" but you were piping out to a different command and it seems either you didn't understand how piping works for error context or you didn't try to see if "Get-PhysicalDisk" worked by itself. Lol it literally said to check the spelling and you proceeded to make a reddit post instead of a quick a Google search.
4
u/Ecrofirt Jul 11 '26
Thank you I needed this tonightÂ
2
u/surfingoldelephant Jul 11 '26
PS v7 will even tell you the correct command via the
Generalfeedback provider (formallyPSCommandNotFoundSuggestion).You'll need to enable the
PSFeedbackProviderexperiment to see it in v7.4 or 7.5. It's stable/enabled by default in 7.6+.1
u/Barious_01 Jul 11 '26
Just so you can grow your skills here. I would take a look at this book. it is a short read. It is called the big book of powershell errors. This may help you the next time you run into this. Hope this helps.
https://leanpub.com/read/thebigbookofpowershellerrorhandling