text
stringlengths
0
4.23k
To add, change, or remove a Macintosh-accessible volume.
Syntax
macfile volume {/add|/set} [/server:\\<computername>] /name:<volumename>/path:<directory>[/readonly:{true | false}] [/guestsallowed:{true | false}] [/password:<password>] [/maxusers:{<number>>|unlimited}]
macfile volume /remove[/server:\\<computername>] /name:<volumename>
Parameters
Parameter
Description
{/add | /set}
Required when adding or changing a Macintosh-accessible volume. Adds or changes the specified volume.
/server:\\<computername>
Specifies the server on which to add, change, or remove a volume. If omitted, the operation is performed on the local computer.
/name:<volumename>
Required. Specifies the volume name to be added, changed, or removed.
/path:<directory>
Required and valid only when you are adding a volume. Specifies the path to the root directory of the volume to be added.
/readonly:{true | false}
Specifies whether users can change files in the volume. Use True to specify that users can't change files in the volume. Use False to specify that users can change files in the volume. If omitted when adding a volume, changes to files are allowed. If omitted when changing a volume, the readonly setting for the volume remains unchanged.
/guestsallowed:{true | false}
Specifies whether users who log on as guests can use the volume. Use True to specify that guests can use the volume. Use False to specify that guests can't use the volume. If omitted when adding a volume, guests can use the volume. If omitted when changing a volume, the guestsallowed setting for the volume remains unchanged.
/password:<password>
Specifies a password that will be required to access the volume. If omitted when adding a volume, no password is created. If omitted when changing a volume, the password remains unchanged.
/maxusers:{<number>> | unlimited}
Specifies the maximum number of users who can simultaneously use the files on the volume. If omitted when adding a volume, an unlimited number of users can use the volume. If omitted when changing a volume, the maxusers value remains unchanged.
/remove
Required when you are removing a Macintosh-accessible volume. removes the specified volume.
/?
Displays help at the command prompt.
{/add | /set}
\\<computername>
<volumename>
<directory>
{true | false}
{true | false}
<password>
{<number>> | unlimited}
Remarks
<computer name>
Examples
To create a volume called US Marketing Statistics on the local server, using the Stats directory in the E drive, and to specify that the volume cannot be accessed by guests, type:
macfile volume /add /name:US Marketing Statistics /guestsallowed:false /path:e:\Stats
To change the volume created above to be read-only, to require a password, and to set the number of maximum users to five, type:
macfile volume /set /name:US Marketing Statistics /readonly:true /password:saturn /maxusers:5
To add a volume called Landscape Design, on the server \Magnolia, using the trees directory in the E drive, and to specify that the volume can be accessed by guests, type:
macfile volume /add /server:\\Magnolia /name:Landscape Design /path:e:\trees
To remove the volume called Sales Reports on the local server, type:
macfile volume /remove /name:Sales Reports
makecab
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Package existing files into a cabinet (.cab) file.
Note
This command is the same as the diantz command.
Syntax
makecab [/v[n]] [/d var=<value> ...] [/l <dir>] <source> [<destination>]
makecab [/v[<n>]] [/d var=<value> ...] /f <directives_file> [...]
Parameters
Parameter
Description
<source>
File to compress.
<destination>