CmdID / PowerShell / Cmdlets / Export
Export-IISConfiguration
Exports the IIS configuration and machine keys. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-DontExportKeysIndicates that this operation does not export the keys.-ForceForces the command to run without asking for user confirmation.-KeyEncryptionPasswordSpecifies the key encryption password for the exported keys.-PasswordSpecifies the password of the account for accessing the physical location.-PhysicalPathSpecifies the location to which to export the configuration and keys.-UserNameSpecifies the user name of the account to access the physical location.