The mother of all PowerShell blogs week is coming next week!

Next week, beginning on Monday March 30th, a group of PowerShell MVP's and/or enthusiasts who write PowerShell related blog articles on a consistent basis will team up to publish a week long series of blog articles on their sites or the site where they blog at. This isn't a spoiler alert so I'm pleading the fifth when it comes to the details of those blog articles, but based on what the team has already made public, I can tell you that they're all on one central topic and that topic is PowerShell Read more [...]
Posted in PowerShell | Tagged | Leave a comment

Create a New Empty File with the PowerShell Out-File Cmdlet

A few weeks ago I was setting up OpenSSL on a Windows machine and I was following a Linux tutorial which used the "touch" command to create a new empty file. To accomplish the task of creating a new empty file with PowerShell, the most straight forward way is to use the New-Item cmdlet:I inadvertently discovered another way to create a new empty file with PowerShell which I thought I would share with you guys, the readers of my blog. You may see some Read more [...]
Posted in PowerShell | Tagged | 1 Comment

Use PowerShell to Create a Linux VM in Azure

In a couple of my previous blog articles, I've demonstrated how to create a storage account in Azure and how to create a reserved virtual IP address in Azure. Both of those items will be used in today's blog article so I recommend reading through those previous blog articles if you haven't already done so. The goal in this blog article is to build a CentOS based OpenLogic 7.0 VM in Azure except using PowerShell instead using the Azure portal website (GUI): First, the name of the image that Read more [...]
Posted in Azure, CentOS, Linux, PowerShell | Tagged , , , | Leave a comment

Automatically create a checksum and publish DSC MOF configuration files to an SMB pull server

You've configured one or more DSC (Desired State Configuration) SMB pull servers in your environment. You've also configured the target nodes appropriately. One problem that seems to be a constant problem in your environment when authoring and updating DSC configuration files (MOF files) is keeping track of what GUID belongs to which machine and it's also a common problem to forget to update the corresponding checksum when a configuration file is updated. Last week, you spent an entire day troubleshooting Read more [...]
Posted in Desired State Configuration, PowerShell | Tagged , , | Leave a comment

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 , | 3 Comments

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