You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First-Time-IssueEasy issues first time contributors can work on to learn about this projectHacktoberfestPotential candidate to participate in HacktoberfestPortingResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues
PS /home/leo> Stop-Computer
Stop-Computer : The term 'Stop-Computer' 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:1
+ Stop-Computer
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Stop-Computer:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Would it be possible to either add it in, or document that it is not available?
Please include $PSVersionTable information as requested by the template next time, please. Based on your prompt, it looks like you're on Linux. The *-Computer cmdlets depend on WMI so they don't work outside of Windows currently. It would be great if the community could port them to non-Windows.
Ah, sorry; I missed that was suppose to be included. My version is
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.7
OS Linux 4.10.0-38-generic #42-Ubuntu SMP Tue O...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Is there documentation somewhere that WMI cmdlets aren't available off of Windows? If not, could that be added? I'm not really familiar with the Windows environment, and it's fairly counterintuitive as to where various cmdlets come from (since the documentation I've found online doesn't mention it).
Anyway, thanks for the info! I'll fall back to using SMB or something.
Stop-Computer only works locally if running PowerShell (7.1.1) on MacOS. There is no recognized "-ComputerName" flag. Is this intended or is it still a missing feature?
-ComputerName uses WMI/WSMan. So, yes this is intended. I think you are asking for a new feature for this to support -HostName to run this over SSH remoting?
That makes a lot of sense actually, thank you for that clarification. I wasn't originally asking for that to be a feature, but it does sound like a great idea!
First-Time-IssueEasy issues first time contributors can work on to learn about this projectHacktoberfestPotential candidate to participate in HacktoberfestPortingResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues
Activity
SteveL-MSFT commentedon Nov 15, 2017
Please include
$PSVersionTableinformation as requested by the template next time, please. Based on your prompt, it looks like you're on Linux. The *-Computer cmdlets depend on WMI so they don't work outside of Windows currently. It would be great if the community could port them to non-Windows.NoraCodes commentedon Nov 15, 2017
Ah, sorry; I missed that was suppose to be included. My version is
Is there documentation somewhere that WMI cmdlets aren't available off of Windows? If not, could that be added? I'm not really familiar with the Windows environment, and it's fairly counterintuitive as to where various cmdlets come from (since the documentation I've found online doesn't mention it).
Anyway, thanks for the info! I'll fall back to using SMB or something.
SteveL-MSFT commentedon Nov 15, 2017
Documentation is currently missing, something we'll need to add to the release notes. The best resource currently is probably this test file: https://github.com/PowerShell/PowerShell/blob/2be13a623eae2583604ab51449eefc10a8fd9c12/test/powershell/engine/Basic/DefaultCommands.Tests.ps1
shadetree-dev commentedon Mar 1, 2021
Stop-Computer only works locally if running PowerShell (7.1.1) on MacOS. There is no recognized "-ComputerName" flag. Is this intended or is it still a missing feature?
TravisEz13 commentedon Mar 2, 2021
-ComputerName uses WMI/WSMan. So, yes this is intended. I think you are asking for a new feature for this to support -HostName to run this over SSH remoting?
shadetree-dev commentedon Mar 2, 2021
That makes a lot of sense actually, thank you for that clarification. I wasn't originally asking for that to be a feature, but it does sound like a great idea!
TravisEz13 commentedon Mar 2, 2021
If that is what you want, Please file a feature request.