none
how to run cmd script in powershell RRS feed

  • Question

  • cd c:\Windows\System32\inetsrv
    appcmd.exe set site /site.name:"MySite" /bindings:http/*:80:MySite1.com,http/*:80:MySite2.com

    how to run above script thru powershell 

    please guide me.

    • Moved by Bill_Stewart Friday, March 15, 2019 7:50 PM This is not "train me in basics step-by-step in a forum" forum
    Thursday, February 14, 2019 11:49 AM

Answers

  • Just type the exact same lines at a PS prompt and it will run but add more quotes to the bindings

    cd c:\Windows\System32\inetsrv
    appcmd.exe set site /site.name:"MySite" /bindings:"http/*:80:MySite1.com, http/*:80:MySite2.com"


    \_(ツ)_/

    • Marked as answer by DushYant21 Thursday, October 3, 2019 12:21 PM
    Thursday, February 14, 2019 12:05 PM