Roles with a Batch File
1. What does the /w switch do? And why is it used? I think there are a lot of commands that might use /w for very different reasons... For example: MCP/MCSA/MCTS/MCITP. The /W switch specifies the warning level of the MIDL compiler. The warning level indicates the severity of the warning.
2. What switch is used to remove a role? In the Roles Summary or Features Summary areas of the Server Manager main window, click either Remove Roles or Remove Features, depending on the software that you want to remove. Follow the instructions that are provided by the wizard as you progress through the removal.
To remove roles or features by using the windows program called Windows PowerShell.
3. What is the command to start the DHCP Server service? To use DHCP commands interactively at the command prompt. Open Command Prompt. Type netsh. At the netsh> command prompt, type dhcp. At the dhcp> command prompt, type: server\\ServerName Or, type: serverIPAddress.
Where ServerName and IPAddress are the server that you want to manage.
Once connected, you can use any supported Netsh DHCP context command. Type /? or help to display the immediate context command menu, or type list to list all of the Netsh DHCP context commands available for use.
4. What command is used to configure a DNS zone? You can use these procedures to configure a new Domain Name System (DNS) server with either the Windows graphical user interface (GUI) or the dnscmd command-line tool.
When you install a new DNS server on a server that is not a domain controller, you typically perform the following tasks to configure the DNS server:
Create a forward and (optional) reverse lookup zone. After creating the first zone, you can also create additional zones, as needed.
Determine whether each zone will allow dynamic updates, including whether nonsecure updates will be allowed.
Determine whether unresolved queries will be forwarded and to what servers.