Unable to run Set-Transport Config from Powershell for Office 365 Tenant

Packiyarajan Ganesamoorthy 21 Reputation points
2021-12-09T22:27:29.923+00:00

![156412-error.jpg][1] [1]: /api/attachments/156412-error.jpg?platform=QnA I am unable to run the Set-Transport keeps coming up with this error Set-TransportConfig : The term 'Set-TransportConfig' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Set-TransportConfig -SmtpClientAuthenticationDisabled $false + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Set-TransportConfig:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException I am running this as a Global admin user. Have already installed the all the modules and logged into powershell. I tried the command on another tenant and it works fine, but just not on this tenant. When I try the Set-Tran and tab it doesn't even find the command * Also the tenant is not set for Security Default and ‎Modern authentication‎ is enabled on it.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,362 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,387 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Andy David - MVP 142.3K Reputation points MVP
    2021-12-09T22:32:28.44+00:00

    Make your account an Exchange Admin as will and reconnect to the powershell session so it can import the commands and see if that works

    Connect-ExchangeOnline -UserPrincipalName  <User@contoso.com>
    

  2. Packiyarajan Ganesamoorthy 21 Reputation points
    2021-12-09T22:38:04.65+00:00

    ![156219-error2.jpg][1] [1]: /api/attachments/156219-error2.jpg?platform=QnA Here is the full screen shot

    0 comments No comments

  3. Andy David - MVP 142.3K Reputation points MVP
    2021-12-09T22:42:07.443+00:00

    So have you added the account to the Exchange Admin role in Azure and/or Organization Mgmt in EAC as a test?

    What do you see for

    156220-image.png


  4. Packiyarajan Ganesamoorthy 21 Reputation points
    2021-12-09T22:48:31.557+00:00

    Yes I did add the user to exchange admin and also other admin to test. Yes the login is part of the Organization management Also I only get the Get command and not the Set command ![156413-command.jpg][1] ![156340-message-3.jpg][2] [1]: /api/attachments/156413-command.jpg?platform=QnA [2]: /api/attachments/156340-message-3.jpg?platform=QnA

    0 comments No comments

  5. Limitless Technology 39,391 Reputation points
    2021-12-10T15:47:12.09+00:00

    Hello

    Thank you for your question and reaching out.

    This should be a permissions issue.
    Please reboot your PC

    Create the $Session using an account that has Global Admin privileges in your O365 Tenant and you'll see that the 'Set-...' cmdlets automatically get downloaded and inserted into your session.

    Also, Please check if user account part of the Organization Management group.


    --If the reply is helpful, please Upvote and Accept as answer--