Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Strange Error I can’t seem to make sense of.

$
0
0

I have been attempting to learn Powershell by setting up a DHCP server w/ failover on Windows Core 2012 R2 (Got a goal in mind, go.)

I ran into the command Get-DHCPServerInDC which is suppose to respond with a list of DHCP servers that are available. When I do a New-PSSession followed by a Enter-PSSession and manually enter the command or I try to use Invoke-Command, I get a fully qualified error of “DHCP 20070, Get-DHCPServerInDC” along with the verbiage of “Failed to initialize directory service resource for domain foo.”

When I execute Get-DHCPServerInDC non-remoted (on console) , I am returned with a table consisting of IPAddresses and DNS Names.

When I googled DHCP error 20070 I run across AD permissions issues of not being the Domain Admin, which is confusing as I understand that if I am being denied access, I would be denied access across the board.

Does anyone have any pointers as to why I would be able to execute the commands on console, but not remoting/remoted in ? (FWIW, the on console is a web browser console from VMWare.)

  • Apologies for the double tap , if anyone caught it.

submitted by /u/duffelbagninja
[link] [comments]

The post Strange Error I can’t seem to make sense of. appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles