2

I installed Powershell in Ubuntu and when I try the

Get-Service

command, it returns an error :

Get-Service: The term 'Get-Service' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

What am I doing wrong here? Is Get-Service a windows only command ?

Powershell version is PowerShell 7.1.0

1 Answer 1

2

As written in the official MS Docs, this commandlet is only available on windows ... Meaning it's not available for macOS nor ubuntu at the moment.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.