Solved

Emport Import DHCP allow deny filter Mac Addresses

Posted on 2014-04-04
3
1,814 Views
Last Modified: 2014-06-15
Trying to create a simple PowerShell script to sync the allow deny filter MAC address lists on two Server 2012 DHCP servers.  When you replicate them these lists do not replicate.  Anyway, when I try and run the following command:

Get-DhcpServerv4Filter -Computername ORdhcp1.mydomain.com

I get the the following error:

Get-DhcpServerv4Filter : Failed to enumerate MAC address filter list on DHCP server ORdhcp1.mydomain.com.
At line:1 char:1
+ Get-DhcpServerv4Filter -Computername ORdhcp1.mydomain.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (PS_DhcpServerv4Filter:root/Microsoft/...pServerv4Filter) [Get-DhcpSer
   verv4Filter], CimException
    + FullyQualifiedErrorId : WIN32 5,Get-DhcpServerv4Filter

I have enterprise admin rights as well and DHCP Admin rights.  What am I doing wrong?
0
Comment
Question by:ckangas7
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Perarduaadastra
ID: 39979083
This is because the DHCP service runs under the network service account, for which you don't have the credentials.
0
 

Accepted Solution

by:
ckangas7 earned 0 total points
ID: 39979453
Then how do I run the commands in Power Shell?
0
 

Author Closing Comment

by:ckangas7
ID: 40134951
No answer to question I asked in response to initial answer.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Synchronize a new Active Directory domain with an existing Office 365 tenant
A brief introduction to what I consider to be the best editor for PowerShell.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question