[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2318
  • Last Modified:

Emport Import DHCP allow deny filter Mac Addresses

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
ckangas7
Asked:
ckangas7
  • 2
1 Solution
 
PerarduaadastraCommented:
This is because the DHCP service runs under the network service account, for which you don't have the credentials.
0
 
ckangas7Author Commented:
Then how do I run the commands in Power Shell?
0
 
ckangas7Author Commented:
No answer to question I asked in response to initial answer.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now