Skip to content

Instantly share code, notes, and snippets.

@abenedykt
Last active November 19, 2015 13:16
Show Gist options
  • Save abenedykt/a27daa9cd148d96bfdc4 to your computer and use it in GitHub Desktop.
Save abenedykt/a27daa9cd148d96bfdc4 to your computer and use it in GitHub Desktop.
resetin remote iis :)
REM
REM if this does not work with a server, rcp server might be blocked with the firewal
REM so allow it on a firewall
REM
REM netsh advfirewall firewall add rule name="Remote IIS inetinfo" dir=in action=allow description="Remote IIS Service Managment" program="%systemroot%\System32\inetsrv\inetinfo.exe" enable=yes
REM
REM netsh advfirewall firewall add rule name="COM+ Remote Administration (All Programs)" dir=in action=allow description="" program="%windir%\system32\dllhost.exe" enable=yes localport=RPC protocol=tcp
iisreset zos-srv2
dnu publish src\src\Emp.WebApp\ --out \\zos-srv2\emp_publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment