Powershell

Exchange Shell – Get all shared mailboxes with primary SMTP

Exchange Shell – Get all shared mailboxes with primary SMTP

We recently received a request to provide a project manager with a full list of all shared mailboxes with their primary SMTP addresses that were in Microsoft Exchange. To do this is a pretty straight forward task using Exchange Management Shell (EMS). Just go ahead and open your EMS and run the following command: This […]

Import Active Directory Powershell Module

Import Active Directory Powershell Module

If you want to use Active Directory modules for Powershell then you can will need to run the commands to import the required module and then install the RSAT tools. To do this, open up an elevated Powershell command box and run the following command to import the Server Manager module: Import-Module ServerManager Once that […]

Start a stopped service on multiple devices using Powershell

Start a stopped service on multiple devices using Powershell

Following on from our recent guide about restarting a service on multiple devices, we were also asked about starting a stopped service using a similar method. This is pretty simple and can be carried out in almost exactly the same way. Powershell Script So to carry this out, you should create a txt file with […]

Restart a service on multiple devices using Powershell

Restart a service on multiple devices using Powershell

We recently had a requirement to restart a single service on multiple devices across a single network. At first, it was going to be the job of the helpdesk to logon to each device and manually restart this service. However, as usual, there is always a way of using Powershell to speed up such tasks. […]

Enable Windows Remote Desktop Protocol and Set Firewall Rules using PowerShell

Enable Windows Remote Desktop Protocol and Set Firewall Rules using PowerShell

If you are using Windows Server 2012 or newer, or if you are just using Windows Server Core, then this Powershell script will help you out by enabling Remote Desktop and setting the correct firewall inbound rules. Simply open up an elevated Powershell command box, or use Powershell ISE and use the two scripts below, […]

SCSM – Deleting Individual Items

SCSM – Deleting Individual Items

When using System Center Service Manager (SCSM) you can sometimes end up with Incidents, Change Management items or Service Requests that need to be deleted individually. You an carry this out by using a combination of SMLets and PowerShell. INSTRUCTIONS The first thing you will need to do is to download and install SMLets on your […]

WSUS – Cleanup using Powershell with email notification output

WSUS – Cleanup using Powershell with email notification output

lntroduction If you are using WSUS in your environment, you may want to run a scheduled task to cleanup old updates and compress some of the larger updates to free up space on your server. A good way of doing this is to run a Powershell script which will take care of all your cleanup […]

WSUS Powershell Cleanup Tool

WSUS Powershell Cleanup Tool

Download To download, simply scroll down towards the bottom of this page and you will see the options for this download. Ensure you select the correct one and click the blue Download button as detailed below:

Bulk Remove SCOM Management Packs

Bulk Remove SCOM Management Packs

If you are using System Center Operations Manager (SCOM) then you may have Management Packs in your system that you may longer want – especially if, like me, you go and add as many as you can in blissful ignorance expecting to get lots of tasty data. Then realising that this is a terrible idea […]

Inject Windows Updates into WIM Image Files Using PowerShell

Inject Windows Updates into WIM Image Files Using PowerShell

To inject Windows Updates into custom-built images that you are using in your Configuration Manager OSD environment, you may find that keeping them up to date is a real problem. If you are happy with the image itself and do not want to make any changes to it, why should you need to rebuild and […]

SCCM Distribution Point Pre-Requisite Powershell Script

SCCM Distribution Point Pre-Requisite Powershell Script

If you are setting up some distribution points for Configuration Manager (SCCM) then you will need to ensure that you have all the correct server features installed and also the correct firewall ports opened. To do this, we have created a quick PowerShell script to carry this all out for us. To download this script […]

Scroll to top