locked
new-mdtlocation settings parameter RRS feed

  • Question

  • Hi, I am trying to create some locations in mdt database using powershell but can't find how to specifiy values for required parameter "settings". So, "new-mdtlocations  -name "Test" -settings  #?# .. always fails.

    Appreciate your help!

    Sunday, August 11, 2013 8:34 AM

Answers

  • It's done as a hash table, so it would look like this:

    New-MDTLocation -name LocationName -gateways GWAddress1,GWAddress2 -settings @{setting1="value1";setting2="value2"}


    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    • Marked as answer by anuragyadav Sunday, August 11, 2013 3:52 PM
    Sunday, August 11, 2013 1:34 PM
    Answerer

All replies

  • It's done as a hash table, so it would look like this:

    New-MDTLocation -name LocationName -gateways GWAddress1,GWAddress2 -settings @{setting1="value1";setting2="value2"}


    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    • Marked as answer by anuragyadav Sunday, August 11, 2013 3:52 PM
    Sunday, August 11, 2013 1:34 PM
    Answerer
  • Thanks, i got it working! appreciate your help!
    Sunday, August 11, 2013 3:52 PM