What are minimum user permission for get-dhcpserverv4scope?

Rajat Singhal 20 Reputation points
2023-05-25T18:56:14.2566667+00:00

Hello Team,

I would like to monitor DHCP Server scoped and i have a non-admin AD account. What are roles/permissions are required to allow user to run DHCP powershell cmdlets (get-dhcpserverv4scope). This user will not change anything on system. It will just monitor DHCP scopes on DHCP.

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Konstantinos Passadis 19,591 Reputation points MVP
    2023-05-25T19:27:53.24+00:00

    Hello @Rajat Singhal !

    As i can see you dont need RSAT on the Remote machine you are using to control the Server

    But you nee to verify that the Server is configured to accept WinRM connections.

    1. Run PowerShell as an Administrator.
    2. Enable PowerShell Remoting using Enable-PSRemoting -Force.
    3. Configure the WinRM service to start automatically using Set-Service WinRM -StartMode Automatic.
    4. Allow the server to accept connections from any IP address using Set-Item WSMan:\localhost\Client\TrustedHosts *.

    Just replace * in the last command with the specific IP addresses you want to allow if you don't want to accept connections from any IP address !

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,591 Reputation points MVP
    2023-05-25T19:00:03.92+00:00

    Hello @Anonymous !

    Welcome to Microsoft QnA!

    The role you'll need to assign to the account for read-only monitoring of DHCP Server using PowerShell cmdlets is called DHCP Users. This role has the necessary permissions to view and monitor DHCP server settings without the ability to make changes.

    If this user needs to remotely execute these cmdlets from their workstation, it might be necessary to have RSAT (Remote Server Administration Tools) installed on the user's machine

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


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.