Create Exchange Mail Contact using Powershell
| | | | | | | | |

Create Exchange Mail Contact using Powershell

Create Exchange Mail Contact using Powershell How to create an Exchange Mail Contact using Powershell one liner. To create the new Mail Contact run the following in Exchange Shell. New-MailContact -Name “Lazy-Mails” -ExternalEmailAddress “LazyAdmin@Gmail.com” -OrganizationalUnit “OU=Contacts,DC=LazyAdmin,DC=com”   Quick and easy . #ThatlazyAdmin

Exchange Mailbox Move Request Stuck on ‘Queued’
| | | | | | |

Exchange Mailbox Move Request Stuck on ‘Queued’

Exchange Mailbox Move Request Stuck on ‘Queued’   Recently i started doing bulk Mailbox Moves to New DB’s, during this process i found that all the new move-request jobs i started are all stuck on ‘Queued’ status. To resolve this i did the following. List all Move-Request (just to make sure they still all in…

Remove Exchange Mailbox Move-Request
| | | | | | | | |

Remove Exchange Mailbox Move-Request

Remove Exchange Mailbox Move-Request using PowerShell   Lets look at how to remove Exchange Mailbox Move-Request with PowerShell. Get-MoveRequest This will list all current Mailbox Move-Requests InProgress and Completed. To remove run : Remove-MoveRequest -Confirm:$false Lets looks at combining the “Get” option and only show “Completed” Move-Requests and then remove the “Completed” Move-Requests. Get-MoveRequest |Where-Object…

Set Receive and Send size limits Exchange PowerShell
| | | | |

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.   Set-Mailbox Shaun.Hardneck -MaxReceive “15 MB” -MaxSend “15 MB” Now lets look at finding all users with “MaxSendSize” limits greater than “5 MB” Get-Mailbox -ResultSize Unlimited…

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…

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…

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…

Enable Remote Desktop Using PowerShell
| | | |

Enable Remote Desktop Using PowerShell

Enable Remote Desktop Using PowerShell Open an elevated Windows PowerShell session and run the following commands. This first one creates the fDenyTSConnections value and sets it to 0 (off). This makes sense, because we don’t want to deny Terminal Services (TS) connections. Set-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server’ -Name fDenyTSConnections -Value 0 Set Network Level Authentication for…