Warning: file_exists(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client0/web58/web:/var/www/clients/client0/web58/private:/var/www/clients/client0/web58/tmp:/var/www/testwiki.znil.net/web:/srv/www/testwiki.znil.net/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom;/gitinfo) in /var/www/clients/client0/web58/web/includes/shell/CommandFactory.php on line 119
PowerShell DHCP-Reservierungen kopieren – testznilwiki
 Aktionen

PowerShell DHCP-Reservierungen kopieren

Aus testznilwiki

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                                  
}