Page 1
Standard

Environment Variables List

Variable Refers to folder or drive
%SYSTEMDRIVE% The drive / partition where Windows is installed, default = C:
%PROFILESDIRECTORY% Users, default = %SYSTEMDRIVE%\Users
%WINDIR% Windows, default = %SYSTEMDRIVE%\Windows
%ALLUSERSPROFILE% ProgramData, default = %SYSTEMDRIVE%\ProgramData
%APPDATA% %PROFILESDIRECTORY%\{username}\AppData\Roaming
%COMMONPROGRAMFILES% %SYSTEMDRIVE%\Common Files
%COMMONPROGRAMFILES(x86)% %SYSTEMDRIVE%\Program Files (x86)\Common Files
%COMSPEC% %WINDIR%\System32\cmd.exe
%HOMEDRIVE% The drive where Users is located, default = C:
%HOMEPATH% %PROFILESDIRECTORY%\{username}
%LOCALAPPDATA% %PROFILESDIRECTORY%\{username}\AppData\Local
%PROGRAMDATA% ProgramData, default = %SYSTEMDRIVE%\ProgramData
%PROGRAMFILES% %SYSTEMDRIVE%\Program Files
%PROGRAMFILES(X86)% %SYSTEMDRIVE%\Program Files (x86) (only in 64-bit version)
%PUBLIC% %PROFILESDIRECTORY%\Public
%SYSTEMROOT% %WINDIR%
%TEMP% and %TMP% %PROFILESDIRECTORY%\{username}\AppData\Local\Temp
%USERPROFILE% %PROFILESDIRECTORY%\{username}

NOTE: C:\ is the system drive (ie, where Windows is installed). It will differ if you installed Windows to a different drive.

Standard

DHCP database transfer

Login to the DHCP server with appropriate credentials

Click start – run – type cmd and press enter

DHCP1

In the command console

Type:
netsh dhcp server export c:\dhcp.txt all

Then press enter. You can change the path and filename to suit your needs.

DHCP2

You should see confirmation after a short bit

The amount of time to backup your database will be dependent upon the size. You should get a confirmation that it was completed successfully.

DHCP3

Login to your target server

Login with the appropriate credentials on your target server for importing. If you haven’t installed the DHCP role yet open the server manager console and click on Add Roles.

DHCP4

click the DHCP Server box to add the role

then click Next, then Next again

DHCP5

Make sure the correct IP is selected for binding

then click Next

DHCP6

Configure DNS

Set parent domain, Primary and Secondary DNS server IPs and click Next (in this instance the primary is the loopback for the DC that is being used as an example)

DHCP7

If WINS is in use…

click the radio button for “WINS is required…” and configure your Primary and Secondary server IPs then click Next, if you don’t use WINS, leave the default setting and click Next

DHCP8

Since we are importing a database, just click Next on this screen

DHCP9

Usually you can disable DHCPv6 stateless mode

If you aren’t sure you I can’t tell you if you need it or not so either accept the default or change it and click Next

DHCP10

You should get a confirmation message saying the install succeeded.

I wouldn’t import the database onto the new server until you have gone to your old DHCP server and either disabled the DHCP Server service, deactivated the scopes or Unauthorized it.

DHCP11

Open a command prompt on the new server

DHCP12

In the command console

type:
netsh dhcp server import c:\dhcp.txt all

Then press enter. You can change the path and filename to whatever you are using. This how to skips the step of copying the file you exported to the root of C: on the new server.

DHCP13

Authorize the DHCP server

Click Start, point to All Programs, point to Administrative Tools, and then click DHCP.

In the console tree of the DHCP snap-in, expand the new DHCP server. If there is a red arrow in the lower-right corner of the server object, the server has not yet been authorized.
Right-click the server object, and then click Authorize.
After several moments, right-click the server again, and then click Refresh. A green arrow indicates that the DHCP server is authorized.

DHCP14

Standard

Transferring FSMO Roles

Schema Master:

Go to WS 2008 R2 DC, Run below command

regsvr32 schmmgmt.dll

FSMO1

Open MMC & add Active Directory Schema

FSMO2

OK

FSMO3

Change Active Directory Domain Controller

FSMO4

Select WS2012 server

FSMO5

OK

FSMO6

Select Operational Master

FSMO7

Change

FSMO8

Yes

FSMO9

PDC, RID, Infrastructure Master:

Go to Active Directory Users & Computers in WS 2012 DC

FSMO10

Operations Masters

FSMO11

Change

FSMO12

Yes

FSMO13

OK,

FSMO14

Go to PDC

FSMO18

Change

FSMO16

Yes

FSMO17

OK

FSMO18

Go to Infrastructure

FSMO19

Change

FSMO20

Yes

FSMO21

OK

FSMO22

Domain Naming Master:

Open ADSI Edit in WS2012 DC

FSMO23

Connect To

FSMO24

OK

FSMO25

IN WS 2008 R2 Server, Go to Active directory Domains & Trusts

FSMO26

Select Operations Master

FSMO27

Change

FSMO28

Yes

FSMO29

OK

FSMO30

Close

All FSMO roles are moved to New WS2012 DC

FSMO31