Archive for the tag 'Powershell'

 

 

Apr 06 2017

Windows Managed Service Accounts

Published by under Windows

Managed service accounts appeared with Windows 2008 R2 Server. MSA provide a dedicated account for each service without the hassle of managing password assignment or reset; less management, more security. However, an account can only be used on one server.   Setting up a service account is done in 2 steps: Create it on the […]

No responses yet

Mar 21 2017

Powershell Count Returns Incorrect Values

Published by under Windows

Powershell provides a “count” method that comes first to mind when you have to count lines, files or objects. I was astonished to observe PowerShell would display nothing when it should count 0 or 1. Here’s a screenshot where I retrieve the number of Active Directory accounts and showing count is unreliable. Instead use the Measure-Object […]

No responses yet

Oct 09 2015

Exchange Default Retention Policy Does Not Apply

Published by under Exchange

You have configured in Exchange EAC (Exchange Admin Center) or with Powershell a retention policy that is supposed to clean up your deleted items for instance. But it does not apply to your mailboxes, nothing gets deleted. As suggested on Microsoft, the default policy is applied when you create an archive for the mailbox. But you’re […]

No responses yet

Sep 06 2015

DOS / Powershell Scripts to Remove Files Older Than

Published by under Windows

System admins face more and more ever-growing directories storing auto-generated reports by scripts or scheduled tasks. Same goes to temp directories and nobody bother cleaning them up. But isn’t it our job?Here are 2 simple scripts that can be run every so often to delete files older than say 30 days for instance. The first […]

No responses yet

Jul 11 2015

Exchange Addressbook Does Not Update in Outlook

Published by under Exchange

When I update Exchange 2013 Address Book (phone number or any other details), Outlook does not seem to get updated, even the next day. It does not seem to be a problem on the client side since it tries to get the latest address book updates from Exchange at regular intervals. You can workaround this […]

No responses yet