ODBC connection through DSC

Welcome Forums DSC (Desired State Configuration) ODBC connection through DSC

This topic contains 3 replies, has 3 voices, and was last updated by

1 year, 11 months ago.

  • Author
  • #69069

    Points: 3
    Rank: Member

    I've got an application that I run an powershell command(add-odbcdsn) as part of its install. Does anyone know of a DSC resource that could assist me with running that command?

  • #69090

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Nope. You'd have to do something custom, either a Script resource or a full resource. But you have to write the full Test portion to determine if your command NEEDS to be run or not.

  • #69094

    Points: 4
    Rank: Member

    ODBC entries are just registry entries under HKLM\Software\ODSB\ODBC.INI\ you could just use the registry resource

  • #69120

    Points: 3
    Rank: Member

    Thanks for the info Dave. I actually exported the .reg and use cRegFile Dsc resource to import it in.

The topic ‘ODBC connection through DSC’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort