Skip to content

Commit f7e8b01

Browse files
committed
Merged PR 717045: Play nice with powershell profiles
1 parent 52d2c18 commit f7e8b01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Shared/Scripts/GcShared.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
@if /I "%~1"=="/h" goto :Help
1313
@if /I "%~1"=="/help" goto :Help
1414

15-
powershell.exe -ExecutionPolicy Bypass %~dpn0.ps1 %*
15+
powershell.exe -NoProfile -ExecutionPolicy Bypass %~dpn0.ps1 %*
1616
@exit /b %ERRORLEVEL%
1717

1818
:Run64
1919
@"%WinDir%\SysNative\cmd.exe" /c "%~f0" %*
2020
@exit /b %ERRORLEVEL%
2121

2222
:Help
23-
@powershell.exe -ExecutionPolicy Bypass Get-Help %~dpn0.ps1 -Detailed
23+
@powershell.exe -NoProfile -ExecutionPolicy Bypass Get-Help %~dpn0.ps1 -Detailed

Shared/Scripts/Init.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ REM *********************************
8787
)
8888

8989
REM Install latest Azure Artifacts Credentials Provider (https://github.com/microsoft/artifacts-credprovider)
90-
powershell -Command "iex ""& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"""
90+
powershell -NoProfile -Command "iex ""& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"""
9191

9292
set _BUILDXL_BOOTSTRAP_OUT=%ENLISTMENTROOT%\Out\BootStrap
9393

0 commit comments

Comments
 (0)