Force GPO deployed software to be re-installed

Had a problem with multiple Windows 7 clients not upgrading to Java 7 Update 60 correctly which left the Java app in an unusable state.  Easy enough to uninstall and re-install the software manually but for numerous clients it’s a bit of a pain.

Instead, delete the key which relates to Java in

HKLM\Software\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt

and reboot to prompt a re-install of the software via Group Policy.

 

Advertisements

Configure a users Out of Office/Auto Reply from PowerShell

Without having to login to their account/mailbox, use Exchange commandlets to get/set their Out of Office.

To view current Out of Office settings:

Get-MailboxAutoReplyConfiguration -Identity DOMAIN\Username

Link to Technet: http://technet.microsoft.com/en-GB/library/dd638081(v=exchg.141).aspx

 

To set properties for a users Out of Office:

Set-MailboxAutoReplyConfiguration -Identity DOMAIN\Username -AutoReplyState enabled -InternalMessage "I am on holiday until 01/08/14.  Please call Joe on Ext 123 in my absence" -ExternalMessage "I am on holiday until 01/08/14.  Please call the sales department on 0800 xxxxxx in my absence"

Link to Technet: http://technet.microsoft.com/en-us/library/dd638217(v=exchg.141).aspx

 

Re-run the Get-MailboxAutoReplyConfiguration command to check the changes have been made correctly.