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

| | | | | | | |

While there is no simple way of addressing ransomware entirely, there are number of measures that all organisations can take to help spot and mitigate the risk and spread of such an attack. LepideAuditor offers probably the easiest, fastest (and most cost effective) means of spotting and reacting to potential ransomware attacks on your Windows…

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…

Overview of The Exchange 2016 Transport pipeline services
| | | | |

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…

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…

Set UPN Suffix using PowerShell
| | | | | | |

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: Import-Module ActiveDirectory   Then run : Get-AdForest | Set-ADForest -UPNSuffixes @{Add=”ThatLazyAdmin.com”}   Lets verify the new UPN in Active Directory…

Set Exhange 2010 /2013 OWA ‘LogonFormat’ using PowerShell
| | | | | |

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   Set-OwaVirtualDirectory -LogonFormat ‘UserName’ -DefaultDomain ‘ThatLazyAdmin.local’ -Identity ‘LazyEX-01\owa (Default Web Site)’  …