Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Added a script to enable sideloading apps for azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Nov 18, 2018
1 parent 5b4500c commit ad0c8de
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Build/Enable_Sideloading.ps1
@@ -0,0 +1,21 @@
#Powershell script to Enable Sideloading for Windows 10 v1.0
# Author - Vikram Bedi
# vikram.bedi.it@gmail.com
# Powershell scirpt to perform the follwing Registry entry:
# Win 10 - AllowAllTrustedApps
# start -Wait C:\Windows\System32\reg.exe -ArgumentList 'add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock /v AllowAllTrustedApps /t REG_DWORD /d 1 /f'

$registryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"

$Name1 = "AllowAllTrustedApps"
$value1 = "1"
New-ItemProperty -Path $registryPath -Name $name1 -Value $value1 -PropertyType DWORD -Force

# Powershell scirpt to perform the follwing Registry entry:
# Win 10 - AllowDevelopmentWithoutDevLicense
# start -Wait C:\Windows\System32\reg.exe -ArgumentList 'add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock /v AllowDevelopmentWithoutDevLicense /t REG_DWORD /d 0 /f'

$Name2 = "AllowDevelopmentWithoutDevLicense"
$value2 = "0"

New-ItemProperty -Path $registryPath -Name $name2 -Value $value2 -PropertyType DWORD -Force

0 comments on commit ad0c8de

Please sign in to comment.