Skip to content

Category: PowerShell

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

Overview of The Exchange 2016 Transport pipeline services

Overview of The Exchange 2016 Transport pipeline services: Front End Transport service on Mailbox servers   This service acts as a stateless proxy for all inbound and (optionally) outbound external SMTP traffic for the Exchange 2016 organization. The Front End Transport service doesn’t inspect message content, doesn’t communicate with the Mailbox Transport service, and doesn’t queue any…

Leave a Comment

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

Search for Disabled Users and Move to Disabled Ou using PowerShell

Search for Disabled Users and Move to Disabled Ou using PowerShell Created this script to search a ‘OU’ for disabled users and move them to a different ou . I have added the ‘WhatIf’ option by default . Once you run the script it will prompt for ‘Search OU’ and ‘Target OU’ .

Leave a Comment

Bulk export Mailbox to .PST using PowerShell

Bulk export Mailbox to .PST using PowerShell I recently received a request to bulk export mailboxes to .pst , to help mysef i have created this small script to import from csv and then kick off the export request. file can be downloaded Here Code:

  #ThatLazyAdmin

2 Comments

Set UPN Suffix using PowerShell

To Prepare for Office 365 Migration you need to add the missing ‘UPN Suffixes’. The following example demonstrates how to create a new UPN suffix for the users in the ThatLazyAdmin forest: Lets Start by running:

  Then run :

  Lets verify the new UPN in Active Directory Users and Computers   There…

Leave a Comment

Set Exhange 2010 /2013 OWA ‘LogonFormat’ using PowerShell

Set Exhange 2010 /2013 OWA ‘LogonFormat’ using PowerShell   Quick look at the curent setting using the ‘GUI’. Exchange Admin Center – Servers – Virtual Directory select OWA virtual directory.     Now lets change the LogonFormat to ‘User name only’ using PowerShell  

  #ThatLazyAdmin

Leave a Comment

Get all Failed Move-Requests (Exchange 2013)

To quickly get all ‘Failed Move-Requests’ you can run the following one liner.

To Remove all ‘Failed Move-Requests’ you can run the following:  

  #ThatLazyAdmin    

Leave a Comment