text
stringlengths
0
4.23k
<result.xml>
NOTEYou can't run servermanagercmd with both the -resultpath and the -whatif parameters specified.
<[[<Drive>:]<path>]<log.txt>>
%windir%\temp\servermanager.log
Examples
To display a list of all roles, role services, and features available, and which roles, role services, and features are installed on the computer, type:
servermanagercmd -query
To install the Web Server (IIS) role, and save the installation results to an XML file represented by installResult.xml, type:
servermanagercmd -install Web-Server -resultpath installResult.xml
To display detailed information about the roles, role services, and features that would be installed or removed, based upon instructions that are specified in an XML answer file represented by install.xml, type:
servermanagercmd -inputpath install.xml -whatif
serverweroptin
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Allows you to turn on error reporting.
Syntax
serverweroptin [/query] [/detailed] [/summary]
Parameters
Parameter
Description
/query
Verifies your current setting.
/detailed
Specifies to send detailed reports automatically.
/summary
Specifies to send summary reports automatically.
/?
Displays help at the command prompt.
Examples
To verify the current setting, type:
serverweroptin /query
To automatically send detailed reports, type:
serverweroptin /detailed
To automatically send summary reports, type:
serverweroptin /summary
Set context
Sets the context for shadow copy creation. If used without parameters, set context displays help at the command prompt.
Syntax
set context {clientaccessible | persistent [nowriters] | volatile [nowriters]}
Parameters
Parameter
Description
clientaccessible
Specifies that the shadow copy is usable by client versions of Windows. This context is persistent by default.
persistent
Specifies that the shadow copy persists across program exit, reset, or restart.
volatile
Deletes the shadow copy on exit or reset.
nowriters
Specifies that all writers are excluded.
Examples
To prevent shadow copies from being deleted when you exit DiskShadow, type:
set context persistent
404 - Page not found
We couldn't find this page. You can try signing in, or choosing from the relevant search results below:
We couldn't find this page. You can try changing directories, or choosing from the relevant search results below:
set id (Diskpart)
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Changes the partition type field for the partition with focus. This command doesn't work on dynamic disks or on Microsoft Reserved partitions.
Important
This command is intended for use by original equipment manufacturers (OEMs) only. Changing partition type fields with this parameter might cause your computer to fail or be unable to boot. Unless you are an OEM or experienced with gpt disks, you should not change partition type fields on gpt disks by using this parameter. Instead, always use the create partition efi command to create EFI system partitions, the create partition msr command to create Microsoft Reserved partitions, and the create partition primary command without the ID parameter to create primary partitions on gpt disks.
Syntax
set id={ <byte> | <GUID> } [override] [noerr]