Skip to content

Instantly share code, notes, and snippets.

@weipah
weipah / deviceportal-fix.ps1
Last active June 19, 2017 13:44
Enable https support for Windows IoT Device Portal Website
# Fix ownership
# Is it correct that it changes ownership only for subfolder "service"?
# Why "machine" and not "HKEY_LOCAL_MACHINE?
.\TakeRegistryOwnership.exe MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\webmanagement\service
# Add registry keys
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\webmanagement\service /v EncryptionMode /t REG_DWORD /d 0x3 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\webmanagement\service /v HttpsPort /t REG_DWORD /d 4443 /f
# add corresponding firewall rules