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
Post a Comment