Skip to content

Tag: PowerShell

Remove Exchange Mailbox Move-Request

Remove Exchange Mailbox Move-Request using PowerShell   Lets look at how to remove Exchange Mailbox Move-Request with PowerShell.

This will list all current Mailbox Move-Requests InProgress and Completed. To remove run :

Lets looks at combining the “Get” option and only show “Completed” Move-Requests and then remove the “Completed” Move-Requests.

There you…

Leave a Comment

Set Receive and Send size limits Exchange PowerShell

Set Mailbox Max Send and Max Receive limits Lets have a quick look at a one liner to set user mailbox send and receive size limits in Exchange Powershell.  

Now lets look at finding all users with “MaxSendSize” limits greater than “5 MB”

  #ThatLazyAdmin

Leave a Comment

Add and Remove Distribution Group Members Powershell

Add and Remove Distribution Group Members Powershell   Lets look at some quick Powershell one liners to Remove and Add Distribution Group Members. Add DistributionGroup Member:

Remove DistributionGroup Member:

  Quick and Simple One liners.   #ThatLazyAdmin

Leave a Comment

Set Office 365 Out Of Office using PowerShell

Set Office 365 Out Of Office Messages using PowerShell Connect to Office 365 PSSession using a script a created to simplify the connection :Connect-Office365-PSSession  

Images when script is executed Very simple and straight forward script to quickly and easily set OOF messages. TechNet Script can be downloaded here :SetO365OOF #ThatLazyAdmin

Leave a Comment

Set DNS using Powershell

The purpose of this article is to show case how to add a new A record to a DNS zone using PowerShell. Here is a quick look at the available Syntax for : Add-DnsServerResourceRecordA Add-DnsServerResourceRecordA [-AllowUpdateAny] [-CreatePtr] [-Name] <String> [-IPv4Address] <IPAddress[]> [-ComputerName <String>] [-TimeToLive <TimeSpan>] [-ZoneName] <String> [-AgeRecord] [-PassThru] [-ZoneScope <String>] [-VirtualizationInstance <String>] [-CimSession <CimSession[]>]…

Leave a Comment

Get Domain Group Members

The following Script was created to assist a help desk department to quickly get a list of ‘Members’ from an Active Directory Group. This is a very simple script that prompts you for a Group Name and will then use Grid-View to display the results. Original Post : https://gallery.technet.microsoft.com/Get-Domain-Group-Members-bf33a1a2?redir=0 GetGroupMembers #ThatLazyAdmin

Leave a Comment

Windows Vs WanaCry and How to Quickly Find those Windows XP Machines.

After this weekend’s latest Ransomware attack here is a quick way to find all those “Windows XP” machines still running in your environment. What is WanaCry ? This malware exploits a vulnerability in Microsoft’s Windows operating system that allows it to automatically spread across networks, which gives it the ability to quickly infect large numbers…

Leave a Comment

Adding Subnets Active Directory Sites and Services :PowerShell

This guide will show you how to add additional Subnets into Active Directory Sites and Services using GUI as well as Powershell. Let’s start by adding the following Subnet into Sites and Services using GUI. Subnet : 192.168.56.0/24 and 192.168.57.0/24 Launch Active Directory Site and Services and Navigate to Subnets. Right click on “Subnets” and…

2 Comments

Exchange 2016 message throttling settings

View Default Exchange 2016 message throttling settings Message throttling refers to a group of limits that are set on the number of messages and connections that can be processed by an Exchange server. These limits include message processing rates, SMTP connection rates, and SMTP session timeout values. These limits work together to protect an Exchange server…

Leave a Comment