Aktionen

PowerShell DHCP-Reservierungen kopieren

Aus znilwiki

Version vom 6. April 2023, 09:00 Uhr von BLinz (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<source lang="powershell"> foreach ($reservation in Get-DhcpServerv4Reservation -ScopeId 192.168.2.0 -ComputerName QUELL-DHCP) { Write-Host IP: $reservation.IPaddress - CientID: $reservation.ClientId - Name: $reservation.Name Add-DhcpServerv4Reservation -ComputerName ZIEL-DHCP-Type DHCP -IPAddress $reservation.IPaddress -ClientId $reservation.ClientId -Name $reservation.Name -ScopeId 192.168.2.0 Write-Host IP: $reservation.IPaddress…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
foreach ($reservation in Get-DhcpServerv4Reservation -ScopeId 192.168.2.0 -ComputerName QUELL-DHCP)
{
    Write-Host IP: $reservation.IPaddress - CientID: $reservation.ClientId - Name: $reservation.Name
    Add-DhcpServerv4Reservation -ComputerName ZIEL-DHCP-Type DHCP -IPAddress $reservation.IPaddress -ClientId $reservation.ClientId -Name $reservation.Name -ScopeId 192.168.2.0
    Write-Host IP: $reservation.IPaddress                                  
}