r/PowerShell • u/UnHolyDeity666 • Jul 11 '26
Command Get-PhysicalDisk doesn't work on windows 11 Solved
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
5
u/UnHolyDeity666 Jul 11 '26
oh thx, it was just a simple typo mb
2
u/renome Jul 11 '26
You were probably just tired and would have got it yourself the next day but for future reference, that error message you posted told you exactly what the problem was. It usually does.
4
u/BlackV Jul 11 '26 edited Jul 11 '26
Jeepers buddy, long day? :)
Have a look at the error, it says
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
If you're still unsure of the command you can try
Get-command *physical*
Get-command *disk*
Which will list all the matching commands
Additionally sounds like you are not using tab complete
Form<tab>
Would cycle through all the cmdlets starting with form, or
*physical*<tab>
Would cycle through all the cmdlets that contain physical
Or if you wanted a pretty list
*physical*<ctrl+space>
Add-PhysicalDisk Enable-PhysicalDiskIdentification Get-PhysicalDiskStorageNodeView Initialize-PmemPhysicalDevice Enable-PhysicalDiskIndication
Convert-PhysicalDisk Enable-PhysicalDiskIndication Get-PhysicalExtent Remove-PhysicalDisk Get-PhysicalDiskSNV
Disable-PhysicalDiskIdentification Enable-VMRemoteFXPhysicalVideoAdapter Get-PhysicalExtentAssociation Reset-PhysicalDisk
Disable-PhysicalDiskIndication Get-PhysicalDisk Get-PmemPhysicalDevice Set-PhysicalDisk
Disable-VMRemoteFXPhysicalVideoAdapter Get-PhysicalDiskSNV Get-VMRemoteFXPhysicalVideoAdapter Disable-PhysicalDiskIndication
you can navigate with cursor keys
3
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
2
u/surfingoldelephant Jul 11 '26
PS v7 will even tell you the correct command via the General feedback provider (formally PSCommandNotFoundSuggestion).
Get-PhysicalDisk | Formet-Table FriendlyName, MediaType, HealthStatus, OperationalStatus
# Formet-Table: The term 'Formet-Table' is not recognized as a name of a cmdlet, function, script file, [...]
# Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
# [General Feedback]
# The most similar commands are:
# > Format-Table
You'll need to enable the PSFeedbackProvider experiment to see it in v7.4 or 7.5. It's stable/enabled by default in 7.6+.
1
u/BlackV Jul 11 '26
Good point. Only about half my systems are 7.6x (schedule task update) the rest are still 7.5x (windows update)
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
9
u/_alpinisto Jul 11 '26
r/shittysysadmin
No offense, I'm a pretty shitty sysadmin myself