1

I have installed Powershell Core from Here. but in this PowerShell core Get-Counter command is not working.

Is there any way to run Get-Counter command in PowerShell Core.

1
  • 2
    Get-Counter is a Windows only command. Thus it is not in PowerShell Core but in PowerShell on your Windows machines. Commented Sep 14, 2018 at 7:30

2 Answers 2

1

If Get-Counter command is not working on Pre-Built PowerShell of windows, you can add package of your desire command from below URL:

https://www.powershellgallery.com

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

Comments

0

There is a Windows Compatibility Module for PS Core:

https://devblogs.microsoft.com/powershell/announcing-general-availability-of-the-windows-compatibility-module-1-0-0/

You can install in from PSGallery, Enable-PSRemoting, and then run Invoke-WinCommand {get-counter} from PS Core.

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.