Thursday, March 28, 2019
POWERSHELL: LIST ALL MAILBOX FOLDER DELEGATE ACCESS FOR A MAILBOX
$ErrorActionPreference="SilentlyContinue"
Stop-Transcript | out-null
$ErrorActionPreference = "Continue"
Start-Transcript -path C:\users\__amariouribe\desktop\output.txt -append
$mbx = "sgoldschmid"
$permissions = @()
$Folders = Get-MailboxFolderStatistics $mbx | % {$_.folderpath} | % {$_.replace(“/”,”\”)}
$list = ForEach ($F in $Folders)
{
$FolderKey = $mbx + ":" + $F
$Permissions += Get-MailboxFolderPermission -identity $FolderKey -ErrorAction SilentlyContinue | Where-Object {$_.User -notlike “Default” -and $_.User -notlike “Anonymous” -and $_.AccessRights -notlike “None”}
}
$permissions
# Do some stuff
Stop-Transcript
2025 Certification Goals
Certified Information Systems Auditor (CISA) https://www.isaca.org/credentialing/cisa Practical Web Pentest Associate (PWPA pka: PJPT) http...
-
I had the opportunity to (semi) work with LED matrices at my place of employment, which led me to tackle this project here. I have set up t...
-
Let's start off with the list of it items that we'll need: Materials: Computer: Laptop/Desktop Running Windows Radio Piece: 1X Baof...