Scwcmd: register

Applies To: Windows Server 2008, Windows Server 2008 R2

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 that will be 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 should not be specified.) The Security Configuration Database to unregister the extension from is specified by the /kb parameter.

/?

Displays help at the command prompt.

Remarks

Scwcmd.exe is only available on computers running Windows Server 2008 R2, Windows Server 2008, or Windows Server 2003.

Examples

To register the Security Configuration Database file named SCWKBForMyApp.xml under the name MyApp in the location \\kbserver\kb, type:

scwcmd register /kbfile:d:\SCWKBForMyApp.xml /kbname:MyApp /kb:\\kbserver\kb

To unregister the Security Configuration Database MyApp located at \\kbserver\kb, type:

scwcmd register /d /kbname:MyApp /kb:\\kbserver\kb

Additional references