text stringlengths 0 4.23k |
|---|
Syntax |
scwcmd configure [[[/m:<computername> | /ou:<OuName>] /p:<policy>] | /i:<computerlist>] [/u:<username>] [/pw:<password>] [/t:<threads>] |
Parameters |
Parameter |
Description |
/m:<computername> |
Specifies the NetBIOS name, DNS name, or IP address of the computer to configure. If the /m parameter is specified, then the /p parameter must also be specified. |
/ou:<OuName> |
Specifies the fully qualified domain name (FQDN) of an organizational unit (OU) in Active Directory Domain Services. If the /ou parameter is specified, then the /p parameter must also be specified. All computers in the OU will be configured against the given policy. |
/p:<policy> |
Specifies the path and file name of the .xml policy file to be used to perform the configuration. |
/i:<computerlist> |
Specifies the path and file name of an .xml file that contains a list of computers along with their expected policy files. All computers in the .xml file will be analyzed against their corresponding policy files. A sample .xml file is %windir%\security\SampleMachineList.xml. |
/u:<username> |
Specifies an alternate user credential to use when performing the configuration on a remote computer. The default is the logged on user. |
/pw:<password> |
Specifies an alternate user credential to use when performing the configuration on a remote computer. The default is the password of the logged on user. |
/t:<threads> |
Specifies the number of simultaneous outstanding configuration operations that should be maintained during the analysis. The value range is 1-1000, with a default value of 40. |
/l |
Causes the analysis process to be logged. One log file will be generated for each computer being analyzed. The log files will be stored in the same directory as the result files. Use the /o option to specify the directory for the result files. |
/e |
Log an event to the Application Event log if a mismatch is found. |
/? |
Displays help at the command prompt. |
<computername> |
<OuName> |
<policy> |
<computerlist> |
%windir%\security\SampleMachineList.xml |
<username> |
<password> |
<threads> |
Examples |
To configure a security policy against the file webpolicy.xml, type: |
scwcmd configure /p:webpolicy.xml |
To configure a security policy for the computer at 172.16.0.0 against the file webpolicy.xml by using the credentials of the webadmin account, type: |
scwcmd configure /m:172.16.0.0 /p:webpolicy.xml /u:webadmin |
To configure a security policy on all computers on the list campusmachines.xml with a maximum of 100 threads, type: |
scwcmd configure /i:campusmachines.xml /t:100 |
To configure a security policy for the WebServers OU against the file webpolicy.xml by using the DomainAdmin credentials, type: |
scwcmd configure /ou:OU=WebServers,DC=Marketing,DC=ABCCompany,DC=com /p:webpolicy.xml /u:DomainAdmin |
scwcmd register |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2012 R2 and Windows Server 2012 |
Extends or customizes the Security Configuration Wizard (SCW) Security Configuration Database by registering a Security Configuration Database file that contains role, task, service, or port definitions. |
Syntax |
scwcmd register /kbname:<MyApp> [/kbfile:<kb.xml>] [/kb:<path>] [/d] |
Parameters |
Parameter |
Description |
/kbname:<MyApp> |
Specifies the name under which the Security Configuration Database extension will be registered. This parameter must be specified. |
/kbfile:<kb.xml> |
Specifies the path and file name of the Security Configuration Database file used to extend or customize the base Security Configuration Database. To validate that the Security Configuration Database file is compliant with the SCW schema, use the %windir%\security\KBRegistrationInfo.xsd schema definition file. This option must be provided unless the /d parameter is specified. |
/kb:<path> |
Specifies the path to the directory that contains the SCW Security Configuration Database files to be updated. If this option is not specified, %windir%\security\msscw\kbs is used. |
/d |
Unregisters a Security Configuration Database extension from the Security Configuration Database. The extension to unregister is specified by the /kbname parameter. (The /kbfile parameter shouldn't be specified.) The Security Configuration Database to unregister the extension from is specified by the /kb parameter. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.