text
stringlengths
0
4.23k
unexpose command
Unexposes a shadow copy that was exposed by using the expose command.
break command
Disassociates a shadow copy volume from VSS.
revert command
Reverts a volume back to a specified shadow copy.
exit command
Exits the command interpreter or script.
Examples
This is a sample sequence of commands that will create a shadow copy for backup. It can be saved to file as script.dsh, and executed using diskshadow /s script.dsh.
diskshadow /s script.dsh
Assume the following:
You have an existing directory called c:\diskshadowdata.
Your system volume is C: and your data volume is D:.
You have a backupscript.cmd file in c:\diskshadowdata.
Your backupscript.cmd file will perform the copy of shadow data p: and q: to your backup drive.
You can enter these commands manually or script them:
#Diskshadow script file
set context persistent nowriters
set metadata c:\diskshadowdata\example.cab
set verbose on
begin backup
add volume c: alias systemvolumeshadow
add volume d: alias datavolumeshadow
create
expose %systemvolumeshadow% p:
expose %datavolumeshadow% q:
exec c:\diskshadowdata\backupscript.cmd
end backup
#End of script
dispdiag
Logs display information to a file.
Syntax
dispdiag [-testacpi] [-d] [-delay <seconds>] [-out <filepath>]
Parameters
Parameter
Description
- testacpi
Runs hotkey diagnostics test. Displays the key name, code and scan code for any key pressed during the test.
-d
Generates a dump file with test results.
-delay <seconds>
Delays the collection of data by specified time in seconds.
-out <filepath>
Specifies path and filename to save collected data. This must be the last parameter.
-?
Displays available command parameters and provides help for using them.
<seconds>
<filepath>
Dnscmd
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
A command-line interface for managing DNS servers. This utility is useful in scripting batch files to help automate routine DNS management tasks, or to perform simple unattended setup and configuration of new DNS servers on your network.
Syntax
dnscmd <servername> <command> [<command parameters>]
Parameters
Parameter
Description
<servername>
The IP address or host name of a remote or local DNS server.
<servername>
dnscmd /ageallrecords command
Sets the current time on a time stamp on resource records at a specified zone or node on a DNS server.
Syntax