Exchange 2013 OWA:400 Bad Request

Exchange 2013 OWA:400 Bad Request, ECP Scrambled, ECP Could not load file or assembly ‘Microsoft.Exchange.Common,

To resolve this error after doing some digging around I found that I need to

Open IIS Manager on the client access server

Sites -> Exchange Back End ->ECP -> Application settings (in the middle of the screen)

Double click on BinSearchFolders and replace the value with:

C:\Program Files\Microsoft\Exchange Server\V15\bin;C:\Program Files\Microsoft\Exchange Server\V15\bin\CmdletExtensionAgents;C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa\bin

Restart IIS then do the below;

  1. Login to your Exchange 2013 CAS server
  2. Start the Exchange Management Shell
  3. Type cd “C:\Program Files\Microsoft\Exchange Server\V15\Bin\”
  4.  Type UpdateCas.ps1 Windows PowerShell script and wait a few moments.
    This script will rebuild your OWA interface.
  5. Type UpdateConfigFiles.ps1
  6. Now reload your webpage and everything should be sorted!

 

 

 

Deploy Windows Movie Maker through Group Policy (GPO)

I have created this guide for the roll out of Windows Movie Maker through Group Policy (GPO)

Unfortunately Movie Maker is not supplied in an MSI file so we need to use the .exe to deploy it.

For this case we will need the Offline installer file which can be downloaded from the link below

http://g.live.com/1rewlive5-all/en/wlsetup-all.exe

Once this has been downloaded you will need to place it in a network share which is accessible to all computers with the “Everyone” user group permissions.

Example: \\SERVER\Support\Deployment    <—Place your exe inside that folder

 

We now want to create a new Organisational Unit in Active Directory to TEMPORARILY place the computers in while we do the install. This is so that the computer doesn’t try to install the software each time it boots up.

 

-The second stage of the deployment is the creation of the Group Policy

Open up a blank notepad document and paste in the following command and chance the part in bold to the server path you made earlier. You can see that after the file path are various switches to make the install silent.

\\SERVER\Support\Deployment\wlsetup-all.exe” /AppSelect:MovieMaker /NOToolbarCEIP /NOhomepage /Nolaunch /NOMO /nosearch /q

Now click File > Save As and make sure it is saved as a .bat file (make sure you save this in a place easily accessible for the time being e.g. Desktop)

 

 

Calendar not syncing correctly on Exchange with iPhone

There seems to be a slight issue with iOS7+ which causes a calendar syncing problem where the phone randomly syncs  different calendar events. I’ve seen this mainly on the iPhone 6 but has also happened on the 5S

****Before continuing make sure you have the server details to recreate the account****

To fix this you’ll firstly need to remove the entire exchange active sync account from the iPhone.

To do this you’ll need

Click on “Settings”

b01d9cf2-07cb-4eb3-91d8-f75e56124a8d

Then Click on “Mail, Contacts, Calendars”

 

17428150-a809-4aff-8888-36cc4898b162

Then Select your Exchange account and click Delete Account at the bottom of the page

Now that’s deleted the connection with Exchange will be broken. We need to make a new Exchange partnership so we will need to remove the previous connection from Exchange too.

In the Exchange Management Console (EMC)

Go to Recipient Configuration –> Mailbox –> Highlight the user who is having the issues.

On the right you will see the screen below, select “Manage Mobile Phone”

 

exchangeright

Now you will see the iPhone in there so select it and then click remove.

If the EMC gives you an error saying that the remote device cannot be found you will need to go to the Exchange Management Shell and type in the following commands

Get-ActiveSyncDeviceStatistics -Mailbox [email protected]

This will produce an output. On there you will see a “guid” right click and select “mark” then highlight and right click.

The paste in this command;

Remove-ActiveSyncDevice -Id paste your guid here

Now that is completed exit out and then refresh the Manage Mobile Phone screen and you’ll see that the phone is gone.

Now follow this guide below to recreate the account on the iPhone

Setting up an Exchange account on IOS7/8

Controlling a relay using the Arduino

First of all you will need the following; an Arduino, Arduino Relay Module, Wires  and a 240v electrical appliance you wish to control the power to. ( You may notice the Ethernet Module of my Arduino) This is for the next guide which will show you how to control the relay using ethernet but whether you have this module or not this guide will still apply.

IMG_2528

 

Okay no that we have our kit, the first thing we will need to do is connect the relay to the Arduino as shown below

IMG_2529

You will need 3 cables.

Cable 1 Goes from GND on the Arduino to GND on the relay

Cable 2 Goes from Pin 7 to IN1 on the relay

Cable 3 Goes from 5V on the Arduino to VCC on the relay

 

Once that is done you will need to upload the following code to your Ardwino Uno (Don’t forget to select the COM port if you get an error with the upload)

 

#define RELAY1 7
void setup()

{
Serial.begin(9600);
pinMode(RELAY1, OUTPUT);

}

void loop()

{

digitalWrite(RELAY1,0); // Turns ON Relay
Serial.println(“Light ON”);
delay(3000); // Wait 3 seconds

digitalWrite(RELAY1,1); // Turns Relay Off
Serial.println(“Light OFF”);
delay(3000);

}

 

This is the main part completed now and will now require us to wire up our AC appliance.

 

 

Loading Codes onto the Arduino

If you have followed my previous guide you should have the Arduino software up and running on your computer.

When first opening the Arduino software it’ll have some basic instructions on how to get started with coding

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}

Above is some basic code to turn an LED off and on again. You can see from the code that it is only using a few functions to do this task, which are;

void loop (which runs the code over and over again anything which is between the { and } which come after it

digitalWrite (which is used for sending a command to a pin it is formatted in the brackets (pinnumber,COMMAND)

delay follow by the time before running the next command (this is measure in 1/1000th of a second)

Another useful thing to know “/” is used to comment out text or numbers which don’t need to be run by the Arduino when it is processing the code.

Once you are happy with your code use the “Tick” to verify it followed by the “Arrow” to upload it to the Arduino chip

Arduino Download and software configuration

The Arduino software is a very powerful piece of kit which not only works with the Arduino Uno but other devices such as clone’s of the Arduino and every other edition’s on the Arduino. It is Mac, Windows and Linux compatible and I’ve included the download links for each installer at the bottom of the page.

Once Installed you will find that it is a very simple piece of software with a few buttons. It has a range of pre installed code’s which can be loaded onto the Arduino for testing, examples etc.

On Mac you will find that you need to select which COM port is being used you can see how to do this from the image below

Screen Shot 2015-04-15 at 19.14.06

 

Once you have selected the port you should be good to go on to the next step of loading code’s onto the Arduino

Windows Download

Mac Download

 

Word 2007 and 2010 opening files read only

This is something that I have seen various times which cause users inconvenience.

It’s a really simple fix and  all that is require is the following:

Windows 7;

Go to Start > Computer > In the top right hand corner you will see the preview pane button next to the question mark (help button)

Windows 8;

Go to Start > Type “Computer” > press Enter

In the top right click the arrow underneath the “X”

Click on the view tab and de-select the “Preview Pane”

 

 

Provisioning Windows Server 2008 R2

Now that you’ve installed Server 2008 R2 and you’re at your desktop. You’ll want to get a few things provisioned so that everything is ready for installing your roles.

Firstly, I would make sure that you have set a static IP Address

Click on Start > Control Panel > Network and Internet > Network and Sharing Center > Network Connections

Click on Change Adapter Settings

networkandsharing

Right click on the network adapter and select properties

changeadapterprop

Select Internet Protocol Version 4 and Click Properties

ipv4prop

Fill in your IP address details and click on OK

 

Installing Server 2008 R2

Server 2008 R2 Is a great server operating system with many powerful features. The installation is very simple and this is the first of a series of guides based on Windows Server 2008 R2.

– Firstly you want to boot into the ISO or Disc depending on how you are installing. In this environment I’m installing on a virtual machine.

-You will be presented with this screen to chose your language options

firstscreen

 

-Secondly you will be asked to Accept the License agreement

nextscreen2

 

-Thirdly you will be asked “Upgrade” or “Custom”. Select Custom unless this is an upgrade of an existing server

screenthree

 

-Now select the disk which you would like to install Windows Server onto and click next

*****You may also want to specify your partitions here by clicking on Advanced Options****

 

diskmanage

 

– Once you have clicked next you will be presented with the following screen which will install then require no user interaction until you are prompted for an admin password. (This usually takes around 30 minutes depending on your hardware)

 

installation