Skip to content

Category: PowerShell

Enable Remote Desktop Using PowerShell

Enable Remote Desktop Using PowerShell Open an elevated Windows PowerShell session and run the following commands. This first one creates the fDenyTSConnections value and sets it to 0 (off). This makes sense, because we don’t want to deny Terminal Services (TS) connections.

Set Network Level Authentication for Remote Desktop

Setting Firewall Rules :…

Leave a Comment

Exchange 2010 MessageTrackingLog: Failed to write log..Error Access Denied

Exchange 2010 MessageTrackingLog: Error Access Denied Message Tracking in Exchange 2010 Stopped and you received the following Error in EventViewer. “MessageTrackingLogs: Failed to write logs because of the error: Access to the path ‘MSGTRK20170329-8.LOG’ is denied..” Let’s Start by reviewing the Current configuration for Message Tracking.

Now that you have your current configuration lets…

Leave a Comment

Exchange Deployment Assistant Quick Overview

Exchange Deployment Assistant Quick Overview Exchange deployment tool creates a custom step by step checklist to help you deploy Exchange in different types of scenarios. The tool can be found Here. Click on Launch the Deployment Assistant. From the next screen you will have 3 different options to choose from On-Premises ,Hybrid ,Cloud Only. Details…

Leave a Comment

Deploy Active Directory Domain Using PowerShell

Deploy Active Directory  Domain using PowerShell Let’s start by Setting the PowerShell Execution Policy to Unrestricted

Next we will rename the server and install Prereq features.

After the script has run successfully the sever will restart , once restarted launch the #PowerShell Console again and run the second script. This will install all…

Leave a Comment

User Account has been Disabled :Exchange 2010 OWA

Exchange 2010 OWA : User Account has been Disabled. After a users account has been disabled for some time and re-enabled , they might be faced with the below error in Outlook and OWA. Outlook Error OWA Error To resolved this issue you can open ‘Exchange PowerShell’ and the the following #OneLiner

  Once…

Leave a Comment

Bulk Enable ActiveSync Exchange PowerShell

Bulk Enable ActiveSync using Exchange PowerShell Lets Start by search for all Mailboxes with ActiveSync Disabled. Open Exchange Powershell and Type the following.

Now that we have a list of Users with ‘ActiveSyncEnabled’ set to ‘false’ , lets change this and Enable ActiveSync for these Users.

Once done all users will have ‘ActiveSyncEnabled’…

Leave a Comment

PowerShell – Execution of Scripts is Disabled on this System

Execution of Scripts is Disabled on this System When you try and run a #PowerShell Script and you are faced with the Error “Execution of Scripts is Disabled” The quick work around for this is to change the current Execution Policy using the following. Lets Change the Execution Policy by running a #OneLiner

On…

Leave a Comment

The-Term ‘Clean-Mailboxdatabase’ is not a recognized cmdlet,function, script Exchange 2013

Clean MailboxDatabase Command no longer Valid on #Exchange 2013

Command has  been decommissioned for Exchange 2013 and replaced with Update-StoreMailboxState http://technet.microsoft.com/en-us/library/jj860462(v=exchg.150).aspx Update-StoreMailboxState require the GUID of a mailbox to execute so it usually easier to run in combination with Get-MailboxStatistics like the example below Get-MailboxStatistics -Database MDB02 | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid…

Leave a Comment

Find Exchange Mailboxes with Automatic Email Address Policy set to $False

How to Find all User Mailboxes with Auto Email Address Policy Removed. Let’s have a look at what the settings in Exchange Management Console looks like. Let’s start by running a quick one liner to search for all these users.

Next we can see the results output That was a quick one liner ,but…

Leave a Comment