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 :  …

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

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. Get-Mailbox -ResultSize Unlimited | Where {$_.EmailAddressPolicyEnabled -eq $False} Next we can see the results output…

Rename Server using #Powershell
| | |

Rename Server using #Powershell

Rename Windows Server Name using #PowerShell Being in the #LazyAdminMode lets rename our server using #PowerShell Lets start by opening  #PowerShell  and type Rename-Computer NewComputerName and that is it 🙂 quick and easy #LoveIt Next lets restart the Server using #PowerShell  to apply the new name by typing Restart-Computer   To get more information regarding…

Windows Domain Join using #PowerShell
|

Windows Domain Join using #PowerShell

Here is a quick How-To Join a “Windows Server 2012” to Windows Domain using #PowerShell Lets start by launching #PowerShell and Type Add-Computer DomainName.local 2. Next we are prompted for valid credentials to Join the Server to the domain. 3.  After Adding the credentials you will be prompted with a Warning Message saying you need…

PowerShell Training

PowerShell Training

How to get a good introduction to PowerShell. There is a lot of different information available related to  PowerShell but the #Question still remains where do you start ? What helped me find my way around PowerShell was to make it part of my #daily routine meaning i started doing the following. Check Exchange Mailbox Permissions…

Manually Update GAL in Office 365
| |

Manually Update GAL in Office 365

In this Article i will show you how to “Manually” update the AddressList in Office 365 First thing you should do is to connect Exchange Online via #PowerShell $O365Cred = Get-Credential Now type your global administrator login details, then Create a PsSession to Office 365 as follow. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential…