User-460007017 posted
Hi Paul,
Of course, we could set the custom site ID. In fact, the command could be more simple:
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter "system.applicationHost/sites/site[@name='TestSite5']" -name "id" -value 8
Best Regards,
Yuk Ding