Skip to content

Commit 4e77fb9

Browse files
authored
Add Bypass to VS shortcut (#49940)
2 parents b30f1ee + 1ba3253 commit 4e77fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/restore-toolset.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function CreateVSShortcut()
112112
$wsShell = New-Object -ComObject WScript.Shell
113113
$shortcut = $wsShell.CreateShortcut($shortcutPath)
114114
$shortcut.TargetPath = $powershellPath
115-
$shortcut.Arguments = "-WindowStyle Hidden -Command ""$commandToLaunch"""
115+
$shortcut.Arguments = "-WindowStyle Hidden -ExecutionPolicy Bypass -Command ""$commandToLaunch"""
116116
$shortcut.IconLocation = $devenvPath
117117
$shortcut.WindowStyle = 7 # Minimized
118118
$shortcut.Save()

0 commit comments

Comments
 (0)