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
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.
Make sure you're including the -Identity parameter with the organization name in your command. That could help avoid the error you're seeing.
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
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures