Remote Shared Mailbox

Get Remote Shared Mailbox using LDAPFilter

Find out how to get Remote Shared Mailbox using LDAPFilter. In this short article, I wanted to share a PowerShell script for getting user objects where property msExchRecipientTypeDetails is a Remote Shared Mailbox. Recipient Type Values First, we need to find which property and value are for Remote Shared Mailboxes. There are three attributes that we can check: msExchRemoteRecipientType msExchRecipientDisplayType msExchRecipientTypeDetails In this case, we will focus on msExchRecipientTypeDetails attribute …

lastlogondate

Get users who haven’t logged in longer than X days (LastLogonDate)

Find out how to get users who haven’t logged in longer than X days. In today’s post, I wanted to share a simple Active Directory inventory script. It is using AD module commands and saving results into a CSV file. LastLogonDate This script might be useful in getting users that haven’t logged for a longer amount of time. It is checking lastlogondate property: Please be aware that it gets a …

remove

Remove user from specific AD groups using PowerShell

If you are looking for simple AD group member removal script this article is for you. Today I want to share few examples about getting group membership and removing one specific user from multiple groups. I was using commands form ActiveDirectory module. Get user group membership Below you can find several commands which helps to get user direct group mmebership: Remove user group membership Removing user from specific group is …

Get-Process

Get process remotely including username using PowerShell

In today’s article I would like to describe how to get process remotelty used by some specific username. Most of PowerShell admins are familiar with this command but no all knows its paramter called IncludeUserName. Recently I had to check processes under some username on bunch of servers. Below you can find few helpful examples. Get process locally Get all processes for some specific user is not difficult. Paramter -IncludeUserName …