Category: PowerShell 101

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

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 You can import it to another mailbox by running […]

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

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

Read More »

Deploying a Windows Server 2016 read-only domain controller (RODC) with PowerShell

An RODC is a domain controller (DC) that holds a read-only copy of the Active Directory database and the SYSVOL folder. It supports unidirectional replication and only pulls data from its replication partner when the data changes on writable domain controllers. Enterprises can deploy RODCs in branch offices where they cannot guarantee physical security. RODC […]

Read More »

Automating WSUS with PowerShell

The scripts explained in this post allow you to automate several Windows Server Update Services (WSUS) tasks such as synchronization, approvals, cleanups, and scheduled update installations. Syncing WSUS with PowerShell and Task Scheduler ^ In this article, I assume you are familiar with WSUS administration. Right after installing WSUS, you have to configure periodic synchronization. Unfortunately, […]

Read More »

Powershell – Remove Members from AD Groups in bulk

Now there are several ways that you can remove members from a group. The simplest of all is by using Remove-ADGroupMember. Let us see the examples associated with this cmdlet. Get-Help Remove-ADGroupMember -Examples As you can see in the Examples, we need to know the Members that are part of the group in order to […]

Read More »

Exchange Powershell – Find Mailbox size of users in a Distribution List

Say that I have a Distribution List called “Finance Team“. At first I will have to find out the members of the Distribution List so then I can individually find their mailbox sizes. $GroupName = Read-Host “Kindly provide the name of the Distribution Group” Get-DistributionGroupMember $GroupName | Select Name | Export-Csv c:\Members.csv -NoTypeInformation Let us […]

Read More »

FashionBuzz © 2015 | All Rights Reserved Theme by Flythemes