Usage: DnsCmd <ServerName> <Command> [<Command Parameters>]

IP address or host name    — remote or local DNS server
.                          — DNS server on local machine
/Info                      — Get server information
/Config                    — Reset server or zone configuration
/EnumZones                 — Enumerate zones
/Statistics                — Query/clear server statistics data
/ClearCache                — Clear DNS server cache
/WriteBackFiles            — Write back all zone or root-hint datafile(s)
/StartScavenging           — Initiates server scavenging
/IpValidate                — Validate remote DNS servers
/ResetListenAddresses      — Set server IP address(es) to serve DNS requests
/ResetForwarders           — Set DNS servers to forward recursive queries to
/ZoneInfo                  — View zone information
/ZoneAdd                   — Create a new zone on the DNS server
/ZoneDelete                — Delete a zone from DNS server or DS
/ZonePause                 — Pause a zone
/ZoneResume                — Resume a zone
/ZoneReload                — Reload zone from its database (file or DS)
/ZoneWriteBack             — Write back zone to file
/ZoneRefresh               — Force refresh of secondary zone from master
/ZoneUpdateFromDs          — Update a DS integrated zone by data from DS
/ZonePrint                 — Display all records in the zone
/ZoneResetType             — Change zone type
/ZoneResetSecondaries      — Reset secondary\notify information for a zone
/ZoneResetScavengeServers  — Reset scavenging servers for a zone
/ZoneResetMasters          — Reset secondary zone’s master servers
/ZoneExport                — Export a zone to file
/ZoneChangeDirectoryPartition — Move a zone to another directory partition
/TrustAnchorsResetType     — Change zone type for a trust anchor zone
/EnumRecords               — Enumerate records at a name
/RecordAdd                 — Create a record in zone or RootHints
/RecordDelete              — Delete a record from zone, RootHints or cache
/NodeDelete                — Delete all records at a name
/AgeAllRecords             — Force aging on node(s) in zone
/TrustAnchorAdd            — Create a new trust anchor zone on the DNS server
/TrustAnchorDelete         — Delete a trust anchor zone from DNS server or DS
/EnumTrustAnchors          — Enumerate records at a name
/EnumDirectoryPartitions   — Enumerate directory partitions
/DirectoryPartitionInfo    — Get info on a directory partition
/CreateDirectoryPartition  — Create a directory partition
/DeleteDirectoryPartition  — Delete a directory partition
/EnlistDirectoryPartition  — Add DNS server to partition replication scope
/UnenlistDirectoryPartition — Remove DNS server from replication scope
/CreateBuiltinDirectoryPartitions — Create built-in partitions
/ExportSettings            — Output settings to DnsSettings.txt in the DNS server database directory
/OfflineSign               — Offline signing zone files, including key generation/deletion

<Command Parameters>:
DnsCmd <CommandName> /? — For help info on specific Command



XCOPY in Windows

To copy the \Customer directory and all subdirectories to the directory \\Public\Address on network drive H:, retain the read-only attribute, and be prompted when a new file is created on H:, type:

xcopy \customer h:\public\address /s /e /k /p

xcopy D:\LAX z:\Backup\LAX /E /C /R /I /K /Y

(Windows 2003) xcopy “d:\Long Beach Files” “F:\PoLB Backup\RestoreONLY” /E /C /R /I /K /Y

C:\>xcopy /?
Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B]

source       Specifies the file(s) to copy.
destination  Specifies the location and/or name of new files.
/A           Copies only files with the archive attribute set,
doesn’t change the attribute.
/M           Copies only files with the archive attribute set,
turns off the archive attribute.
/D:m-d-y     Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
Specifies a list of files containing strings.  Each string
should be in a separate line in the files.  When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied.  For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.
/P           Prompts you before creating each destination file.
/S           Copies directories and subdirectories except empty ones.
/E           Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
/V           Verifies the size of each new file.
/W           Prompts you to press a key before copying.
/C           Continues copying even if errors occur.
/I           If destination does not exist and copying more than one file,
assumes that destination must be a directory.
/Q           Does not display file names while copying.
/F           Displays full source and destination file names while copying.
/L           Displays files that would be copied.
/G           Allows the copying of encrypted files to destination that does
not support encryption.
/H           Copies hidden and system files also.
/R           Overwrites read-only files.
/T           Creates directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
/U           Copies only files that already exist in destination.
/K           Copies attributes. Normal Xcopy will reset read-only attributes.
/N           Copies using the generated short names.
/O           Copies file ownership and ACL information.
/X           Copies file audit settings (implies /O).
/Y           Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y          Causes prompting to confirm you want to overwrite an
existing destination file.
/Z           Copies networked files in restartable mode.
/B           Copies the Symbolic Link itself versus the target of the link.
/J           Copies using unbuffered I/O. Recommended for very large files.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.


Configuring IPv4 and IPv6 settings Manually from the Command Prompt

Set the IPv4 address:

netsh interface ip set address “Connection_Name” static Address Subnet_Mask Default_Gateway

netsh interface ip set address “local area connection” static

Set the IPv6 address:

netsh interface ipv6 set address “Connection_Name” Address

netsh interface ipv6 set address “Local Area Connection” 2001:db8:290c:1291::1

DCPROMO – Demoting DC

Prior to demoting a Domain Controller, this DC must NOT hold or any of the roles:

C:\>netdom /query fsmo

  1. Schema Master
  2. Domain Naming Master
  3. PDC
  4. RID Pool Manager
  5. Infrastructure Master
  6. Global Catalog (launch AD Sites and Services\NTDS Settings)

Note: Diagnose Active Directory replication problems between domain controllers.

C:\>repadmin /showrepl

Firebird Database Server


  1. Install Firebird database server v2.1.3
  2. If custom install onto D:\Program Files (x86)\Firebird
  3. Modify in notepad the aliases.conf file by changing the default path C to D, as shown below,  AssetManager=D:\KZSoftware\AssetManager.adb TrainingManager=D:\KZSoftware\TrainingManager.tdb VehicleManager=D:\KZSoftware\VehicleData.vdb
  4. Restart Firebird Server – DefaultInstance service
  5. You may need disable Windows Firewall to allow client access


  1. Install Training Manager Enterprise Edition (Network Client), TrainingManagerEnterpriseSetup.exe
  2. Enter the license key
  3. Connect to server database name or preferably IP address