Launch-VsDevShell.ps1

type: OSScripts
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.ps1

Commands

  1. ExecuteUser T1216

    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

    Execute: EXE

  2. ExecuteUser T1216

    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

    Execute: EXE

Detection

Resources

acknowledgement: Nasreddine Bencherchali @nas_bench