Unable to run Enable-OrganizationCustomization PowerShell Command in - Microsoft Community


i trying run powershell command enable-organizationcustomization in office 365 tenant.  i have tried running command 2 different global administrator accounts in tenant , behavior same.  i have included full powershell showing importing of exchange online commands credentials aren't problem.  you can see get-organizationconfig cmdlet fails.

ps c:\windows\system32> $usercredential = get-credential

cmdlet get-credential @ command pipeline position 1
supply values following parameters:
credential
ps c:\windows\system32> $session = new-pssession -configurationname microsoft.exchange -connectionuri https://outlook.office365.com/powershell-liveid/ -credential $usercredential -authentication basic -allowredirection
ps c:\windows\system32> import-pssession $session

moduletype version    name                                exportedcommands
---------- -------    ----                                ----------------
script     1.0        tmp_nzswxtpa.gky                    {add-distributiongroupmember, add-mailboxfolderpermission, clear-activesyncdevice, clear-mobiledevice...}


ps c:\windows\system32> get-organizationconfig | fl  identity, isdehydrated
get-organizationconfig : term 'get-organizationconfig' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again.
@ line:1 char:1
+ get-organizationconfig | fl  identity, isdehydrated
+ ~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : objectnotfound: (get-organizationconfig:string) [], commandnotfoundexception
    + fullyqualifiederrorid : commandnotfoundexception

ps c:\windows\system32> get-organizationconfig
get-organizationconfig : term 'get-organizationconfig' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again.
@ line:1 char:1
+ get-organizationconfig
+ ~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : objectnotfound: (get-organizationconfig:string) [], commandnotfoundexception
    + fullyqualifiederrorid : commandnotfoundexception

ps c:\windows\system32> enable-organizationcustomization
enable-organizationcustomization : term 'enable-organizationcustomization' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try
again.
@ line:1 char:1
+ enable-organizationcustomization
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : objectnotfound: (enable-organizationcustomization:string) [], commandnotfoundexception
    + fullyqualifiederrorid : commandnotfoundexception

hi vhusker,

based on error message, powershell cannot recognize related commands. narrow down issue, i’d collect following information:

  1. may know whether adjust admin role groups?
  2. if create new global admin, issue persist?
  3. i’d collect tenant information check it. protect privacy, have sent private message collect them. please click on link below access private message:

https://answers.microsoft.com/en-us/privatemessage/inbox

   

4. if run other commands (such get-mailbox), have same issue?

here reference exchange online powershell:

https://technet.microsoft.com/library/jj984289(v=exchg.160).aspx

best regards,

erick



Office / Office 365 for admins / Deploy Office 365



Comments

Popular posts from this blog

Getting ErrorCode: 120018 when trying to access Microsoft account - Microsoft Community

The message was sent to a distribution list ‎(DL)‎ - Microsoft Community

i need Access database tutorial books recommendations - Microsoft Community