Windows/dhcp

Aus SchnallIchNet
< Windows
Version vom 15. Oktober 2016, 11:52 Uhr von Cbs (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

export a scope

> Export-DhcpServer -ComputerName SERVERNAME -file C:\Users\USER\Desktop\10.3.14.0-24.xml -ScopeId 10.3.14.0

copy file to 10.3.14.0-23.xml
edit the file to your needs - e.g. change the networkmask


import a scope

1st of all delete the scope in question from the server and:

> Import-DhcpServer -ComputerName SERVERNAME -BackupPath C:\Users\USER\Desktop\BAK_10.3.14.0-24.xml -file C:\Users\USER\Desktop\10.3.14.0-23.xml -ScopeId 10.3.14.0

Confirm
The configuration for following scopes will be imported from the file C:\Users\USER\Desktop\10.3.14.0-23.xml to
server SERVERNAME: 10.3.14.0.Do you want to perform this action?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):