Showing results for PowerShell - PowerShell Team

May 29, 2014
Post comments count0
Post likes count0

Wish I can author DSC Resource in C#!!

PowerShell Team
PowerShell Team

In previous blog, we learned how one can use their PowerShell skills to author DSC resources very easily. Still there are folks (we met some at TechEd NA) who want to author their DSC resources using C# because they are more productive with it than PowerShell language. Well, you can fully leverage the power of DSC by writing your resources in C#. I...

PowerShellDSCDSC Resource Kit
Apr 7, 2014
Post comments count0
Post likes count0

What’s in a name? Using prefixes in PowerShell.

PowerShell Team
PowerShell Team

We’ve talked about this in the past but it’s time for a reminder.  PowerShell uses prefixes in front of nouns to avoid name collisions.  Imagine how many collisions there would be if people used the noun “USER” directly.  Instead, we have cmdlets *-ADUser, *-VPNUser, and *-RDUser.  The use of the prefix avoids name collisions.  When there is a ...

PowerShellJeffrey Snover
Feb 11, 2014
Post comments count0
Post likes count0

DSC Diagnostics Module– Analyze DSC Logs instantly now!

PowerShell Team
PowerShell Team

Have you ever witnessed a DSC Configuration run where you had no idea about what it might have done behind the scenes? Well, then your worries end here! During any DSC Operation, the DSC engine writes into windows event logs, which are like bread crumbs that the engine leaves along the way during any execution. If you read the blog here about DSC...

PowerShellDSCDesired State Configuration
Feb 7, 2014
Post comments count0
Post likes count0

Need more DSC Resources? Announcing DSC Resource Kit Wave 2

PowerShell Team
PowerShell Team

Good news everyone! Starting today, you can use Windows PowerShell Desired State Configuration (DSC) to configure Active Directory and SQL Server (including High Availability Groups). We are pleased to release the next wave of the DSC Resource Kit – one that enables you to start using DSC to solve your real world problems and scenarios. When we ...

PowerShellDSCDesired State Configuration
Feb 4, 2014
Post comments count0
Post likes count0

How to enable Updatable Help for your PowerShell Module

PowerShell Team
PowerShell Team

PowerShell 3.0 lets the user update Help content on a per module basis. In this article, I will explain how you can enable this for your own PowerShell module. Prerequisites: Have a new (script/binary) module, help content for the cmdlets of the module, and a server where the help content is located. For this particular exercise I will be using a...

PowerShellDSCDesired State Configuration
Jan 31, 2014
Post comments count0
Post likes count0

Want to secure credentials in Windows PowerShell Desired State Configuration?

PowerShell Team
PowerShell Team

As you start using Windows PowerShell Desired State Configuration (DSC), you might need to specify credentials for resources. In a previous post we showed you how to define a resource that has a credential property.  In this post, I’ll discuss how to properly encrypt credentials when used in a DSC configuration. Prerequisites First, let us di...

PowerShellDSCDesired State Configuration
Jan 9, 2014
Post comments count0
Post likes count0

Separating “What” from “Where” in PowerShell DSC

PowerShell Team
PowerShell Team

As you already know we introduced PowerShell Desired State Configuration to the world at our TechEd NA 2013 Session. The session also introduced the notion of structural configuration (what) and environmental configuration (where) (at the 25:50 min mark). Structural configuration defines what is needed and does not change based on the environment...

PowerShellDSCDesired State Configuration
Jan 3, 2014
Post comments count1
Post likes count1

Using Event Logs to Diagnose Errors in Desired State Configuration

PowerShell Team
PowerShell Team

Windows PowerShell Desired State Configuration (DSC), just like any other Windows software, records errors and events in logs that can be viewed from the Event Viewer. However, the trick lies in effectively parsing these logs, so we know exactly why a particular operation failed. In this blog, we explain where the DSC event logs are, and how the...

PowerShellDSCDesired State Configuration
Dec 26, 2013
Post comments count0
Post likes count0

Holiday Gift – Desired State Configuration (DSC) Resource Kit Wave-1

PowerShell Team
PowerShell Team

Continuing with the tradition of holiday gifts to the PowerShell community, the PowerShell team has just released DSC Resource Kit Wave-1 - a set of PowerShell modules that contain DSC resources and example configurations. The various modules that are part of DSC Resource Kit Wave 1 can be found here. When DSC was introduced in PowerShell v4, we...

PowerShellDSCDesired State Configuration
Dec 9, 2013
Post comments count0
Post likes count0

Understanding Meta Configuration in Windows PowerShell Desired State Configuration

PowerShell Team
PowerShell Team

UPDATE 2/6/2018 - The latest information regarding LCM configuration is available in the documentation at the following link: https://docs.microsoft.com/en-us/powershell/dsc/metaconfig .......... LCM and Meta Configuration To understand the concept of Meta Configuration, first we need to know what Local Configuration Manager (LCM) is, and wha...

PowerShellDSCDesired State Configuration