text
stringlengths
0
4.23k
[/d <inetaddr> [<ifaceaddr>]
Deletes an entry with a specific IP address, where inetaddr is the IP address. To delete an entry in a table for a specific interface, use the ifaceaddr parameter where ifaceaddr is the IP address assigned to the interface. To delete all entries, use the asterisk (*) wildcard character in place of inetaddr.
[/s <inetaddr> <etheraddr> [<ifaceaddr>]
Adds a static entry to the arp cache that resolves the IP address inetaddr to the physical address etheraddr. To add a static arp cache entry to the table for a specific interface, use the ifaceaddr parameter where ifaceaddr is an IP address assigned to the interface.
/?
Displays help at the command prompt.
[/a [<inetaddr>] [/n <ifaceaddr>]
[/g [<inetaddr>] [/n <ifaceaddr>]
[/d <inetaddr> [<ifaceaddr>]
[/s <inetaddr> <etheraddr> [<ifaceaddr>]
Remarks
The IP addresses for inetaddr and ifaceaddr are expressed in dotted decimal notation.
The physical address for etheraddr consists of six bytes expressed in hexadecimal notation and separated by hyphens (for example, 00-AA-00-4F-2A-9C).
Entries added with the /s parameter are static and do not time out of the arp cache. The entries are removed if the TCP/IP protocol is stopped and started. To create permanent static arp cache entries, place the appropriate arp commands in a batch file and use Scheduled Tasks to run the batch file at startup.
Examples
To display the arp cache tables for all interfaces, type:
arp /a
To display the arp cache table for the interface that is assigned the IP address 10.0.0.99, type:
arp /a /n 10.0.0.99
To add a static arp cache entry that resolves the IP address 10.0.0.80 to the physical address 00-AA-00-4F-2A-9C, type:
arp /s 10.0.0.80 00-AA-00-4F-2A-9C
assign
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Assigns a drive letter or mount point to the volume with focus. You can also use this command to change the drive letter associated with a removable drive. If no drive letter or mount point is specified, the next available drive letter is assigned. If the drive letter or mount point is already in use, an error is generated.
A volume must be selected for this operation to succeed. Use the select volume command to select a volume and shift the focus to it.
Important
You can't assign drive letters to system volumes, boot volumes, or volumes that contain the paging file. In addition, you cannot assign a drive letter to an Original Equipment Manufacturer (OEM) partition or any GUID Partition Table (gpt) partition other than a basic data partition.
Syntax
assign [{letter=<d> | mount=<path>}] [noerr]
Parameters
Parameter
Description
letter=<d>
The drive letter you want to assign to the volume.
mount=<path>
The mount point path you want to assign to the volume. For instructions about how to use this command, see Assign a mount point folder path to a drive.
noerr
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code.
letter=<d>
mount=<path>
Examples
To assign the letter E to the volume in focus, type:
assign letter=e
assoc
Displays or modifies file name extension associations. If used without parameters, assoc displays a list of all the current file name extension associations.
Note
This command is only supported within cmd.exe and is not available from PowerShell.
Though you can use cmd /c assoc as a workaround.
cmd /c assoc
Syntax
assoc [<.[ext]>[=[<filetype>]]]
Parameters
Parameter
Description
<.ext>
Specifies the file name extension.
<filetype>
Specifies the file type to associate with the specified file name extension.
/?
Displays help at the command prompt.
<.ext>
<filetype>
Remarks
To make changes in associations, you need administrator privileges.