I provide a number of useful tools to our 1st and 2nd line teams through a web application – mainly because it is flexible, easy to update and centralised. We are launching Office 365, as a side-by-side service. Not all of our users are entitled to it (through various reasons) so checking whether or not
Continue reading Using Connect-MsolService inside an ASP.net Web Application
Tag: PowerShell
WSUS: Copy Updates Between Groups
So, I am restructuring some WSUS groups to make them easier to report on, but I already had a large number of approvals on one group that I wanted to retain. There are already a few interpretations of this on the web, but none that in my opinion are as slick as this, or provide
Continue reading WSUS: Copy Updates Between Groups
Maximum Number of PowerShell Parameter Sets in Function
I have been working on a module which includes a function that has many options for how it can be executed. Through the flexibility of Parameter Sets I have been able to define in detail all of the available options and use the built in validation to minimise the amount of variable checking that I
Continue reading Maximum Number of PowerShell Parameter Sets in Function
PowerShell: Running processes independently of a PS Session on Remote Machines
PowerShell remoting is a great way of utilising commands and processing power of remote systems all from one console. It is also good at pulling information from remote systems and collating this together. There are plenty of examples of using PSSessions, and the Invoke-Command functions to manipulate remote machines, bring down remote modules to work
Continue reading PowerShell: Running processes independently of a PS Session on Remote Machines
PowerShell: Using AlphaFS to list files and folder longer than 260 characters and checking access
PowerShell is great. However, it has a couple of limitations – either by design or inheritance that are annoying to say the least. One commonly documented failing, which is inherited from the .NET framework is its inability to access files that have a total path length over 260 characters. Another limitation is the linear nature
Continue reading PowerShell: Using AlphaFS to list files and folder longer than 260 characters and checking access
Back Up SharePoint Farm using PowerShell
We have a small SharePoint Foundation 2010 site here, which contains some information which we wanted to protect. The size of the site did not particularly warrant the purchase of a license for any specialist backup software, so we were looking for a way to back it up, send some notifications and retain a specific
Continue reading Back Up SharePoint Farm using PowerShell
Modifying GPO Printer Deployment using PowerShell
We use the Deployed Printers feature in the Print Management console to deploy printers to users. As part of the printer migration that I have been working on, I needed to modify all of these GPOs so that all of the policies directed all of the users to the new print server. There are over
Continue reading Modifying GPO Printer Deployment using PowerShell
Renaming NetApp SnapMirror Destinations
We have a collection of NetApp devices hosting a large number of volumes, and utilise SnapMirrors extensively for backup and DR, as well as moving information between departments As the storage has grown, and different people have added new volumes, new SnapMirrors have been created, with a wide variety of naming formats to match the
Continue reading Renaming NetApp SnapMirror Destinations
PowerShell 3: Add Multi-line TXT Record to DNS
This had me stumped for about 30 minutes, until I finally worked out the correct syntax to make this all work. I was looking for a way to create a TXT record on my DNS server. The data though is a multi-line record – and had to be multi-line for the server to understand the
Continue reading PowerShell 3: Add Multi-line TXT Record to DNS