Tinus EngOps Wiki

Logo

OpsaC - Operating as PowerShell code

Links

Home

IT-Wiki

PowerShell Blog

PowerShell Index

PowerShell Search

Additional Websites

View my GitHub Profile

View my GitHub Gists

View my Codeberg Page

View my Photo Website

DHCP Server

published: March 13, 2015 author: Tinu tags: DHCP Server categories: Windows Server


DHCP Server Authorisierung

Im Active Directory autorisierte DHCP Server auflisten

$configurationNC = ([adsi]"LDAP://rootdse").ConfigurationNamingContext
Get-ADObject -SearchBase $($configurationNC) -Filter "objectclass -eq 'dhcpclass' `
 -AND Name -ne 'dhcproot'" | Select Name

Add Server to Authorized servers

netsh dhcp add server dhcpsrv1.example.microsoft.com 10.2.2.2

Windows PowerShell 4.0

Wird das Cmdlet ohne Parameter ausgeführt, so wird der lokale Server im AD autorisiert. Die IP Adresse wird automatisch mit einem Nslookup ermittelt.

Add-DhcpServerInDC -DnsName dhcpserver.contoso.com -IPAddress 10.10.10.2

Remove Server from Authorization

netsh dhcp delete server dhcpsrv1.example.microsoft.com 10.2.2.2

Windows PowerShell 4.0

Wird das Cmdlet ohne Parameter ausgeführt, so wird der lokale Server aus der AD-Autorisierung gelöscht. Die IP Adresse wird automatisch mit einem Nslookup ermittelt.

Remove-DhcpServerInDC -DnsName dhcpserver.contoso.com -IPAddress 10.10.10.2

← Previous Post ◇ [ Top ] ◇ Copyright © 2024 by tinuwalther ◇ [ Blog ] ◇ Next Post →