text
stringlengths
0
4.23k
/?
Displays help at the command prompt.
<MyApp>
<kb.xml>
%windir%\security\KBRegistrationInfo.xsd
<path>
%windir%\security\msscw\kbs
Examples
To register the Security Configuration Database file named SCWKBForMyApp.xml under the name MyApp in the location \\kbserver\kb, type:
\\kbserver\kb
scwcmd register /kbfile:d:\SCWKBForMyApp.xml /kbname:MyApp /kb:\\kbserver\kb
To unregister the Security Configuration Database MyApp, located at \\kbserver\kb, type:
\\kbserver\kb
scwcmd register /d /kbname:MyApp /kb:\\kbserver\kb
scwcmd rollback
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2012 R2 and Windows Server 2012
Applies the most recent rollback policy available, and then deletes that rollback policy.
Syntax
scwcmd rollback /m:<computername> [/u:<username>] [/pw:<password>]
Parameters
Parameter
Description
/m:<computername>
Specifies the NetBIOS name, DNS name, or IP address of a computer where the rollback operation should be performed.
/u:<username>
Specifies an alternate user account to use when performing a remote rollback. The default is the logged on user.
/pw:<password>
Specifies an alternate user credential to use when performing a remote rollback. The default is the logged on user.
/?
Displays help at the command prompt.
<computername>
<username>
<password>
Examples
To roll back the security policy on a computer at IP address 172.16.0.0, type:
scwcmd rollback /m:172.16.0.0
scwcmd transform
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2012 R2 and Windows Server 2012
Transforms a security policy file generated by using the Security Configuration Wizard (SCW) into a new Group Policy Object (GPO) in Active Directory Domain Services. The transform operation does not change any settings on the server where it is performed. After the transform operation has completed, an administrator must link the GPO to the desired OUs to deploy the policy to servers.
Important
Domain administrator credentials are needed to complete the transform operation.
Internet Information Services (IIS) security policy settings can't be deployed by using Group Policy.
Firewall policies that list approved apps shouldn't be deployed to servers unless the Windows Firewall service started automatically when the server was last started.
Syntax
scwcmd transform /p:<policyfile.xml> /g:<GPOdisplayname>
Parameters
Parameter
Description
/p:<policyfile.xml>
Specifies the path and file name of the .xml policy file that should be applied. This parameter must be specified.
/g:<GPOdisplayname>
Specifies the display name of the GPO. This parameter must be specified.
/?
Displays help at the command prompt.
<policyfile.xml>
<GPOdisplayname>
Examples
To create a GPO named FileServerSecurity from a file named FileServerPolicy.xml, type:
scwcmd transform /p:FileServerPolicy.xml /g:FileServerSecurity
scwcmd view
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2012 R2 and Windows Server 2012
Renders an .xml file by using a specified .xsl transform. This command can be useful for displaying Security Configuration Wizard (SCW) .xml files by using different views.
Syntax
scwcmd view /x:<Xmlfile.xml> [/s:<Xslfile.xsl>]