Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

get-counter -ComputerName localhost returns error #15165

Copy link
Copy link
@krishnayalavarthi

Description

@krishnayalavarthi
Issue body actions

Steps to reproduce

PS C:\Users> get-counter -ComputerName localhost

Expected behavior

It should show the counters on local machine as this.
PS C:\Users> get-counter -ComputerName localhost

Timestamp                 CounterSamples
---------                 --------------
4/5/2021 10:40:56 PM      \\machine-name\network interface(intel[r] ethernet connection [2] i219-lm)\bytes total/sec :
                          40043.808440110326

                          \\machine-name\network interface(teredo tunneling pseudo-interface)\bytes total/sec :
                          0

                          \\machine-name\processor(_total)\% processor time :
                          3.4426578082911163

                          \\machine-name\memory\% committed bytes in use :
                          84.483113508784

                          \\machine-name\memory\cache faults/sec :
                          201.8730016946339

                          \\machine-name\physicaldisk(_total)\% disk time :
                          0.12240490075025934

                          \\machine-name\physicaldisk(_total)\current disk queue length :
                          0



PS C:\Users>

Actual behavior

PS C:\Users> get-counter -ComputerName localhost
Get-Counter: The default values for this command failed. Error: 800007d0.
Get-Counter: Unable to connect to the specified computer or the computer is offline.
Get-Counter: The default values for this command failed. Error: 800007d0.
Get-Counter: Unable to connect to the specified computer or the computer is offline.
Get-Counter: The default values for this command failed. Error: 800007d0.
Get-Counter: Unable to connect to the specified computer or the computer is offline.
Get-Counter: The default values for this command failed. Error: 800007d0.
Get-Counter: Unable to connect to the specified computer or the computer is offline.
Get-Counter: The default values for this command failed. Error: 800007d0.
Get-Counter: Unable to connect to the specified computer or the computer is offline.
Get-Counter: The default values for this command failed. Error: 800007d0.
Get-Counter: Unable to connect to the specified computer or the computer is offline.
PS C:\Users>

Environment data


PS C:\Users> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

PS C:\Users>
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-ExternalThe issue is caused by external component(s).The issue is caused by external component(s).WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.