Category Archives: Desired State Configuration

Bangalore PowerShell User Group DSC Work Shop – July 18, 2015

Bangalore PowerShell User Group DSC Work Shop – July 18, 2015

vs-powershell

  • Are you in INDIA?
  • Are you an IT Pro?
  • Are you a Dev?
  • Looking for Automation?
  • IT Manager looking for a bridge between IT Pro’s and Dev’s?
  • Want to learn or know about DEVOPS?

Just 1 day to go!

Bangalore PowerShell User Group announced a Work Shop event to showcase DSC Basics and Advanced topics. Let’s go declarative ! Stop not! @PSBUG opened a gate. Yeah! Book for the workshop and make use of it. Come and explore! Learn and Share!

 

Start-DSCConfiguration WMF 5.0 Multiple Nodes Issue

I am one among the many beginners in PowerShell Desired State Configuration. Recently I saw the TechNet Forum Post so thought of sharing my experience

Error

The WinRM client cannot process the request. The object contains an unrecognized argument: “JobId”. Verify that the spelling of the argument name is
correct.
    + CategoryInfo          : MetadataError: (root/Microsoft/…gurationManager:String) [], CimException
    + FullyQualifiedErrorId : HRESULT 0x803381e1
    + PSComputerName        : DSC2

How to Produce this in WMF 5.0?
Configuration DesiredStateConfigurationDemo
{
    Param([String[]]$ComputerName)
    Import-DscResource -ModuleName xWindowsUpdate
    Node $computerName
    {
        
        xHotFix InstallWMF5
        {
            Path = '\\DSC1\C$\DSCShare\Updates\Some.MSU'
            Id = 'KBsomeid'
            Ensure = 'Present'
        }
    }
}

DesiredStateConfigurationDemo -ComputerName DSC1 , DSC2
Start-DSCConfiguration .\DesiredStateConfigurationDemo -wait -verbose -force

In middle of demo I couldn’t think about anything else. Since few of my clients were eager to get advantages of DSC – So, I just applied configuration using below code – Our Own PowerShell 🙂

'DSC1' , 'DSC2' | %{Start-DSCConfiguration .\DesiredStateConfigurationDemo -ComputerName $_ -wait -verbose -force}