i have wcf service runs ps command start iis websites on local machine remote machines. commands are:
$sitename = '" + sitename + "'; $servername = '" + servername + "'; $block = {" + block + "}; $session = new-pssession -computername $servername invoke-command -session $session -scriptblock $block -argumentlist $sitename to command work, need add application pool account running wcf service administrators group on machine website hosted.
is there way can achieved without giving application pool account admin access?
regards, shilpa
no, if directly want start apppool have admin.
a workaround have windows service or run scheduled task start/stop application pool. site trigger somehow. dropping file somewhere easy , should work.
Comments
Post a Comment