Tag: PowerShell

Use PowerShell to add an additional Domain Controller to an existing Windows Server 2012 Active Directory Domain

Recently, I decided to add a second domain controller to my mikefrobbins.com domain. The existing server and this new server that will become a domain controller both run the Microsoft Windows Server 2012 operating system and both were installed with the default installation type of server core (no GUI). Even though the GUI can be turned on and off in Windows Server 2012 (unlike in Windows Server 2008 and 2008 R2), I prefer not to add the GUI unless absolutely necessary. You've already loaded Read more [...]

Reminder: Mississippi PowerShell Users Group Meeting Tonight!

Tonight from 8:30pm to 10pm Central Time I'll be presenting at the first ever Mississippi PowerShell Users Group online (virtual) meeting. The topic for my presentation is "Parsing the Event Logs of Windows Based Systems with PowerShell". We'll start out with a basic overview via a few PowerPoint slides: Next and for the majority of the meeting, I'll be demonstrating how to parse the event logs using PowerShell. This will include how to figure out what cmdlets can be used to parse the event Read more [...]

Become a PowerShell SuperHero with SAPIEN Technologies PowerShell Studio 2012

I saw a tweet last week titled "The Friday Funny: The Best T-Shirts at #RSAC" and while those t-shirts are cool, they're not nearly as awesome as the ultimate technology related T-Shirt which is from SAPIEN Technologies and when combined with their PowerShell Studio 2012 product can turn you into a PowerShell SuperHero as seen in the following image: Note: The PowerShell enthusiast depicted in the previous image is not an actual superhero, he is only portraying one.  Seriously, the T-Shirt Read more [...]

Use PowerShell to Remotely Enable Firewall Exceptions on Windows Server 2012

You're attempting to view the event logs of a couple of remote Windows Server 2012 servers that have been installed with the default installation type of server core  (No GUI). You receive the following error when attempting to connect to these servers using the Event Viewer snapin in an MMC console: "Computer 'DC01.MIKEFROBBINS.COM' cannot be connected. Verify that the network path is correct, the computer is available on the network, and that the appropriate Windows Firewall rules Read more [...]

Install SharePoint 2013 with PowerShell to Prevent the Dreaded Database Names with GUID’s

Do you have a shared SQL Server back-end for multiple SharePoint farms? Do you like being able to easily tell which SharePoint databases go with which SharePoint farm? If you install SharePoint 2013 using the GUI wizard, you’ll end up with database names that have GUID’s on them that look like this: This blog will guide you through installing SharePoint Foundation 2013 with PowerShell so you’ll have full control over the database names. This process is very similar to installing SharePoint Read more [...]

Use PowerShell to Create a Scheduled Task that Uses PowerShell to Pause and Resume AppAssure Core Replication

In this scenario there are multiple AppAssure Core servers, one at each physical location that is used to backup the local servers. Each AppAssure Core server is setup to replicate its data to an offsite AppAssure Core server at a separate physical location across a wide area network for disaster recovery purposes. Due to bandwidth constraints, you want to pause the replication between the AppAssure Core servers during normal business hours. All of the AppAssure Core servers in this scenario Read more [...]

PowerShell Remoting Insanity with AppAssure and the Invoke-Command Cmdlet

Although simple, I thought I would share the following PowerShell script since it's neat due to the fact that it uses the PowerShell remoting Invoke-Command cmdlet to retrieve a list of server names that are protected by an AppAssure Core server where the status is not protected, then it uses the output of that portion of the script (Nesting in parenthesis) as the input for the ComputerName parameter of the outer portion of the script which uses another Invoke-Command to attempt to start the Read more [...]

Grand Prize Winner of TrainSignal’s Jeff Hicks PowerShell Challenge

A little over a month ago, I entered a PowerShell contest named "Jeff Hicks' PowerShell Challenge" that was held by TrainSignal. Each day, a PowerShell related question was posted and contestants were given 24 hours to send an email to TrainSignal with the answer. At the end of the competition, the individuals who answered all four days worth of questions correctly were entered into a drawing and I was notified that I was the winner of this "grand prize". I was emailed the information to access Read more [...]

Using PowerShell Remoting to Manage Multiple AppAssure Core Servers

In my last blog, I was logged directly into an AppAssure Core server via remote desktop and was running PowerShell commands in the PowerShell console directly on the server. Managing your servers by RDPing directly into them is a bad practice in my opinion. In this blog, I'll explore a few options that could be used to manage an AppAssure Core server with PowerShell without having to resort to logging directly into it with Remote Desktop. Note: All of the following examples require PowerShell Read more [...]

Using PowerShell to Determine AppAssure Agent Status and Version

The Get-ProtectedServers PowerShell cmdlet which is part of the AppAssure PowerShell Module that's installed on your AppAssure Core server version 5.3.1 or higher allows you to determine what servers are being protected by a particular AppAssure Core server. Since I'm running PowerShell version 3 on the AppAssure Core server shown in the example below, I didn't have to explicitly import the AppAssure PowerShell module, if you're running PowerShell version 2, you would need to run Import-Module AppAssurePowerShellModule Read more [...]

Dell AppAssure Version 5.3.1 Adds PowerShell Support

I've been working with Dell AppAssure for several months now and in their version 5.3.1 release they've added PowerShell support via a module named AppAssurePowerShellModule. There are a total of 31 cmdlets in this Module: One thing that I thought was interesting is according to AppAssure's documentation on how to import their PowerShell module, it states that PowerShell version 3 is preferred. Over the next few weeks I'll cover some of the tasks that I've used the cmdlets in this module to Read more [...]

The Perfect New Year’s Resolution: Lose Weight & Learn PowerShell in the Process

The most common New Year's resolution has to do with either losing weight or getting yourself into better shape. I thought I would share the secret of how I lost 50+ pounds, kept it off, and learned PowerShell in the process. Sound like something worth doing? Let's face it, there's no easy way to lose weight, although you don't have to starve yourself to lose those pounds either. Losing weight takes time, you didn't put it on overnight and you're not going to take it off overnight. I often hear Read more [...]

Book Review: Learn Windows PowerShell 3 in a Month of Lunches, Second Edition

Today makes 28 days since I started reading the “Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" book written by Don Jones and Jeff Hicks, published by Manning. This book, shown in the image on the left, contains 28 chapters and is designed to be read one chapter a day. One hour is enough time to read a single chapter and work through the re-enforcing lab exercises at the end of that chapter. This method of learning is extremely effective, especially for a beginner, which gives Read more [...]

Save 50% Off on the New PowerShell Deep Dives MEAP Book!

Save 50% on PowerShell Deep Dives and other selected books. Just enter psddlaunch50 in the Promotional Code box when you check out. Expires Wednesday, December 28. Only at manning.com. Here's your chance to learn from the best in the business. PowerShell Deep Dives is a trove of essential techniques, practical guidance, and expert insights you earn only through years of experience. In the book's 4 parts--Administration, Scripting, Development, and Platforms--you'll find 29 concise, brilliantly-clear Read more [...]

Book Review: Microsoft Windows PowerShell 3.0 First Look

About a week ago I started reading the “Microsoft Windows PowerShell 3.0 First Look” book written by Adam Driscoll and published by Packt. One of the things I like about this book is the ability to read it in about a week since it’s only seven chapters long. In my opinion, its intended audience is people who are already somewhat familiar with PowerShell version 2 that are looking for a way to quickly get up to speed on the new features in version 3. Although I was already familiar with Read more [...]