AD: user password change: access is denied

A user tries to change his password from his workstation and get’s a ‘access denied’ message.

  • open active directory users and computers
  • find the user and open it’s properties
  • select the ‘account’ tab
  • check if the option ‘user cannot change password’ is selected (if so, de-select it)

Powershell: copy files based on date

To copy files from a certain date to a different folder you can use the following PowerShell command:

Cannot communicate via lync to Skype users

If you want to communicate with skype users through your Lync software. For example you get the error message
This message wasn’t sent because john.doe@gmail.com doesn’t have permissions on your organization’s network, or because the address is incorrect. Please contact your support team.
There are a few things that you should check (or change).

  1. First of all you should check if ‘external communication’ is allowed in your company portal
    [lync administration – organisation – external communication]
    Please note that if this was not enabled and you are enabling it now it can take up to 72 hours to be in effect.
  2. If the skype person you want to communicate with doesn’t have skype registered with a microsoft account (i.e. one that does not end in outlook.com, live.com, hotmail.com, or msn.com), you should add the person’s IM Address as follows:
    name(example.com)@msn.com
    So, for a person with the following email address: john.doe@gmail.com you should enter it as john.doe(gmail.com)@msn.com.
    Let the skype user login and send some chats.

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.