18 September 2020

You don't have sufficient permissions. This operation can only be performed by a manager of the group

You don't have sufficient permissions. This operation can only be performed by a manager of the group.

Say what? I'm the Exchange admin.

I don't know why this happens, but there's a way to get around it.

C:\>Set-DistributionGroup -Identity "yourdistributiongroupname" -ManagedBy "username"
You don't have sufficient permissions. This operation can only be performed by a manager of the group.
    + CategoryInfo          : NotSpecified: (:) [Set-DistributionGroup], OperationRequiresGroupManagerException
    + FullyQualifiedErrorId : [Server=SR-xxxxx,RequestId=3aed658e-071f-4ddc-abd9-04cf5450b8b8,TimeStamp=18-9-2020 12:2
   3:03] [FailureCategory=Cmdlet-OperationRequiresGroupManagerException] 22D1312B,Microsoft.Exchange.Management.Recip
  ientTasks.SetDistributionGroup
    + PSComputerName        : sr-xxxxx.domain.lan

To solve it add -BypassSecurityGroupManagerCheck
C:\>Set-DistributionGroup -Identity "yourdistributiongroupname" -ManagedBy 'username' -BypassSecurityGroupManagerCheck
Now you can manage the group like the admin that you are.

07 September 2020

How old is your Active Directory?

 How old is your Active Directory?


([adsi]"LDAP://CN=krbtgt,CN=Users,$(([adsi]("LDAP://RootDSE")).defaultNamingContext)").whenCreated.Value

28 August 2020

How to install with WinGet the easy way - The winstall.app way

By using the new WinGet package manager you can use PowerShell to install all the software you need.

But how to use the command's in the correct way?

The site https://winstall.app let's you select all the apps you need and generate an install script for you to install them all at once.

Lets say you want to install, Spotify, Google Chrome, Microsoft Teams, 7Zip and Windows Terminal

Go to the site an search the apps you want and click:

The below command is showed, run it in an elevated PowerShell window and voila all your apps are installed silently and in the version you selected (if applicable)

winget install --id=Spotify.Spotify -e ; winget install --id=Google.Chrome -e ; winget install --id=Microsoft.Teams -e ; winget install --id=7zip.7zip -e ; winget install --id=Microsoft.WindowsTerminal -e