Microsoft Windows PowerShell – Systeminfo and System Boot Time

The systeminfo command in Microsoft Windows PowerShell will provide you with many statistics for your Windows server. If you’re ever looking for the servers uptime then you may use the following command:

systeminfo | find “System Boot Time”


.NET Framework – Enable .NET Framework in Windows Server 2012

The webpage below will provide you with the steps to enable the Microsoft .NET Framework in Windows Server 2012.

Enable .NET Framework 3.5 by using the Add Roles and Features Wizard (Windows Server 2012 only).


Microsoft Windows PowerShell – List Installed Applications

This script will query a remote computer’s list of installed applications and provide the output in a file and directory of your choice.

Example: gwmi win32_product -ComputerName “Computer1” | out-file -filepath “<File Path>”


Microsoft Windows PowerShell – List Installed Microsoft Updates

This script will provide a list of the Microsoft updates that have been applied to the local computer and provide the output in a file asd well as a directory of your choice.

Example: Get-HotFix | out-file -filepath “<File Path>”


Microsoft Windows PowerShell – List Microsoft Active Directory Group Members

This script will list the name and account name of each user within an Active Directory group and provide the output of the results in a file and directory of your choice.

Example: Get-ADGroupMember -identity “<Group Name>” | Select Name, SamAccountName | out-file -filepath “<File Path>”


Microsoft Exchange Server 2010 – Installation

You may use the following steps to install Microsoft Exchange Serer 2010 (Hub Transport, Client Access and Mailbox roles). The preinstallation tasks were completed in the previous (2) posts.

1. Run the SETUP.EXE file on the Microsoft Exchange Server 2010 media.

01

2. On the screen below click Step 3: Choose Exchange language option then select Install only languages from the DVD.

02

3. Click Step 4: Install Microsoft Exchange.

03

4. On the Introduction screen click Next >.

04

5. On the License Agreement screen select the option that says I accept the terms in the license agreement and click Next >.

05

6. On the Error Reporting screen select No and click Next >.

06

7. On the Installation Type screen select the Typical Exchange Server Installation option and click Next >.

07

8. On the Client Settings screen select No and click Next >.

08

9. On the Configure Client Access server external domain screen do not select the option that says The Client Access server role will be internet-facing and click Next >.

09

10. On the Customer Experience Improvement Program screen select I don’t want to join the program at this time and click Next >.

10

11. After the Readiness Checks screen completes successfully click Install.

11

12. On the Completion page verify that Exchange Server 2010 installed successfully (Successfully installed. No errors.). Then click View Setup Log to view the log then click Finish.

12

13. On the Microsoft Exchange Server 2010 splash screen click Close.

13

14. Additionally, close the Exchange Management Console.

14

15. Open the Exchange Management Shell and enter the following command Get-ExchangeServer EXCHANGE01 | Format-List Name,Domain,Site,fqdn,ServerRole. In this example the hostname is EXCHANGE01 so you may need to substitute that value with the hostname that you have chosen. Additionally, verify that the output is similar to what you see below.

15

16. Lastly, restart the server.

This completes in the installation of Microsoft Exchange Server 2010.


Microsoft Exchange Server 2010 – Preinstallation Tasks

Prior to installing Microsoft Exchange Server 2010 server on Windows Server 2008 R2 Enterprise Edition (exchange01.root,sysadmin.net) you want to install Microsoft Filter Pack 2.0 x64 and import a number of Microsoft Windows PowerShell modules.

1. Verify the installation of Microsoft Filter Pack 2.0.

01

2. Next, open a Microsoft PowerShell, in an elevated session, and execute the following commands then restart the server.

05

3. Again, open a Microsoft PowerShell, in an elevated session, and execute the following commands then restart the server.

06

 

This completes the preinstallation tasks.


Microsoft Exchange Server 2010 – Microsoft Active Directory Domain Preparation Tasks

The following tasks are used to prepare the AD infrastructure for the deployment of Microsoft Exchange Server 2010. This Microsoft Active Directory (AD) domain is utilizing the Windows Server 2008 forest and domain functional levels.

1. Use the run dialog box and change the current directory to that which contains the Microsoft Exchange Server 2010 setup files (in this example it is D:) and run the command D:\Setup /PrepareSchema.

01

2. Repeat the instructions from step 1 but use the following command instead D:\Setup /PrepareAD /OrganizationName:ROOTMAIL.

02

02-1

3. Verify the completion of these commands by viewing the new Microsoft Exchange Security Groups organizational unit (OU) in your AD domain (ROOT.SYSADMIN.NET).

03

4. Repeat the instructions from step 1 but use the following command instead D:\Setup /PrepareAllDomains.

04

04-1

5. Verify that the D:\Setup /PrepareAllDomains command completed successfully by viewing the Microsoft Exchange Systems Objects container in the AD domain and that the Exchange Install Domain Servers security group is located in this container.

05

This completes the configuration.

 


BIND – Create a Bind Zone File

You may use the following website to automatically create a BIND zone file.

Enjoy!


Microsoft Windows PowerShell – Configuring iSCSI Initiator Connections with Windows Server 2012 R2

You may modify the script below to automate the process of configuring an iSCSI Initiator with the Windows Server 2012 R2 operating system.

01