Express installation of Azure AD Connect
| | | | | |

Express installation of Azure AD Connect

Express installation of Azure AD Connect Tool Can be downloaded from Here Sign in as a local administrator to the server you wish to install Azure AD Connect on. You should do this on the server you wish to be the sync server. Navigate to and double-click AzureADConnect.msi. On the Welcome screen, select the box agreeing…

Installing Exchange 2016
| | | | |

Installing Exchange 2016

Windows Server 2012 and Windows Server 2012 R2 prerequisites The prerequisites that are needed to install Exchange 2016 on computers running Windows Server 2012 or Windows Server 2012 R2 depends on which Exchange role you want to install. Read the section below that matches the role you want to install. Role: Mailbox server role. Let’s…

Enable Remote Desktop Using 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-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server’ -Name fDenyTSConnections -Value 0 Set Network Level Authentication for…

Get and Connect a Disconnected Mailbox Using PowerShell
| | | |

Get and Connect a Disconnected Mailbox Using PowerShell

Get and Connect a Disconnected Mailbox Using PowerShell   To quickly find all disconnected Mailboxes in your Exchange environment launch EMC and run the following one liner. Get-MailboxStatistics -Server ThaLazyExMBX01| where { $_.DisconnectDate -ne $null } | select DisplayName,MailboxGuid,Database,DisconnectDate The Results will look as follow: Now that we have the results lets refine the search…

Exchange 2010 Mail User still Associated with a Move Request
| | | | | |

Exchange 2010 Mail User still Associated with a Move Request

Exchange 2010 Mail User still Associated with a Move Request Mail User Object in Exchange still showing as if it is listed to a Move Request To verify if we have any Move requests currently in progress or completed we can start by Opening the Exchange Shell. Once the EMS is open type the following…

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

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. Get-TranSportServer |ft Name,MessageTrackingLogEnabled,MessageTrackingLogPath,MessageTrackingLogMaxAge,MessageTrackingLogMaxDirectorySize, MessageTrackingLogMaxFileSize,MessageTrackingLogSubjectLoggingEnabled Now that you have your…

Deploy Active Directory Domain Using PowerShell
| | | |

Deploy Active Directory Domain Using PowerShell

Deploy Active Directory  Domain using PowerShell Let’s start by Setting the PowerShell Execution Policy to Unrestricted Set-ExecutionPolicy Unrestricted Next we will rename the server and install Prereq features. #rename the computer $newname = “LAB-DC-01” Rename-Computer -NewName $newname -force< #install features $featureLogPath = “c:\softlib\Shell\poshlog\featurelog.txt” New-Item $featureLogPath -ItemType file -Force $addsTools = “RSAT-AD-Tools” Add-WindowsFeature $addsTools Get-WindowsFeature |…

User Account has been Disabled :Exchange 2010 OWA
| |

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 Get-MailboxDatabase -Identity ‘DataBase01’…

Bulk Enable ActiveSync Exchange PowerShell
| |

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. Get-CASMailbox -Resultsize Unlimited | Where-Object {$_.ActiveSyncEnabled -eq $false} Now that we have a list of Users with ‘ActiveSyncEnabled’ set to ‘false’ , lets change this and Enable ActiveSync for these Users. Get-CASMailbox…

PowerShell – Execution of Scripts is Disabled on this System
| | |

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 Set-ExecutionPolicy Unrestricted…

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

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

Clean MailboxDatabase Command no longer Valid on #Exchange 2013 Clean-MailboxDatabase 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…

Find Disconnected Mailboxes Exchange 2013
| | | |

Find Disconnected Mailboxes Exchange 2013

Get Disconnected Mailboxes Exchange 2013 EAC and #PowerShell By using the EAC (Exchange Admin Console) In the EAC, navigate to Recipients > Mailboxes. Click More , and then click Connect a mailbox. … Click the disabled mailbox that you want to reconnect, and then click Connect. Lets look at doing the same with #PowerShell :  …