How will you disable restarting of IIS on the local system ?
-
Iisreset
-
inetmgr -disable
-
IISreset /disable
-
iisreset /donotreset
C
Correct answer
Explanation
The 'iisreset /disable' command prevents the IIS service from being restarted. This is useful during maintenance windows when you want to ensure IIS stays stopped. Option A without any flags would actually restart IIS. Option B uses 'inetmgr' which opens the IIS management console, not a command-line tool. Option D uses a nonexistent flag - the correct flag is '/disable'. Note: The command is typically case-insensitive, so 'IISreset' and 'iisreset' both work.