Need one liner for Managing SCCM Client Site Code This topic contains 2 replies, has 3 voices, and was last updated by Mohammed Feroze Khan 2 years, 8 months ago. Author Posts March 20, 2015 at 9:56 am #23536 feroze khanParticipant Could someone plz guide me to create a one liner PS Command for the following 3 commands? ++++++++++++++++++++++++++++++++++++++++++++ $a = New-Object -ComObject Microsoft.SMS.Client $a.SetAssignedSite($a.AutoDiscoverSite()) $a.ResyncPolicy() ++++++++++++++++++++++++++++++++++++++++++++ The reason why I am looking for a one liner is because I want to avoid creating / updating a OSD package for the script. Thanks in advance. Regards Feroze March 20, 2015 at 10:05 am #23537 Don JonesKeymaster $a = New-Object -ComObject Microsoft.SMS.Client;$a.SetAssignedSite($a.AutoDiscoverSite());$a.ResyncPolicy() March 23, 2015 at 2:58 am #23584 Mohammed Feroze KhanParticipant Thanks Don. Works great. Author Posts You must be logged in to reply to this topic.