OMS Operations Management Suite
2 TopicsError when running Enable-OrganizationCustomization
Customer is on a Business Basic trial license and 1 paid Business Standard license. The tenant is dehydrated. They are runnig the above command and getting a long error message (replaced the numbers with X). There's no complex environment involved. Any suggestions on what might be causing this and how to fix it? Write-ErrorMessage : Ex88D115|Microsoft.Exchange.Management.Deployment.ScriptExecutionException|The following error was generated when " Set-Organization $RoleOrganizationHierarchicalPath ` -TargetServicePlan $TargetServicePlan ` -IsUpdatingServicePlan $true ` -DomainController $RoleDomainController; " was run: "System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: An Active Directory error 0xFFFFFFFE occurred when trying to check the suitability of server 'MWXPRXXAXXDCXXX.NAMPR1XXAXXX.PROD.OUTLOOK.COM'. Error: 'Unsuitable although no exception raised' at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at Microsoft.Exchange.Management.LocalPowerShellConnection.LocalPowerShell.Execute() at Microsoft.Exchange.Management.Deployment.ComponentInfoBasedTask.InternalExecuteScript(String script, Boolean handleError, Int32 subSteps, LocalizedString statusDescription, String scriptIdentifier)". At C:\Users\brian\AppData\Local\Temp\tmpEXO_eqpoocpi.m2l\tmpEXO_eqpoocpi.m2l.psm1:1204 char:13 + Write-ErrorMessage $ErrorObject + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Enable-OrganizationCustomization], ScriptExecutionException + FullyQualifiedErrorId : [Server=DS7PRxxMBxxxx,RequestId=0af33b70-f6e4-f04c-e579-4827fd3d1835,TimeStamp=Fri, 17 M ay 2024 11:57:25 GMT],Write-ErrorMessage522Views0likes2Commentsonly | Export-csv is having an issue exporting the data, the rest of the PS works fine
i run the below against a CSV file and works fine on exchange online PS, foreach($m in $mailboxes) {Get-MailboxStatistics $m.Identity.ToString() |select Identity, displayname, LastLogonTime, itemcount, totalitemsize; Start-Sleep -Milliseconds 500} however when i add the Export-csv switch it only gets one user info exported, the last user in the list i tried altering the line in many ways something is wrong while exporting the results only , the results are retrieved successfully on-screen when the command is fired without the Export parameter foreach($m in $mailboxes) {Get-MailboxStatistics $m.Identity.ToString() |select Identity, displayname, LastLogonTime, itemcount, totalitemsize; Start-Sleep -Milliseconds 500 -Export-csv d:\123.csv}Solved8KViews0likes4Comments