You can run below command to backup IIS configuration:
If you want to restore IIS configuration file backup then you can run below command:
You can check all the list of backups and history files with below command:
Code:
%windir%\system32\inetsrv\appcmd.exe add backup "Backup-Name"
Code:
%windir%\system32\inetsrv\appcmd.exe restore backup "Backup-Name"
Code:
%windir%\system32\inetsrv\appcmd.exe list backup