Use PowerShell to Create a Reserved Virtual IP Address (VIP) in Azure

By default, the VM's that you create in Azure will have a dynamic virtual IP address (VIP). Based on this article on Azure, you could simply create a DNS CNAME record for your custom domain and point it to the DNS name that you chose during the creation of your azure VM which should prevent any problems if the virtual IP address happens to change. Maybe you want a reserved virtual IP address for your Azure instance though? There's a limited number of reserved virtual IP addresses per subscription Read more [...]
Posted in Azure, PowerShell | Tagged , | 1 Comment

Use PowerShell to create a Storage Account in Azure

You’ll need to sign up for an Azure account if you don’t already have one: http://azure.microsoft.com. There’s a free trial if you want to try it out. One thing I would suggest if you've never used Azure is to spend a little time in the GUI (your Azure account's portal website) learning about it before you start trying to manage it with PowerShell. That's the same advice I would give to anyone wanting to do something with PowerShell. For example, if you want to create an Active Directory Read more [...]
Posted in Azure, PowerShell | Tagged , | Leave a comment

Using PowerShell Desired State Configuration to build the first domain controller in your Active Directory forest

If you're a frequent reader of the blog articles on this site, then you know that I've been working on using Desired State Configuration to build my test lab environment that runs as Hyper-V VM's on my Windows 8.1 computer. If you would like to know the current state of my test environment, see the previous blog article: "Creating a Desired State Configuration Resource for Self Signed Certificates". The certificate created in last week's blog has been exported and copied to the Windows 8.1 Read more [...]
Posted in Active Directory, Desired State Configuration, PowerShell | Tagged , , , | Leave a comment

Creating a Desired State Configuration Resource for Self Signed Certificates

For those of you who follow my blog, you know that I've been working on using DSC (Desired State Configuration) to fully automate the build of my test environment that runs as Hyper-V VM's on my Windows 8.1 computer. Last week in my blog article titled "Automate the installation of DSC Resource Kit Wave 9 resources with PowerShell Desired State Configuration", I demonstrated how to do just that, automate the installation of the Microsoft created DSC resources that are part of the most recent DSC Read more [...]
Posted in Desired State Configuration, PowerShell | Tagged , , | 1 Comment

Automate the installation of DSC Resource Kit Wave 9 resources with PowerShell Desired State Configuration

Last week, in my blog article titled "Creating Hyper-V VM’s with Desired State Configuration" I left off with a newly created Hyper-V VM named Test01 that was created with DSC and the specific IP address of that VM was added to my trusted host list. For more details on the current state of this test environment, see that previous blog article. Today I'll begin configuring the Test01 VM with DSC. This virtual machine will become the first Active Directory domain controller in my test environment. Read more [...]
Posted in Desired State Configuration, PowerShell | Tagged , , | Leave a comment

Creating Hyper-V VM’s with Desired State Configuration

I'm looking to automate the build of my test environment that runs as Hyper-V virtual machines on my Windows 8.1 Laptop computer. To get started, I thought I would take a look at the xHyper-V DSC resource to create the actual VM's. There's also no reason this shouldn't work on a Windows Server that's running the Hyper-V role. The Hyper-V role has already been added to my Windows 8.1 computer. I also have a previously created virtual hard drive (vhdx) file that has been loaded with the Windows Read more [...]
Posted in Desired State Configuration, Hyper-V, PowerShell, Windows 8.1 | Tagged , , , , | 1 Comment

Awarded the SAPIEN MVP Award by SAPIEN Technologies, Inc

I received notification earlier this week that I've been awarded the SAPIEN MVP award for 2015 by SAPIEN Technologies, Inc. As many of you know, I co-authored SAPIEN's Windows PowerShell TFM 4th Edition which is one of the few books on the market that covers PowerShell version 4. I was one of the beta testers for PowerShell Studio 2014. Since I had early access to the product, it only made sense to write a chapter about that product in the new Windows PowerShell TFM book. What Read more [...]
Posted in PowerShell, SAPIEN Technologies | Tagged , | 1 Comment

How to check the PowerShell version & install a new version

In my last blog article I demonstrated "Where to Find & How to Launch PowerShell". Today I'll continue on to the next step which is determining what version of PowerShell you have installed. PowerShell version information is contained in the $PSVersionTable automatic variable. You can type out $PSVersionTable in the console window that you opened in the last blog article or you can type $psv and press tab to take advantage of what's called tabbed expansion:In Read more [...]
Posted in PowerShell | Tagged | Leave a comment

Where to Find & How to Launch PowerShell

Happy New Year! What better way to start the new year out than by setting some goals and what better goal to set than to learn PowerShell this year. Let's start out at ground zero by learning how to launch PowerShell. On Windows 8 or 8.1, simply start typing the word PowerShell on the Metro interface screen: Maybe you're still running Windows 7? If so, the shortcuts for PowerShell are located in the start menu under All Programs > Accessories > Windows PowerShell: Notice in Read more [...]
Posted in PowerShell | Tagged | 1 Comment

Mount an ISO on a Physical Server running Server Core

So you need to mount an ISO on a physical server that is running Windows Server 2012 R2 Server Core? If so, how would you accomplish that task without a graphical user interface? With PowerShell of course, specifically the Mount-DiskImage PowerShell cmdlet:By default nothing is returned when using the Mount-DiskImage cmdlet and the ISO is mounted using the next available drive letter. The -PassThru parameter was specified in the previous example but notice Read more [...]
Posted in PowerShell, Windows Server 2012 R2 | Tagged , | Leave a comment

PowerShell One-Liner: Create a new Hyper-V VM

My test environment resides on a workstation that runs Windows 8.1 Enterprise Edition with the Hyper-V role enabled. I need to create a new VM that will be used as a second domain controller in my test environment. I'll use a PowerShell one-liner to create this new VM which will use a differencing disk based on a Windows Server 2012 R2 vhdx that has been fully patched and syspreped:µ Read more [...]
Posted in Hyper-V, PowerShell | Tagged , | Leave a comment

Presenting for the Singapore PowerShell User Group PowerBreakfast 007: What’s New in PowerShell Version 5

I'll be presenting a session on "What's New in PowerShell Version 5" for the Singapore PowerShell User Group's PowerBreakfast #007 this Saturday, December 13th beginning at 8:30am (Singapore time). Sign up on Eventbrite if you're interested in attending this event. Here's what you can expect from this presentation: With PowerShell version 4 being announced at TechEd last year (2013) and several preview versions of PowerShell version 5 already being released this year, it shows how committed Read more [...]
Posted in PowerShell | Tagged | Leave a comment