11/1/2023 0 Comments Folder permissions reportJust call the get-permissions function also for folders and datacenters. It will print the permissions that are applicable on virtual machines and templates.īut that can easily be extended to do the same thing for datacenters and folders. The following script sort of combines the previous 2 scripts. Write-Progress -Activity "Collecting mailbox permissions " -Status "Current count: $i of $mailboxesqty " -PercentComplete (( $i / $mailboxes. "Calendar Permission " = $calendarFolder. "Inbox folder Delegated " = $inboxFolder. "Inbox folder Permission " = $inboxFolder. $mostRecords = Find-LargestValue -sob $sob -fa $fa -sa $sa -ib $ib -ca $ca UserPrincipalName -folder $calendarFolderName $calendarFolder = Get-FolderPermissions -identity $_. UserPrincipalName -folder $inboxFolderName $inboxFolder = Get-FolderPermissions -identity $_. If ((( $psSessions) -like Name=ExchangeOnlineInternalSession* ').Count -gt 0) -ne $true) $psSessions = Get-PSSession | Select-Object -Property State, Name # Check if there is a active EXO sessions If ( $null -ne ( Get-Module -ListAvailable -Name ExchangeOnlineManagement)) Write-Error "Please install EXO v2 module. Install-Module ExchangeOnlineManagement -Repository PSGallery -AllowClobber -Force Write-Host "Installing Exchange Online PowerShell v2 module " -ForegroundColor Cyan $install = Read-Host Do you want to install module? Yes No Write-Host "Exchange Online PowerShell v2 module is requied, do you want to install it? " -ForegroundColor Yellow If ( $null -eq ( Get-Module -ListAvailable -Name ExchangeOnlineManagement)) # Check if EXO is installed and connect if no connection exists $calendarFolderName = "calendar " # Default "calendar" $inboxFolderName = "inbox " # Default "inbox" # You can find all folders for a mailbox with Get-EXOMailboxFolderStatistics -identity | ft # Set the propers name for your mailbox folders HelpMessage = "Enter path to save the CSV file " HelpMessage = "Include Folder Permissions " HelpMessage = "Get (only) Shared Mailboxes or not. I also possess in-depth knowledge of Linux server administration, including managing user accounts, permissions, and file systems. HelpMessage = "Enter a single UserPrincipalName or a comma separted list of UserPrincipalNames " My expertise in Windows Server administration includes configuring Active Directory, DNS, DHCP, and managing Group Policies. HelpMessage = "Enter the Exchange Online or Global admin username "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |