enable monitoring within a certain deployment share using Powershell

คำตอบ enable monitoring within a certain deployment share using Powershell

  • Friday, November 02, 2012 3:10 AM
     
     

    The powershell cmdlet Enable-MDTMonitorService does what it says on the tin it enables the service.

    But Is there anyway to enable monitoring within a certain deployment share using Powershell?

     Thanks

    Paul


    Twitter: paul__iddon.....Any advice given in these forums should be tested in a non production environment before implementing.

All Replies

  • Friday, November 02, 2012 10:22 AM
     
     

    Hi Paul,

    I doubt that. IMHO - it is not related to MDT but WinSock and TCP.

    The MDT Service will listen on a specific port (9800, 9801 or custom one if you specify), on a specific Ip address or All IP and on specific process. The process in this case is always System (PID 4).

    For one DS - if you are using ports 9800, 9801. If you use the same ports or different ports for a new DS like 9803,9804. MDT will still listen only on the original one, even if you restart the service.


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

  • Friday, November 02, 2012 12:17 PM
     
     
     

    Thanks Vik for the reply.

    I'm not really concerned about the ports. Its more the fact I have to manually go into a deployment share to turn on monitoring within the deployment share properties.

    All the powershell does is set up the service and the ports

    It will not turn on the deployment share monitoring for a specific share.

    Thanks

    Paul


    Twitter: paul__iddon.....Any advice given in these forums should be tested in a non production environment before implementing.

  • Friday, November 02, 2012 12:33 PM
     
     Proposed Answer

    That is true. You cannot edit that by powershell.

    Instead you can modify the settings.xml under \DS\Control folder

    If you need to enable Monitoring or if it is enabled, it would look like this in the XML. In my case server name is MDT2012

    <MonitorHost>mdt2012</MonitorHost>

    If you need to disable Monitoring or if it is disabled, it would/should be like this (empty)

     <MonitorHost></MonitorHost>

    Hope that helps!!


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

    • Proposed As Answer by Vik Singh Sunday, November 11, 2012 10:51 AM
    •  
  • Monday, November 12, 2012 3:24 PM
     
     Answered

    Vik

    I had a reply on Twitter from M Neihaus. If I use the Get-itemproperty and set-itemproperty I can set the monitoring and any other deployment share setting.

    Thanks

    Paul


    Twitter: paul__iddon.....Any advice given in these forums should be tested in a non production environment before implementing.

    • Marked As Answer by Paul_Iddon Monday, November 12, 2012 3:24 PM
    •  
  • Monday, November 12, 2012 3:32 PM
     
     
    Hi Paul - Thanks for letting us know :)

    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"