Windows Server 2008 : Security Configuration Wizard (part 2) - Using scwcmd

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

Using scwcmd

The scwcmd tool is used to manipulate policies created by the SCW. The following table shows some common uses.

scwcmd CommandComments
Create a GPO from a SCW policy.
scwcmd transform /p:policy-
file.xml /g:gpo-name
C:\>scwcmd transform /p:c:\

Transforms a security policy file generated by using SCW into a new Group Policy object (GPO) in Active Directory Domain Services (AD DS).

The /p switch needs to include the path to the SCW policy file, and the /g switch names the GPO.

Figure 2 shows the GPO named SCWTest created in the Group Policy Management Console (GPMC) from this command.


The case you use for the GPO is used when the GPO is created. For example, if you use /g:scwtest, the GPO is named scwtest, but if you use /g:SCWTest, the GPO uses the same case named SCWTest.


Although the GPO is created and accessible in the GPMC, it is not linked anywhere by default. You must take the extra step in the GPMC to link it.

Analyze a computer against a policy.
scwcmd analyze /m:computer-
name | /ou:ou-DN
C:\>scwcmd analyze /p:c:\
C:\>s cwcmd analyze /m:dc1
C:\>s cwcmd analyze
/ou:"ou=sales, dc=pearson,

Determines whether a computer is in compliance with a policy. It compares the policy against the computer (or computers) and creates a file indicating any discrepancies.

You can run the command against the local computer without the /m or /ou switch, a remote computer with the /m switch, or an OU with the /ou switch.

The first example analyzes the local system, the second example analyzes a server named dc1, and the third example analyzes all the computers in the Sales OU. You can then view the xml file identified by the /p switch, which documents any discrepancies.
Configure systems with the policy.
scwcmd configure /m:computer-
name | /ou:ou-DN /p:policy-
C:\>scwcmd configure /p:c:\
C:\>s cwcmd configure /m:dc1
C:\>s cwcmd configure
/ou:"ou=sales, dc=pearson,

The configure command applies a SCW-generated security policy to one or more computers. This syntax is similar to the analyze command. You can apply it to the local computer, a remote computer with the /m switch, or all computers in an OU with the /ou switch.
Roll back a policy.
scwcmd rollback /m:computer-
C:\>scwcmd configure /m:dc1

Applies the most recent rollback policy available, and then deletes that rollback policy. You can roll back a policy on only one computer at a time.


Rollback policies are created and stored in the c:\windows\security\msscw\rollbackfiles folder by default.

View a policy.
scwcmd view /x:policy-file.xml
C:\>scwcmd view /x:c:\windows\

Displays an xml file in an interactive page. Figure 3 shows the result of this command.

Figure 2. Transforming an SCW policy to a GPO

Figure 3. Viewing an SCW policy from scwcmd

  •  8 Tips To Protect Your Business’s Wireless Network
  •  Web Security : Automating with LibWWWPerl - Using Threading for Performance
  •  Web Security : Automating with LibWWWPerl - Editing a Page Programmatically
  •  Web Security : Automating with LibWWWPerl - Uploading Viruses to Applications, Parsing for a Received Value with Perl
  •  Web Security : Automating with LibWWWPerl - Uploading Malicious File Contents, Uploading Files with Malicious Names
  •  Windows Server 2008 and Windows Vista : Controlling GPOs with Scripts and Automation - VBScript Scripting , Windows PowerShell
  •  Windows Server 2008 and Windows Vista : GPO Security (part 2)
  •  Windows Server 2008 and Windows Vista : GPO Security (part 1)
  •  Windows Server 2008 and Windows Vista : Advanced Group Policy Management Delegation - Approving, Reviewing
  •  Windows Server 2008 and Windows Vista : Advanced Group Policy Management Delegation - Full Control, Editing
    Top 10
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    - win 2008 FSMO role placement
    - Xpath query with namespace(s)
    - ASP Button With QueryString
    - mac: cycle through browser tabs using keyboard
    - XML
    - function not opening
    - Outlook 2007 not loading
    - How to detect in VBA is a table is linked
    - make Excel not convert certain character strings to non-ASCII
    - SSMS 2008 intellisense doesn't show renamed table names
    programming4us programming4us