Issues Disabling DirectSend: Unable to Find Type [short]

0
14
Asked By TechMaster92 On

I'm having trouble disabling DirectSend for some of my tenants. I was successful with two, but when I try to do the same for the other three, I'm running into a problem. Here's what happens when I attempt the command in PowerShell:

```powershell
PS C:WINDOWSsystem32> Get-OrganizationConfig | Select-Object Identity, RejectDirectSend

Identity RejectDirectSend
---------------- ----------------
client3.onmicrosoft.com False

PS C:WINDOWSsystem32> Set-OrganizationConfig -RejectDirectSend $true

Unable to find type [short].

At C:UsersPKAppDataLocalTemptmpEXO_psldb1by.zeutmpEXO_psldb1by.zeu.psm1:49841 char:5

+ [short]
+ ~~~~~
+ CategoryInfo : InvalidOperation: (short:TypeName) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
```

What might I be missing here?

3 Answers

Answered By CodeGuru99 On

Your syntax looks correct. Since you're having this issue across three tenants, I’d suggest uninstalling the module and then reinstalling it. It might help clear up any underlying problems.

Answered By AdminWizard42 On

Make sure you're including the -Identity parameter with the organization name in your command. That could help avoid the error you're seeing.

Answered By pkokkinis On

You should try using PowerShell 7 instead. I had the same issue with PowerShell 5.1, but everything worked fine once I switched to PS 7.5.2.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.