How to check status account Administrator Local

Trần Ngọc Nam 35 Reputation points
2023-04-10T06:23:02.7233333+00:00

Hi everyone, Now, I want check status account Administrator Local on all of computers in my domain, but I can't do it. I tried use script on PowerShell, configure rule on firewall (even turn off firewall), but port of WinRM isn't listenning to execute my script. Can you give me some other solution or way to enable port of winRM? Thank you

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,693 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-04-11T02:10:07.6733333+00:00

    Hi, You can run Enable-PSRemoting to configure WinRM. It will create a listener on the WinRM port 5985 for HTTP and add a firewall exception automatically.

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting

    Best Regards, Ian Xue If the Answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.