Showing all posts with category: PowerShell

I've recently been trying to share files and folders with external users from within my Office 365 tenant and have been having issues.  Although the GUI was configured as per Microsoft's best practices I was still unable to share anything externally and was receiving the "Your organization's polici...

Continue reading...

I have complied some notes on how to install and configure DHCP using Powershell cmdlets.  These can come in handy for setting up lab environments quickly or scripting changes within your environment easily.

The first cmdlet is how to install the necessary role: Install-WindowsFeature -IncludeMa...

Continue reading...

Every now and again you need to troubleshoot firewall rules and Telnet is a great tool to help understand if a port is open or not between two devices. 

However Telnet is not enabled by default anymore, it has been like that since Windows Server 2008.

The following Powershell commands will hel...

Continue reading...

I've been looking at scripting out the build out of my Azure Lab so I can build it, use it for a purpose then rip it down and start again to use it again.  One of the scripts that I've pulled together is configuring non-integrated DNS Zones with Powershell both on a local server and a remote server....

Continue reading...

Powershell Remoting can allow you to run individual commands or run full Powershell sessions on remote systems.  Unfortunately by default it is locked down, so before you try to use it you need to enable it.  Within a domain this is an easy process.

  1. On the computer you wish to remote to open up a...

Continue reading...

I have a small lab setup within Azure and over the past week I have been working quite a bit within that lab perfecting a couple of PowerShell scripts.  As I have limited credits available to me within Azure I am always careful to ensure that my Virtual Machines (VMs) are only running when I need th...

Continue reading...

I have recently been working on a project that has seen me pull together a PAC file that helps to separate Office 365 Express Route traffic, Office 365 CDN traffic, internal traffic and general Internet traffic to different proxy servers. It's been a complicated process and one of the issues was gat...

Continue reading...

I've recently been working on applying retention policies to mailboxes and we've been doing a granular roll-out to the users.  I've been using some Powershell commands to track who has the policy applied and who hasn't.

The following command will list all users who have a retention policy applie...

Continue reading...

Was pondering how to trigger a event log entry on a server today at work in order to test SCOM monitoring, came across Powershell and the various commands that can be used for to do something like this. Found it quite interesting so thought it would be worth writing a wee post about it.

To begin...

Continue reading...