Solved

Emport Import DHCP allow deny filter Mac Addresses

Posted on 2014-04-04
3
1,917 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
OfficeMate Freezes on login or does not load after login credentials are input.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

726 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