There are two kinds of permission for Calendar in Mailbox. A user can have Folder permission to calendar Delegate permissions Folder permission is used by another user to access the calendar and Delegate permission is given to a user to manage the calendar behalf of the giving user. Both kinds of permission can be given … Continue reading Exchange: Calendar Folder Permissions and Delegates
Exchange: Mailbox Folder Size Report
As an Exchange Administrator, you can generate a mailbox folder size report for any user. It is extremely helpful if the USER doesn't know how his/her mailbox is reaching size limit & which FOLDER has most emails. Well here is the one-liner PowerShell script (Note: Replace email@example.com with user's email address): Get-MailboxFolderStatistics firstname.lastname@example.org | Select-Object … Continue reading Exchange: Mailbox Folder Size Report
Windows Server 2016/2019: Where the hell the time zone settings?
If you are trying right-clicking on Date/Time on task bar, choosing Adjust date/time: And you are stuck at Windows new settings page, where changing the time zone doesn't take effect. Here you say: "What the HELL?" So, I say go for old Time settings from control panel to change the time zone. Here is how … Continue reading Windows Server 2016/2019: Where the hell the time zone settings?
Promoting a DC: Error determining whether the target environment require adprep
When you are promoting a new Domain Controller in to an existing Active Directory Forest/Domain, you let the default setting of "Any domain controller" to sync from and you are stuck at promotion process with this error message: Error determining whether the target environment require adprep: Validation error Validation error: Unable to make an LDAP … Continue reading Promoting a DC: Error determining whether the target environment require adprep
When you demoting a domain controller, you receive the “Failed to modify the necessary properties for the machine account. Access is denied” error message
Are you getting this error message when demoting a domain controller? "The operation failed because: The Active Directory Domain Services Installation Wizard (DCpromo.exe) would not configure the computer account <2012 DC> on the remote Active Directory Domain Controller <2019 DC>. Verify that the user running dcpromo.exe is granted the "Enable computer and user accounts to … Continue reading When you demoting a domain controller, you receive the “Failed to modify the necessary properties for the machine account. Access is denied” error message
Active Directory: Self-Signed certificate for LDAPs
While testing Active Directory on a closed private network, I needed LDAPs connections to the domain controllers. But I didn't have any PKI/Certificate servers on the network and I didn't want to build one. So I decided to use a self-signed SSL certificate for LDAPs connections. If you reading this, you need one too. Here … Continue reading Active Directory: Self-Signed certificate for LDAPs
Microsoft Teams: Direct link to start a chat with you
Do you use Microsoft Teams? Here is the direct Teams chat link to start a chat with you. I add this link to my Email signature. You can too. https://teams.microsoft.com/l/chat/0/0?users= <Your-Email-Address> e.g., https://teams.microsoft.com/l/chat/0/0?users=AwesomeAnand@USA.com If you need the link for your Teams Channel, you can get it by right-clicking on the Teams Channel, like this:
PowerShell: Find if a computer is waiting for Reboot (pending reboot)
To find a computer is waiting for reboot to complete the Microsoft Update installation, I have found this information in Windows Update WMI object. This displays True (if Pending Reboot),or False (Not waiting for reboot). (New-Object -ComObject Microsoft.Update.SystemInfo).RebootRequired But this only runs on the local computer. I needed to collect Pending Reboot state of all … Continue reading PowerShell: Find if a computer is waiting for Reboot (pending reboot)
(Ver 2) PowerShell: Create Unique Log File Name out of Date & Time
I have blogged to create a log file name in PowerShell, so we can create unique readable file names to store data or logs: https://anandthearchitect.com/2019/06/13/powershell-create-a-unique-log-file-name-out-of-date-time/ Now I have an better idea of generating file name with slightly different idea (since I found out GetDateTimeFormats() function in returned object from Get-Date cmdlet). Here is the function … Continue reading (Ver 2) PowerShell: Create Unique Log File Name out of Date & Time
Exchange: How to list memberOf groups of a distribution group?
When I wrote a script to migrate distribution groups to Office 365 from On-Prem Exchange server, I had a requirement to list the parent (memberOf) groups. So I can migrate them in order or do not lose the group memberships during migration. So how do we list the parent groups of a DL? There are … Continue reading Exchange: How to list memberOf groups of a distribution group?