The Scwcmd configure command in Windows
(Applies to: Windows Server 2012 R2, Windows Server 2012)
The Scwcmd command helps apply the security policy configured by the Security Configuration Wizard (SCW) to the computer.This command-line tool also accepts a list of computer names as input data.For a better understanding of how to use this command, see the example section below.
Syntax command Scwcmd configure
scwcmd configure [[[/ m: | / ou:] / p:] | / i:] [/ u:] [/ pw:] [/ t:]
The command parameter Scwcmd configure
Parameters
Describe
/ m:
Specify the NetBIOS name, DNS name or IP address of the computer for analysis.If the / m parameter is specified, the / p parameter must also be specified according to.
/ ou:
Specify fully qualified domain name (FQDN) of an organizational unit (OU) in Active Directory Domain Services.If the / ou parameter is specified, the / p parameter must also be specified according to.All computers in the OU will be analyzed according to a certain policy.
/ p:
Specify the path and name of the .xml policy file to be used to proceed with the configuration.
/ i:
Specify the path and name of the .xml file that contains the computer list along with their expected policy files.All computers in the .xml file will be analyzed based on their respective policy files.The sample .xml file will be% windir% securitySampleMachineList.xml.
/ u:
Specify alternate user credentials to use when configuring remote computers.By default, the user is logged in.
/ pw:
Specify alternate user credentials to use when configuring remote computers.Default is the password of the logged in user.
/ t:
Specify the number of concurrent outstanding analysis activities that need to be maintained during the analysis process (default value DefaultValue = 40, lowest value MinValue = 1, maximum value MaxValue = 1000).
/?
Show help at thecommand prompt.
The command statement Scwcmd configure
Scwcmd.exe will only be available on computers running Windows Server 2008 R2, Windows Server 2008 or Windows Server 2003.
For example, the command Scwcmd configure
To configure the security policy for a file named webpolicy.xml, enter:
scwcmd configure /p:webpolicy.xml
To configure the security policy for the computer at 172.16.0.0 in contrast to the webpolicy.xml file using the webadmin account login, enter:
scwcmd configure /m:172.16.0.0 /p:webpolicy.xml / u: webadmin
To configure the security policy on all computers in the Campusmachines.xml list with up to 100 threads, enter:
scwcmd configure /i:campusmachines.xml / t: 100
To configure the security policy on all computers in WebServers OU based on the webpolicy.xml file by using the DomainAdmin account login information, type:
scwcmd configure / ou: OU = WebServers, DC = Marketing, DC = ABCCompany, DC = com /p:webpolicy.xml / u: DomainAdmin
See more:
- Instructions for installing Windows Server 2012 step by step
- Install Windows Server 2008
- Instructions for creating a Domain Controller - DC on Windows Server 2012
- Instructions for installing Active Directory on Windows Server 2008
You should read it
- Scwcmd command in Windows
- Secedit: configure command in Windows
- Configure IP network address with MS-DOS command
- Secedit command in Windows
- Configure God of War Ragnarok on PC
- Configure wireless connection of Windows Vista from CLI with netsh wlan
- Configure advanced firewall in Windows 2008 using NETSH CLI
- Configure 2020 Pes PC
May be interested
- Sub-commands in nslookup Windows command (Part 3)nslookup set recurse, nslookup set retry, nslookup set root, nslookup set search, nslookup set srchlist, nslookup set timeout, nslookup set type, nslookup set vc, and nslookup view in windows
- Command at in Windowsthe at command schedules commands and programs to run on a computer at a specified time with a specific date. you can only use the command at when schedule service is running.
- Set command in Windowsthe set command helps show, set or remove cmd.exe environment variables.
- Del command in Windowsthe del command deletes one or more files. this command is the same as the eraser command.
- 10 useful commands in Windows you should knowcommand prompt is used to execute batch files, perform tasks quickly, help you troubleshoot and solve some windows problems when the system crashes. however, not all commands in windows are useful and must be done regularly. with the 10 command lines in the following article it is very useful even if you are not an administrator.
- How to use the option equivalent to the 'ls' command in Windowsthe 'ls' command (note ls, not is) is one of the first terminal commands veterans teach to linux beginners.
- The command reg add in Windowsthe reg add command adds new subkeys or entries to the registry.
- Rem command in Windowsthe rem command helps write comments (comments) in a batch file or config.sys.
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory