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

Enable Litigation Hold for all Mailboxes in Office 365

There’s no built-in feature at this time to enable litigation hold for all mailboxes in Exchange Online, but some organisations have this as a requirement. Here’s a script that can be run ad-hoc to enable litigation hold for all mailboxes. When prompted, enter your Exchange Online credentials.   # Connect to Exchange Online $exo = New-PSSession -ConfigurationName Microsoft.Exchange ` -ConnectionUri https://ps.outlook.com/powershell-liveid […]

Read more

How to Create A Windows Server Container

To create a basic Windows Container, I’ll use the docker run command which will create a Windows Nano Server 2016 Container without a specific name. open port or any other customization. The -it switch will automatically enter you Into the Container terminal docker run -it microsoft/nanoserver To create a Windows Container with a custom name and port 80 open I’ll […]

Read more

9 Things That Will Help You Understand Windows Containers

What Is Windows Containers? Windows Containers Is a new Server Technology that allows us to run a clean Instance of Windows Server on the same Host. Windows Containers are not VMs because they share the kernel with the container host and all other containers running on it. Windows Containers keep a sandbox file that records all the changes that are […]

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
1 16 17 18 19 20 71