powershell - Get-Service unable to open service control manager -


i have function checks status of particular service on remote machine. when try service status using get-service -computername remoteserver, following error.

get-service : cannot open service control manager on computer 'remoteserver'. operation might require other privileges.

this error happens in 1 or 2 servers, when use get-wmiobject -class win32_service -computername remoteserver service information.

could please identifying problem in here? having administrator privileges on remote machine , running script powershell ise administrator.

on investigation, found port 445 in not_listening state. issue caused disabled server service. issue resolved after enabling , starting service.

following link useful in resolving issue

thank looking error , suggesting edits on question. first question in stack overflow , loving experience.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -