Sunday, 14 August 2016

Azure Backup error 2145124329 incompatible with SBS 2011 & Exchange Server 2010

When installing Azure Backup on to SBS 2011, the installation fails with Error 2145124329, and does not complete. It appears Windows Management Framework 3.0 is required for the Azure Backup agent to install correctly, however Exchange 2010 does not support WMF 3.0.

This article goes into better depth on what issues WMF 3.0 causes on SBS/Exchange;



Luckily I have just completed migrating all the e-mail from Exchange 2010 to Exchange Online, therefore I uninstalled Exchange. Once this was uninstalled, I then manually installed the WMF 3.0 and the Azure Backup Agent install completed successfully. 

Interestingly enough WMF 3.0 did break the SBS Console (but who cares because it's horrible anyway)! Moral of the story is, if you are using SBS 2011 and can't rip Exchange off the box you can't use Azure Backup.

Wednesday, 10 August 2016

Remove Office 365 Domain with Force

After working with Office 365 for almost 3 years I have finally decided to get (and pay for) my own tenancy. I am sick of rebuilding O365 tenancies for demo's and testing every time the 30 day trial runs out. With my new "legit" tenancy I can permanently have ADFS etc configured for my lab domain.
Over the last 18 months I have probably had 10 different O365 tenancies for different customer proof of concepts. For these to be successful you often need a unique domain name, of which I own plenty. I tried to configure my "ryanbetts.co.uk" domain to my new tenancy and received an error as it was currently associated with another tenancy.
The process of removing the old domain is straight forward, if you have access to the old tenancy.
1. Change the primary domain
Set-MsolDomain -Name "sysupdemouk.onmicrosoft.com" -IsDefault
You must set the .onmicrosoft.com domain to the default for your tenancy, otherwise you will get an error when you try to remove your unique domain name.
2. Review which users currently use the unique domain
Get-MsolUser -DomainName "ryanbetts.co.uk"
This command will show you all the users that are currently using the unique domain you are trying to "seize".
3. Remove any users currently using the domain
Remove-MsolUser -UserPrincipalName test1@ryanbetts.co.uk -Force
If any user accounts have your domain configured to be their primary UPN suffix, you must first either delete the user or change their UPN to the .onmicrosoft.com domain. If you have user accounts synced from Active Directory this command will not work for they accounts.
In my old tenancy the AD Sync was completely blown therefore I could not make the changes in AD. To get around this problem manually set the synced user accounts back to the .onmicrosoft.com domain.
4. Remove the unique domain from O365
Remove-MsolDomain -DomainName "ryanbetts.co.uk" -Force
This command will actually remove the unique domain from the O365 tenancy. If you are trying to bind the domain to another O365 there can be some latency in the O365 service realizing that you have removed it from an old tenancy.

Monday, 8 August 2016

Failed Microsoft MCSA 70-347.........PowerShell not up to scratch

Last Friday (5th August 2016) I narrowly missed the pass mark and failed the MCSA exam 70-347 “Enabling Office 365 Services”. This is the second exam required to become MCSA certified in Office 365.

Firstly, it’s been over a year since my last Microsoft exam, secondary I was surprised at how difficult this exam was. I was arrogantly thinking with almost 3 years deploying Office 365 (+ 5 with Exchange/Lync/SharePoint) that this would be fairly easy. How wrong I was, the exam focuses on the deeper configurations around Exchange Online, SharePoint Online and Skype for Business Online.  Which means only one thing in a Microsoft exam, loads and loads of PowerShell.

Microsoft have introduced this new question type in the form of a case study in which they give you x amount of questions with a PowerShell command in it, and they simply ask you for a “Yes/No” response to whether it will achieve a stated task.

Reviewing my score report my weakest areas were;

·        Manage anti malware and ant-spam policies
·        Plan a collaboration solution
·        Plan for Exchange Online

As I review the exam blue print it appears I need to work on the following areas;

·        Exchange Online Archiving
·        Legal and Litigation Holds
·        eDiscovery across Exchange & SharePoint
·        ActiveSync Policies
·        Mailbox migration strategies
·        Span and anti-virus policies and ATP
·        SIP domains, addresses and routing
·        Mailbox permissions
·        SFB presence, external communications
·        SFB push notifications
·        SFB non-archival and eDiscovery integration
·        SharePoint site collection permissions, quota’s, provisioning

All in all it’s quite an exhaustive list, I do not feel particularly weak in these areas as I consult with customers on a daily basis around most of them.  

That being said, do I type and troubleshoot PowerShell commands around these topics on a daily basis……………. NO. Do I have a strong grounding in PS, YES.

Moral of the story, if you are doing ANY Microsoft exam, make sure you go PowerShell’ed to the teeth or you will undoubtedly fail.

The plan is to reload for this coming Friday and hopefully clear the exam. 

Thursday, 4 August 2016

Configuring Modern Authentication for Exchange Online and Skype for Business Online

Modern Authentication for Office 365 is based on Active Directory Authentication Library (ADAL), which allows Office 2013 (not enabled by default) and Office 2016 (by default) to use modern authentication instead of basic Windows authentication. Modern Authentication provides additional support for SAML & Multi Factor Authentication. Currently with Office 2013, and Outlook if MFA is enabled for a user, App Passwords are required to allow access to the desktop Office applications as they are using Basic authentication.
What are Azure App Passwords?
Modern Authentication in Office 365, which was released from preview in March 2015 removes this constraint. If enabled users no longer have to maintain App Passwords in order to use the Office ProPlus desktop applications.
By default Modern Authentication is enabled for SharePoint Online, Exchange and Skype for Business.  
Modern Authentication (default settings update Nov 2017)
·        Exchange Online - On
·        SharePoint Online - On
·        Skype for Business Online - On
Both Office 2013/2016 support Modern Authentication. Office 2013 does not have it enabled by default, it must be enabled by making a Registry edit.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\15.0\Common\Identity\EnableADAL = Value 1
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\15.0\Common\Identity\Version = Value 1
In Office 2016 this is enabled by default.
PowerShell Sessions
To successfully run these commands you must first create PowerShell connections to each of the services, for assistance on this review this blog post;
Exchange Online
 Get-OrganizationConfig 


Set-OrganizationConfig -OAuth2ClientProfileEnabled:$true
Skype for Business Online
 Get-CsOAuthConfiguration 

 Set-CsOAuthConfiguration -ClientAdalAuthOverride Allowed 

Creating sessions to Exchange Online, Skype for Business Online and SharePoint Online

This blog post is based upon this one from Microsoft, except I have simplified it;


Although the link above, does open up sessions to all of the services from a single window, this allows you to pass commands around, which you cannot do if individual sessions are open.

Exchange Online

$Creds = Get-Credential
$ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Creds -Authentication Basic -AllowRedirection

Import-PSSession $ExchangeSession

Skype for Business Online

Download and install the Skype for Business PowerShell modules;

https://www.microsoft.com/en-us/download/details.aspx?id=39366

$Creds = Get-Credential
Import-Module LyncOnlineConnector
$SFB = New-CsOnlineSession -Credential $Creds

Import-PSSession $SFB

SharePoint Online

$Creds = Get-Credential
Connect-SPOService -Url https://domain.sharepoint.com -credential $Creds

Wednesday, 3 August 2016

Playing with Office 365 Groups

What are Office 365 Groups?
Microsoft "A distribution list is a set of email addresses. You can use the distribution list to send an email message or meeting invitation to all the addresses at once. An Office 365 group includes a distribution list but also includes a shared:
·        Inbox for group email communication
·        Calendar for scheduling group meetings and events
·        Library for storing and working on group files and folders
·        OneNote notebook for taking project and meeting notes
Planning tool for organizing and assigning tasks and getting updates on project progress."
Open the Exchange Online Admin Console, click Recipients and Groups.

Click the Add button and select Office 365 Group.

Input a Group Name, and Group Email Address, for some reason inside the GUI you cannot change the Group's primary SMTP address away from the onmicrosoft.com domain. This can be done using the following PowerShell command;
 Set-UnifiedGroup -Identity "Group Name" -PrimarySmtpAddress rbdemo@domain.com


The Privacy settings are not for external privacy, these are to control who from inside the organization can join the Office 365 Group without authorization. PowerShell command to configure this.
Set-UnifiedGroup -Identity "Group"  -AccessType Private
The Subscriber Newsletter option, if enabled ensures that users personal email accounts are kept up to date with the events happening at a group level. 


You configure who is automatically added to the group at creation. If you set the Privacy to Public, users can auto discover and enroll into the group.
Set-UnifiedGroup -Identity "Group"  -AccessType Public


The option to have users who are members of the Office 365 Group Send As the group is available. This means any mail sent from this user, will appear to have come from the group and not the individual.
$group = "RB Demo"
$user = "jblue"
$365Group = Get-Recipient -RecipientTypeDetails groupmailbox -Identity $group
Add-RecipientPermission -Identity $365Group.Name -Trustee $user -AccessRights SendAs 


This setting in Exchange is often confused with Send on Behalf, in which the users identity is displayed even if they are sending from another users mailbox.

By default an Office 365 Group does not access e-mails from external recipients, however you can configure this by using the following command;
 Set-UnifiedGroup -Identity "Group" -RequireSenderAuthenticationEnabled $false 


The Office 365 Group pane is pretty nice, you can view Conversations, Calendars, Files (hosted on OneDrive), Notebook (OneNote) and Connectors to services such as Trello for resource management. 

Office 365 Group files are hosted by your SharePoint Online tenancy, therefore you might want to set storage quota's on each group to ensure they do not consume too much data storage from your SharePoint Online.
The Office 365 Group is provisioned with it's own SharePoint Online site using the following convention;
Most SharePoint Online tenancies are configured to use Automatic storage pooling. If you want to configure an Office 365 Group with a quota, this must be set to manual. 

The following commands can be used to set a quota on the OneDrive file storage for an Office 365 Group, if the SPO is set to Automatic Storage Management, this command will fail.
 $365Group = Get-SPOSite –Identity https://domain.sharepoint.com/sites/groupname
Set-SPOSite –Identity $365Group -StorageQuota 3000 -StorageQuotaWarningLevel 2000 

Tuesday, 2 August 2016

Office 365 Exchange Online - Delegate Mailbox Permissions

Mental note for me, as I am studying for MCSA 70-347. 

# Send As Permissions for jblue, allowing jgreen to Send As. No indication the message was send by the delegate.

Add-RecipientPermission "jblue" -AccessRights SendAs -Trustee "jgreen" 

# Full Access for jblue, allowing jgreen to have Full Access to the jblue mailbox. Please note messages cannot be send by the delegate.

Add-MailboxPermission -Identity "jblue" -User "jgreen" -AccessRights FullAccess -InheritanceType All

# Send Behalf, allows the delegate to send on behalf of the orignal user but does not hide their identity.

Set-Mailbox -Identity "jblue" -GrantSendOnBehalfTo 
"jgreen"

https://www.dropbox.com/s/9c8b3nckid299h3/Exchange%20Online%20Permissions.ps1?dl=0

Sunday, 3 July 2016

ADFS & NetScaler Video Training Course by Ryan Betts

I have produced and released the first 4 videos in my ADFS & Citrix NetScaler training course. The purpose of this course is to give administrators all the hands on skills required to deploy ADFS on Windows Server 2012 R2 with Citrix NetScaler for HA and load balancing. The course purposely does not cover the theory related to ADFS, it simply provides a reference architecture with example on network configurations etc. 

The videos released so far are;
  • Video 1 - ADFS Topology Overview, Certificates and Installing ADFS
  • Video 2 - High Availability Concepts and Clustering with ADFS
  • Video 3 - Web Application Proxy (WAP) Configuration & NetScaler Networking
  • Video 4 - Citrix NetScaler Configuration for ADFS/WAP Pairs
I have not yet completed the remaining videos in the series, but will in the next couple of days, the next videos are going to be;
  • Video 5 - Implementing AD Connect & Federating to Office 365
  • Video 6 - Client Settings for ADFS
  • Video 7 - Architecting ADFS on Azure for DR Purposes
  • Video 8 - Reverting Federation if ADFS Fails
The reason I have produced this course is due to the vast amount of messages I have received on the back of this blog post http://blog.ryanbetts.co.uk/2015/06/configuring-citrix-netscaler-to-load.html unfortunately I have some how lost the PDF version of this guide I made in 2015. Therefore I have replaced it with a full video course.

If you have found any of my articles interesting please consider nominating me as a Microsoft MVP ;)


  • Video 1 - ADFS Topology Overview, Certificates and Installing ADFS


  • Video 2 - High Availability Concepts and Clustering with ADFS


  • Video 3 - Web Application Proxy (WAP) Configuration & NetScaler Networking


  • Video 4 - Citrix NetScaler Configuration for ADFS/WAP Pairs


Friday, 27 May 2016

Base Configuring an F5 Big-IP with LTM Module Device

You can get a trial of the F5 Big-IP device from their website, it provides a full Big-IP device (with the LTM module) for up to 90 days from the date of activation. I am looking to load balance Exchange 2016 and VMware View through a pair of Big-IP's with the LTM module so I thought I would spin it up and get it working in my lab prior to doing it for real. The Big-IP is much like Citrix NetScaler in the sense that it's an Application Delivery Controller, therefore many of the concepts are the same. I am using VMware Workstation, the Virtual Appliance is available for VMware, Citrix and Hyper-V. I have found the OVA hardware spec is a little low, the box seems to be pretty slow if you leave it at 2Gb of memory, I would recommend upping it to 4Gb.
Import the OVA into either vSphere or VMware Workstation.
Configure the Network Interfaces
·        vmnet0 - bridged (mgmt)
·        vmnet1 - host only (int)
·        vmnet2 - host only (ext)
·        vmnet 3 - host only (ha)
Your network topology could of course be different, I am choosing to build a topology close to the one I will be deploying the devices into in live. Obviously if you are deploying physical appliances instead of putting interfaces on to logical networks in VMware, you would have each of your interfaces in the corresponding VLAN's.
The default credentials for the vAppliance are root/default.

Type "config" at the initial prompt to launch the initial configuration utility. You can use native Linux commands such as ifconfig to set the mgmt address etc, but this way is easier.

In VMware I have found that the F5 sometimes screws up the order of the vnic's that are attached to the VM. Therefore I would recommend attaching a single vnic to the appliance, configuring your mgmt address then attaching the other vnics when you know what interface the F5 is interpreting as it's mgmt interface.

If you are having issues with the order of your network interfaces use the netstat -i to display all the physical interfaces that F5 has. In F5 TMOS mgmt IP's are also known as Self IP's, these are the much like NSIP's on the NetScaler platform.
The web interface has a different set of credentials admin/admin out of the box.

Before you can do anything you have to license the F5. Under Setup Utility and click Next.

Select the method of activation that suits you best. My F5 did not have a route to the Internet at this stage so I opted for the manual method. The Registration Key is the code F5 provide to you within an e-mail at the time you download a trial.

After a minute of so the verification will complete and you are free to start configuring some of the F5 features. The trial license comes with the Local Traffic (LTM) and Application Visibility and Reporting modules.

Problem
After bouncing my F5 a couple of times I started getting this when I logged in via the web interface "The Big-IP system has encountered a configuration problem that may prevent the configuration utility from functioning properly". I never managed to work out why, other that the F5 was shut down incorrectly. I just re provisioned another F5 device.


Thursday, 26 May 2016

Configuring Active Directory Activation with KMS

Active Directory Activation makes it possible to store activation object within the Active Directory schema, therefore simplifying the management of licenses within a Windows-based infrastructure. Although in some environment Key Management Service (KMS) will probably still be required, as AD Activation is only supported on Windows 8/Server 2012 and above at this time. Traditionally KMS has been a nightmare service to manage due to it being managed entirely from the CLI. It looks like Microsoft are trying to move away from this with AD Activation being the replacement.
Please note - KMS and Active Directory Activation CAN be running simultaneously.
If you have a mixed environment with KMS & AD Activation the activation order is;
·        Active Directory-based Activation
·        KMS Activation
·        MAK Activation
There are not many requirements for Active Directory Activation, the only one is that you have at least one Domain Controller in your domain running Windows Server 2012 or later, this ensure the domain has the 2012 schema extensions. This should not be confused with the domain/forest functional levels.
Domain Controllers running older versions of Windows Server can still participate in AD Activation as the objects are replicated to the entire schema.
Install the Volume Activation Services (VAS) from Server Manager, it is a Server Role.

Once installed click VA Services, right click and select Volume Activation Tools.

Click Next on the Introduction to Volume Activation Services wizard pane.

Click Active Directory-Based Activation and click Next.

Paste in your KMS key into the Install your KMS Host Key dialog box. If you have to install multiple KMS keys, which you probably will as there are separate keys for Windows 8, Windows Server etc you must run through this part multiple times. When you do this the wizard writes to the AD schema.

The KMS Keys have to be validated by either phone or over the Internet. 

Once the wizard has completed you can check by using ADSI Edit open a connection to the Configuration Container. 

Expand CN=Configuration/CN=Services/CN=Microsoft SPP/CN=Activation Objections if you are running AD-based Activation for the first time this should now exist. If you have added multiple KMS keys there will be multiple entries in the CN=Activation Objects directory.

The Software Protection service on Windows looks for the AD-based Activation, to check if your devices are being activated by AD Activation restart and then run slmgr /dli