Author: Noel Alvarez

Linux – Configure a BIND Zone File

Domain Name System (DNS) is an essential part of any network. Berkeley Internet Name Domain (BIND) may be installed and configured on Linux CentOS and provide DNS name resolution. The configuration of BIND includes zone files. Below you will find a sample zone file for the domain name example.com. You may use this sample as a template and input the DNS records for your corresponding domain name.
01


Microsoft Windows PowerShell – Enable IMCPv4 Ping Requests

You may use the following (2) commands to enable IMCPv4 ping requests for Windows Server 2012 R2 with Microsoft Windows PowerShell.

01


Microsoft Windows Powershell – Hyper-V Cmdlets

In order to view all of the Microsoft Hyper-V Cmdlets use the command get-command -module hyper-v. You may explore these commands and create scripts to automate your Hyper-V administration. Automation can save your Information Technology (IT) department both time and money.

01


Microsoft Windows PowerShell – Configure IP Address(es) and DNS Server(s)

You may modify the following Microsoft PowerShell (.ps1) script to configure the Internet Protocol (IP) and Domain Name System (DNS) servers for a Network Interface Card (NIC) in Windows Server 2012 R2.

01


Microsoft Hyper-V – Create a Virtual Switch using a PowerShell Script

Microsoft Hyper-V allows you to create (3) types of virtual switches (External, Internal and Private). These virtual switches may be created manually using the Hyper-V Manager or you may use a PowerShell (.ps1) script to automate the process. Below you will find a script to create an External virtual switch.

1. Issue the Get-NetAdapter command to provide a list of physical network interface (NIC) card(s) on the host. Take note of the name of the NIC that will be used for the external virtual switch.
01

2. You may modify the script below to create an external virtual switch.

02

3. Run Microsoft Powershell (as an Administrator) to create the external virtual switch.

03

4. Lastly, verify the creation of the virtual switch using the Hyper-V Manager > Virtual Switch Manager.

04


Microsoft Hyper-V – Install Hyper-V and the Management Tools using PowerShell

Microsoft allows you to install the Hyper-V role using PowerShell (run as an administrator) as well as the graphical user interface (GUI). One of the advantages of using PowerShell is that you can create a script to deploy a large number of Hyper-V hosts. During my initial testing I was able to install the Hyper-V role but the Management Tools were not being installed. The PowerShell installation requires the -IncludeManagementTools parameter to install the Management Tools.

The command to install both the Hyper-V role and the Management Tools is as follows:

Install-WindowsFeature –Name Hyper-V -ComputerName <computer_name> -IncludeManagementTools -Restart

01

If you will be installing the Hyper-V role on the local host then remove the -ComputerName <computer_name> parameter.

Microsoft provides great documentation for their solutions and the Install the Hyper-V Role and Configure a Virtual Machine document is no exception.

Enjoy!


Microsoft – Infrastructure Planning and Design Guide Series

When you are implementing any technological solution it is important to plan properly. The Microsoft Infrastructure Planning and Design Guide Series is a great set of documents that will assist you in your planning.

Enjoy!


Windows Server 2012 R2 – iSCSI Initiator Configuration

You may use the following method to configure the iSCSI Initiator in Windows Server 2012 R2.

1. Click Start then select Administrative Tools.

01

2. Double click the iSCSI Initiator icon and in the Microsoft iSCSI dialog box click Yes.

02

3. On the Targets tab type the Internet Protocol (IP) address of the iSCSI Target (in this example it is 192.168.31.91)  in the Quick Connect box then click Quick Connect. In the Quick Connect dialog box verify that the Status says Connected and that the Progress report says Login Succeeded. Then, click Done.

03

4. On the Volumes and Devices tab click Auto Configure then click OK.

04

5. On the desktop right click the Windows icon and select Disk Management.

05

6. In the Disk Management console right click the Logical Unit Number (LUN) and click Online.

06

7. Right click the LUN and select New Simple Volume.

07

8. In the New Simple Volume Wizard click Next >.

08

9. On the Specify Volume Size page click Next >.

09

10. On the Assign Drive Letter or Path page click Next >.

10

11. On the Format Partition page change the Volume label: from New Volume to iSCSI (or you may leave it default) then click Next >.

11

12. On the Completing the New Simple Volume Wizard page click Finish.

12

13. Right click the LUN and click Change Drive Letter and Paths….

13

14. On the Change Drive Letter and Paths for iSCSI click Add…. On the Add Drive Letter or Path dialog box click OK.

14

15. On the desktop right click the Windows icon and select File Explorer.

15

16. The iSCSI LUN is now available for use.

16

Enjoy!


Microsoft Active Directory – Windows Server 2012 R2 Domain Controller (DC) Deployment

You may use the following steps to configure Windows Server 2012 R2 as a Microsoft Active Directory Domain Controller.

1. On the Server Manager page click Add roles and features.

01

2. Click Next > on the Add Roles and Features Wizard page.

02

3. Select Role-based or feature-based installation on the Installation Type page.

03

4. On the Server Selection page select the correct server (in this example it is DC01) and click Next >.

04

5. On the Server Roles page select Active Directory Domain Services. When asked to Add features that are required for Active Directory Domain Services? click Add Features. Then, on the Server Roles page click Next >.

05 - 01

05 - 02

6. On the Features page click Next >.

06

7. On the AD DS page click Next >.

07

8. On the Confirmation page select the option to Restart the destination server automatically if required and click Install.

08

9. On the Results page click Close.

09

10. On the Server Manager select the notification icon then click Promote this server to a domain controller.

10

11. On the Deployment Configuration tab select Add a new forest and specify the Root domain name:, in this example it is ROOT.SYSADMIN.NET, then click Next >.

11

12. On the Domain Controller Options tab select Windows Server 2012 R2 as the Forest functional level: and Domain functional level:. Additionally, choose a Directory Services Restore Mode (DSRM) password then click Next >.

12

13. On the DNS Options tab click Next >.

13

14. On the Additional Options tab choose the default NetBIOS domain name: and click Next >.

14

15. On the Paths tab select Next >.

15

16. On the Review Options tab click Next >.

16

17. On the Prerequisites Check tab click Install (the server will restart).

17

18. Lastly, verify that the Active Directory Domain Service is running correctly by verifying the existence of Active Directory Domain Services Event IDs 1000 & 1394.

Enjoy!

 

 


Microsoft Group Policy Object – “TCP/IP NetBIOS Helper” Service

Yesterday, I continued with the application of Group Policy Objects (GPO) for our workstation (desktop and laptop) users. When running gpupdate /force for a particular user, whose desktop is running Windows XP, I noticed that the GPO wasn’t being applied.

Part of my troubleshooting was to determine if the user’s desktop could access the \\domain.com\SYSVOL directory. On this particular machine it could be accessed using \\domain\SYSVOL but not with \\domain.com\SYSVOL. In other words, appending the top level domain (TLD) revealed a name resolution failure.

The solution was to start the DNS Client, Netlogon and TCP/IP NetBIOS Helper services and configure their startup type to automatic (I will need to troubleshoot the determine the root cause of the services not running).

Enjoy!