How to solve the CreateFile() error encountered when applying SCW policy via the command line (scwcmd configure)

Security Configuration Wizard has a really handy command line as I'll demonstrate in an upcoming BlogCast.

To apply an SCW policy you can issue the "scwcmd configure" command. Unlike the other scwcmd commands "configure" does not default to applying to the local machine. If you issue the following from a command window:

scwcmd configure /p:"virtual server role.xml"

You'll receive the following error:

   / 0/1 0%CreateFile() gave error 2
- 0/1 0%connect() gave error 10061
CreateFile() gave error 2
\ 0/1 0%connect() gave error 10061
| 0/1 0%CreateFile() gave error 2
/ 0/1 0%connect() gave error 10061
CreateFile() gave error 2
- 0/1 0%connect() gave error 10061
\ 0/1 0%CreateFile() gave error 2
| 0/1 0%connect() gave error 10061
CreateFile() gave error 2
/ 0/1 0%connect() gave error 10061
CreateFile() gave error 2
- 0/1 0%connect() gave error 10061
CreateFile() gave error 2
\ 0/1 0%connect() gave error 10061
- 0/1 0%CreateFile() gave error 2
\ 0/1 0%connect() gave error 10061
* 1/1 100%
Command completed successfully.

To avoid this problem ensure that you include either the name of the target system via "/m:" followed by the hostname or use the switch to specify an XML file listing target systems or the OU option.