Send Bulk Test Emails with PowerShell

I’m doing some load testing on one of my SMTP Smart Hosts, and needed to send a few thousand emails in a controlled space of time. I’ve written this quick little script to do so: $scriptSettings = @{ NumberOfEmails = 100 TimeBetweenEmails = 1 #in seconds MailDestination = ‘user.name@contoso.com’ MailSubject = ‘Test’ MailServer = ‘mail.contoso.com’ MailFrom = ‘no-reply@contoso.com’ } for […]

Read more

Disable The Firewall On A Windows Nano Server Using PowerShell

In this article, I’ll show you how to disable the Windows Firewall on A Windows Nano Server 2016. Below, you will see two methods to do it one using Netsh and the second using Set-NetFirewallProfile (PowerShell) you can use either of them. To disable the firewall connect to your Nano Server using PowerShelland run the line below to disable the Firewall: netsh […]

Read more

How To Change Windows Nano Server 2016 DNS Server IP Address

In this article, I’ll show you how to modify \ Change the existing DNS Server IP address on a Windows Nano Server 2016. To complete this operation, You will need to connect to the Server with an admin account and use Remote PowerShell. To get started, I’ve connected to my Nano Server using PowerShell Remote. Once connected, I’ll need to find […]

Read more

How To Connect To A Windows Nano Server Using PowerShell

In this article, I’ll show you how I connect to my Windows Server 2016 using PowerShell Remoting. To get started, I Open a Windows PowerShell console. Note:If your Nano Server Is not part of your domain type the line below, do add it to the Trusted Hosts list on your machine. Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.68.0.21 -Concatenate Next, I type the line below to […]

Read more

How To Export \ Import Single Mailbox Folder To PST File Exchange Server 2010 / 2013 /2016

This article will show you how to export a single folder from an entire mailbox to a PST file on Exchange Server 2010, 2013 and 2016. To start the process open EMS and type the command below (change mailbox and source folder path). New-MailboxExportRequest -mailbox adminu -SourceRootFolder “Inbox/folder” -filepath \\exchange\C$\Source\adminu.pst   Example: ( New-MailboxExportRequest -mailbox “Matt Heitman” –FilePath \\ltivw-p-mbx03\pst$\mheitman2.pst )    You can import it to another mailbox […]

Read more

PowerShell Code: Get Mailboxes with Size Greater Than X

Today, I’ll show you another classic PowerShell Code for Exchange Server that will let you search for users with a mailbox size of X and above. I came across the need to do this when I had to rebalance mailboxes on Exchange Server and wanted to know which users have mailboxes over 5GB. The code below. Will show you all […]

Read more

Add a computer to an Active Directory domain with PowerShell

A common task many system administrators do is adding computers to an Active Directory domain. Since Active Directory is embedded in so many organizations, nearly every IT professional is probably familiar with the box below. Active Directory domain join This PowerShell snippet above connects remotely to the computer NAMEHERE, attempts to join it to the domain domain.here and then afterward […]

Read more
1 3 4 5 6 7 11