Youtube movies not playing full screen in Chrome

I’ve had an annoying problem with chrome (version 33.0.1750.146) which was that I could not play Youtube Video’s in full screen mode. The video would not be full screen (only a part of the screen) and it would stop playing (but the audio kept on going). This problem was actually caused by Flash.
If you have this problem try this:

  • browse to chrome://plugins/ in chrome
  • Open details (there is a button for it at the right part of your screen)
  • find the plugin Adobe Flash Player
  • disable pepflashplayer.dll
  • restart chrome and it should be ok now

image

(I just have to see now, what I broke and what doesn’t work anymore due to this fix).

SQL: backup / restore DB status

A nice script I found to use when you are backing up /  restoring a SQL database and you want to see the progress.

 

PowerShell: compare 2 directory’s

Comparing two directory’s and listing the differences

 

Original source: Jeff’s Blog

Powershell: Set default printer based on IP address

Simple – quick and dirty’ Powershell script to change your default printer based on the location where you are (i.e. @home or @work)

 

O365: delivery restriction Distribution Group

If you have a synced distributiongroup from your on-premise environment to your office 365 environment and you can not send from an external account to your distribution group, it might be because only authenticated users” are able to send to this address.

Changing this inside your Exchange O365 portal  will result in:

The action ‘Set-DistributionGroup’, ‘RequireSenderAuthenticationEnabled’, can’t be performed on the object ‘DG_PRTG.Notificatie’ because the object is being synchronized from your on-premises organization. This action should be performed on the object in your on-premises organization.

image

You can change this by changing your local distribution group.You have to change the “msExchRequireAuthToSendTo” parameter and set it to FALSE (use ADSIEDIT)

PowerShell: updating AD photo for use in Office 365

I wanted to add a photo to every user in our Office 365 environment, so it is visible within our Lync software.
Normally I would think I would go to Lync, open op “Tools” and then “Options”, select My Picture and change it. But in Lync 2013 the “Edit or Remove Picture” is grayed out.
You can read some more about this “problem” in this support post. It will be available again when they upgrade our office 365 environment.

So for now I had to think of something.
As we have a synced environment (through DirSync) I thought I could make use of the AD User object property “ThumbnailPhoto”. If  I could fill this value with a jpg then it would get synced to office 365.
And for that I created a PowerShell Script.

Starting Point: I have a folder with all the JPG images which are named in the following format firstname.lastname@domainname.jpg (I got these from someone else, who saved them like that). So as u will see in the script below I had to use some string manipulation to match the JPG to a domain user

It will take some time before you see pictures.

I received the following error for a few images: Exception calling “setinfo” with “0″ argument(s): “A constraint violation occurred. (Exception from HRESULT: 0x8007202F)”.

I noticed that the thumpnailphoto attribute can’t hold more than about 75kb. So make sure you’re images are smaller.

PowerShell: Import Scheduled Task

Some powershell I needed to import some scheduled tasks (xml files).
Just for my own reference

Server 2012 – installing Feature on Demand: .NET Framework 3.5

When installing SQL 2012 on my windows server 2012 box, I received errors about the install of .NET Framework 3.5.
As .NET Framework 3.5 is a “feature on demand”, the binaries and other files associated with the feature are not included on the server. Windows Server tries to contact Windows Update to download the files it needs to install the feature.
Your network configuration can have effect on the process of downloading the needed files.

I solved the problem, by mounting the Windows Server 2012 installation media and issuing the following command:

Where <drive> stands for the drive letter of the mounted installation media

Changing an Office 365 User Principal Name with Powershell

It is very ease to change your login name in Office 365 if you have PowerShell for office 365 (x86 version, x64 Version) installed.

First connect to Office 365

Enter your Credentials, and then issue the next command: