Windows/dhcp: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „ == export a scope == > Export-DhcpServer -ComputerName stgwpvinfdhcp01 -file C:\Users\csteidl-a\Desktop\10.3.14.0-24.xml -ScopeId 10.3.14.0 copy file to 10…“)
 
 
Zeile 2: Zeile 2:
 
== export a scope ==
 
== export a scope ==
  
  > Export-DhcpServer -ComputerName stgwpvinfdhcp01 -file C:\Users\csteidl-a\Desktop\10.3.14.0-24.xml -ScopeId 10.3.14.0
+
  > 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<br/>
 
copy file to 10.3.14.0-23.xml<br/>
Zeile 12: Zeile 12:
 
1st of all delete the scope in question from the server and:
 
1st of all delete the scope in question from the server and:
  
  > Import-DhcpServer -ComputerName stgwpvinfdhcp01 -BackupPath C:\Users\csteidl-a\Desktop\BAK_10.3.14.0-24.xml -file C:\Users\csteidl-a\Desktop\10.3.14.0-23.xml -ScopeId 10.3.14.0
+
  > 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
 
  Confirm
  The configuration for following scopes will be imported from the file C:\Users\csteidl-a\Desktop\10.3.14.0-23.xml to
+
  The configuration for following scopes will be imported from the file C:\Users\USER\Desktop\10.3.14.0-23.xml to
  server stgwpvinfdhcp01: 10.3.14.0.Do you want to perform this action?
+
  server SERVERNAME: 10.3.14.0.Do you want to perform this action?
 
  [Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):
 
  [Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):

Aktuelle Version vom 15. Oktober 2016, 11:52 Uhr

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"):