Thanks for the detailed information. This was very helpful, but still didn't fix the problem.
I figured out that the Get-ManagementRoleAssignment command uses the "displayname" as opposed to the userid, I was able to get the following. This account does have the correct roles assigned that are already assigned to the setmailbox cmdlet. See below for output.
[PS] C:\Windows\system32>Get-ManagementRoleAssignment -GetEffectiveUsers | Where-Object {$_.EffectiveUserName -eq "Sys Admin"} | Select-Object Role
Role
----
Databases
Exchange Servers
Receive Connectors
Message Tracking
View-Only Configuration
E-Mail Address Policies
Edge Subscriptions
Unified Messaging
Distribution Groups
Federated Sharing
Role Management
Federated Sharing
Exchange Server Certificates
Journaling
Mail Tips
Mail Enabled Public Folders
Message Tracking
Transport Hygiene
Disaster Recovery
Security Group Creation and Membership
User Options
View-Only Audit Logs
Database Copies
Remote and Accepted Domains
Databases
MyRetentionPolicies
Public Folders
Database Availability Groups
Security Group Creation and Membership
Retention Management
POP3 And IMAP4 Protocols
MyProfileInformation
MyVoiceMail
Recipient Policies
Exchange Connectors
UM Mailboxes
Recipient Policies
Message Tracking
Information Rights Management
Transport Queues
Legal Hold
Transport Agents
View-Only Recipients
Transport Queues
E-Mail Address Policies
Exchange Connectors
Mail Recipients
Organization Transport Settings
Move Mailboxes
UM Prompts
Public Folder Replication
Receive Connectors
Exchange Servers
View-Only Recipients
Unified Messaging
Monitoring
User Options
Audit Logs
Send Connectors
Monitoring
Mail Recipient Creation
Databases
Journaling
MyDistributionGroupMembership
MyContactInformation
Database Copies
Migration
Exchange Virtual Directories
Transport Hygiene
Audit Logs
Remote and Accepted Domains
Migration
Exchange Server Certificates
Cmdlet Extension Agents
Monitoring
Move Mailboxes
Exchange Connectors
Receive Connectors
Journaling
Database Availability Groups
Mail Recipients
Exchange Virtual Directories
POP3 And IMAP4 Protocols
MyBaseOptions
View-Only Configuration
Retention Management
Edge Subscriptions
Organization Configuration
Support Diagnostics
Audit Logs
UM Prompts
UnScoped Role Management
POP3 And IMAP4 Protocols
Database Copies
Distribution Groups
Active Directory Permissions
MyTextMessaging
Transport Agents
Public Folders
Address Lists
Mailbox Import Export
ApplicationImpersonation
Exchange Virtual Directories
Send Connectors
Mailbox Search
Disaster Recovery
View-Only Audit Logs
Organization Configuration
Address Lists
Organization Client Access
Active Directory Permissions
Organization Client Access
Organization Transport Settings
Mail Recipient Creation
Retention Management
Public Folder Replication
MyDistributionGroups
UM Mailboxes
Role Management
MyDiagnostics
Legal Hold
Cmdlet Extension Agents
Transport Queues
Mail Tips
Transport Rules
Transport Rules
Exchange Servers
Transport Rules
Exchange Server Certificates
Information Rights Management
Mail Enabled Public Folders
MyMailboxDelegation
Mailbox Import Export
[PS] C:\Windows\system32>Get-ManagementRoleEntry *\Set-Mailbox
Name Role Parameters
---- ---- ----------
Set-Mailbox Audit Logs {AuditAdmin, AuditDelegate, AuditEnabled, AuditLogAgeLimit,...
Set-Mailbox Disaster Recovery {ArchiveDatabase, Confirm, Database, DomainController, Iden...
Set-Mailbox Legal Hold {Arbitration, ArbitrationMailbox, Identity, LitigationHoldD...
Set-Mailbox Mail Recipients {AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, A...
Set-Mailbox Retention Management {Debug, DomainController, EndDateForRetentionHold, ErrorAct...
Set-Mailbox UM Mailboxes {Confirm, CreateDTMFMap, Debug, DomainController, ErrorActi...
Set-Mailbox User Options {AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, A...
Set-Mailbox MyBaseOptions {AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, A...
Set-Mailbox MyProfileInformation {DisplayName, Identity, SimpleDisplayName}
Set-Mailbox MyDisplayName {DisplayName, Identity, SimpleDisplayName}
Set-Mailbox MyMailboxDelegation {GrantSendOnBehalfTo, Identity}
But, when I run the script, I'm still getting the same error:
Junior Jr. (lcdf.org\Disabled Accounts):
Succeeded with warnings
null HR Termination: 8 operations executed
null Modify the user: disable the account
null Business Rules: 1 rule encountered while processing your request
'After User Account is Disabled': Run PowerShell script 'Remove from All Groups' for the user
null 'After User Account is Disabled': Modify mailbox settings for the user: set Hide from Exchange address lists to 'True'
A parameter cannot be found that matches parameter name 'DomainController'.
'After User Account is Disabled': Move the user to 'Disabled Accounts (lcdf.org)'
'After User Account is Disabled': Modify the user: set Notes to 'Deprovisioned on 3/8/2018 2:32:41 PM by mdedmon@lcdf.org. IT Test Account / Built-In Business Rule After User Account Disabled: 3/8/2018 2:48:19 PM'
'After User Account is Disabled': Modify the user: clear Telephone Number, clear Telephone Number (Other), clear Mobile Phone, clear Mobile Phone (Other), clear IP Phone, clear IP Phone (Other), clear Manager, clear Job Title, clear Department, clear Company
Reset password for the user
Run PowerShell script 'Remove from All Groups' for the user
Set the account expiration date to the current date
Modify the user: set Notes to 'Deprovisioned on 3/8/2018 2:48:19 PM by mdedmon@lcdf.org. IT Test Account'
Move the user to 'Disabled Accounts (lcdf.org)'
Run PowerShell script 'Send Termination Email Notice' for the user
null Modify mailbox settings for the user: set Hide from Exchange address lists to 'True'
A parameter cannot be found that matches parameter name 'DomainController'.
Any assistance is appreciated.