0

PowerShell: Copying Latest Files to multiple servers

Problem: I have a source folders which consisted of multiple directory’s (builds from TFS). I wanted to copy the latest folder (Based on LastWriteTime) to several servers.

Answer: use-powershell (what else 😉  )

$serverlist = @("\\server1\d$\install\software","\\server2\d$\install\software", "\\server3\d$\install\software")
$LatestBuild = (get-childitem D:\sourcedirectory | Sort-Object LastWriteTime -Descending | select-object -first 1).FullName
$serverlist | Foreach {Copy-Item $LatestBuild -Recurse -Destination $_}
0

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)
0

Powershell: copy files based on date

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

0

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.
0

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).

0

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.

 

0

PowerShell: compare 2 directory’s

Comparing two directory’s and listing the differences

 

Original source: Jeff’s Blog

0

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)

 

1

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)