# Power shell commands unable to execute

**URL:** <https://forums.powershell.org/t/power-shell-commands-unable-to-execute/23916>\
**Category:** PowerShell Help\
**Created:** [April 8, 2024, 12:54pm UTC](https://forums.powershell.org/t/power-shell-commands-unable-to-execute/23916 "2024-04-08T12:54:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibmwasuser](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/ibmwasuser/32/5306_2.png) [@ibmwasuser](https://forums.powershell.org/u/ibmwasuser)\
**Post date:** [April 8, 2024, 12:54pm UTC](https://forums.powershell.org/t/power-shell-commands-unable-to-execute/23916/1 "2024-04-08T12:54:56Z")

</div>

I’m able to retrieve the services of a remote computer by the Get-Service Command but when I execute the below any of the commands.

Get-WmiObject -ComputerName RemoteComputer -Class Win32\_Volume

Get-CimInstance -ClassName Win32\_LogicalDisk -ComputerName

It’s not giving results error is coming as below.

Get-WmiObject -ComputerName RemoteComputer -Class Win32\_Volume

Get-CimInstance -ClassName Win32\_LogicalDisk -ComputerName

Connecting to remote server Server1 fai1ed with the fo11owing error message :  
winRM cannot process the request. The fo11owing error occurred whi1e using Kerberos authentication:  
Cannot find the computer Server1. Verify that the computer exists on the network and that the  
name provided is spe11ed correct1y. For more information, see the about\_Remote\_Troub1eshooting He1p  
topic.

- CategoryInfo : OpenError: (Server1:String) , PSRemotingTransportException

- Fu11yQua1ifiedErrorId : NetworkPathNotFound,PSSessionStateBroken

I have access to the remote systems , I’m the administrator also. I’m able to map the server drives to my local account without any authentication. Can you suggest any suggestions.  
I’m looking for a disk free space of 4 servers.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [April 8, 2024, 2:25pm UTC](https://forums.powershell.org/t/power-shell-commands-unable-to-execute/23916/2 "2024-04-08T14:25:37Z")

</div>

Hey there,

Welcome! Please format your code: Formatting your code: [How to format code on PowerShell.org](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/b/bee50c628238f2c076c0504efb6b15f2fb11f002.gif)

Sometimes, funky things can happen if all the code isn’t formatted as code. If you could modify your current post that would be awesome.

You sure winrm is both configured and allows access via configured ports? Just ‘having’ access to a remote system doesn’t mean its configured. RDP is not the same as winrm. You need to troubleshoot your winrm configuration (assuming ‘server1’ is the actual name of your server).

[Installation and configuration for Windows Remote Management - Win32 apps | Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/winrm/installation-and-configuration-for-windows-remote-management)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [May 8, 2024, 2:26pm UTC](https://forums.powershell.org/t/power-shell-commands-unable-to-execute/23916/3 "2024-05-08T14:26:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
