Tag: PowerShell

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

The PowerShell Deep Dives Book is now available via the Manning Early Access Program (MEAP)

The PowerShell Deep Dives Book is now available for purchase via the Manning Early Access Program (MEAP). This should be an awesome book based on the list of authors and the chapter titles. If you're someone who has found interesting and useful information on my blog site, you'll definitely enjoy reading the chapter that I'm writing in this book. Click on the book image for more information. µ Read more [...]

Determine what OU a Computer Account is in with PowerShell

Problem: You've been asked to send an email to someone with the location in Active Directory (what Organization Unit or OU) where a particular computer account is located. Solution: As you could have probably guessed, the solution is to query Active Directory with PowerShell and use the Send-MailMessage cmdlet to send the results to the recipient: Update: I thought I would elaborate a little more based on Jeff Hicks comments. Unless this PowerShell command Read more [...]

PowerShell: Determine Exposed WMI and CIM Class Methods

I sat through the Arizona PowerShell User Group meeting yesterday evening via a Lync online meeting. Don Jones was the guest speaker this month. His session was on generating reports from PowerShell. It was a super cool session and if you're not taking advantage of user group meetings, you're really missing out. Interface Technical Training was the sponsor for the user group meeting this month. I'm currently working my way through their PowerShell video training series which I've been very impressed Read more [...]

The Unboxing Experience: Learn Windows PowerShell 3 in a Month of Lunches, Second Edition Book

When I arrived at home after work yesterday, I found a surprise box on my desk: A quick look at the label on the side of the box gave away its secret contents. It was my new, hot off the press, copy of "Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" book written by Don Jones and Jeffery Hicks, published by Manning: I have to say that it was packed very well for a book. I recently received another package from a different vendor that contained a fragile item that wasn't Read more [...]