Set Office 365 Out Of Office using PowerShell
| | | | | | |

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   #This Script was created to assist HelpDesk staff to configure Out Of Office Messages for Staff #Twitter: Shaun.Hardneck #Web: http://thatlazyadmin.com $user = Read-Host “UserName” $sdate = Read-Host “Example of Date…

Set DNS using Powershell
| | | | | |

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[]>]…

Get Domain Group Members
| |

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

Creating Retention Tags and Policies Office 365
| | | |

Creating Retention Tags and Policies Office 365

In this Post we will cover how to create a Retention Tag and Retention Policy in Exchange Online. Launch the Exchange Online EAC and navigate to Compliance and Retention Tags. Create a Retention Policy to Automatically move all Mailbox Items from 1 Year to Archive. Click (+) Tab then Click apply automatically to entire mailbox…

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

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…

Create Exchange 2016 DAG using PowerShell
| | | | |

Create Exchange 2016 DAG using PowerShell

Create Exchange 2016 DAG using PowerShell   What is a Database Availability Group  (DAG) ? A database availability group (DAG) is a set of up to 16 Microsoft Exchange Server 2016 Mailbox servers that provide automatic database-level recovery from a database, server, or network failure. When a Mailbox server is added to a DAG, it works…

Adding Subnets Active Directory Sites and Services :PowerShell
| | | | |

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…

Exchange 2016 message throttling settings
| | | | |

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…

Search for Disabled Users and Move to Disabled Ou using PowerShell
| | | | | |

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’ . #Created to ease…

Bulk add users to Distribution Group
| | | | | | | | |

Bulk add users to Distribution Group

Bulk add users to Distribution Group I was ask recently to simplify a task for support staff to bulk add users to a distribution group. So i created the following script to add user from csv. The script will ‘prompt’ for ‘Distribution Group’ name and will add users accordingly. The script has the ‘WhatIf’ added…

Get all Failed Move-Requests (Exchange 2013)
| | | |

Get all Failed Move-Requests (Exchange 2013)

To quickly get all ‘Failed Move-Requests’ you can run the following one liner. Get-MoveRequest | Where-Object {$_.Status -eq “failed”} To Remove all ‘Failed Move-Requests’ you can run the following:   Get-MoveRequest | Where-Object {$_.Status -eq “failed”} | Remove-MoveRequest   #ThatLazyAdmin    

Using Active Directory to meet Regulatory Compliances
| | | |

Using Active Directory to meet Regulatory Compliances

Using Active Directory to meet Regulatory Compliances   When it comes to meeting compliance, many Administrators settle for simply auditing event logs. By default, Event Viewer records all events that are generated on a Windows Server. However, is simply storing logs an efficient way to meet compliance? Most compliance mandates require a particular report to…