Launch-VsDevShell.ps1
Locates and imports a Developer PowerShell module and calls the Enter-VsDevShell cmdlet
Full path
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\Launch-VsDevShell.ps1
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1Commands
Proxy execution
powershell -ep RemoteSigned -f .\Launch-VsDevShell.ps1 -VsWherePath {PATH_ABSOLUTE:.exe}Execute binaries from the context of the signed script using the “VsWherePath” flag.
os: Windows 10, Windows 11
Proxy execution
powershell -ep RemoteSigned -f .\Launch-VsDevShell.ps1 -VsInstallationPath "/../../../../../; {PATH:.exe} ;"Execute binaries and commands from the context of the signed script using the “VsInstallationPath” flag.
os: Windows 10, Windows 11
Detection
Resources
acknowledgement: Nasreddine Bencherchali @nas_bench