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

Count Results in PowerShell

Published by under Windows

  I was astonished to see PowerShell would display nothing when it should count 0 or 1.   Here’s a screenshot retrieving the number of AD accounts.   Instead use the Measure cmdLet and select the count value: C:\>(Get-ADUser -filter {SamAccountName -like “dron*”} | select SamAccountName | measure).count 1     Another useful command: The […]

No responses yet

Oct 09 2015

Exchange Default Retention Policy Does Not Apply

Published by under Exchange

You have configured in EAC or Powershell a retention policy that should clean up your deleted items for instance but it does not apply to your mailboxes.   As suggested on Microsoft, the default policy is applied when you create an archive for the mailbox. But you’re unlucky since the archive feature in Exchange 2010 […]

No responses yet

Next »