@manhnguyenv

Welcome to my blog!

Windows PowerShell Integrated Scripting Environment (ISE)

June 17, 2019 11:24

Windows PowerShell Integrated Scripting Environment (ISE) (edit)

Mở Windows PowerShell ISE

Start > Run > PowerShell_ISE "D:\Sample.ps1"

hoặc

Start > Run > PowerShell_ISE

Enter: psEdit "D:\Sample.ps1"

Enter to edit the Sample.ps1

Debug PowerShell Script

F9 to set Breakpoint

F5 to Debug

Một số dường dẫn sử dụng để build tự động

Wix Tools: "C:\Program Files (x86)\WiX Toolset v4.0\bin\WixToolset.Dtf.WindowsInstaller.dll"

MSBuild.exe: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe"

DevEnv.exe: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe”

NETFX 4.6.1 Tools: "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools"

Hosts file: "C:\Windows\System32\drivers\etc\hosts"

PowerShell

May 8, 2019 17:32

PowerShell (edit)

Windows PowerShell Integrated Scripting Environment (ISE)

Create PowerShell Script

https://www.windowscentral.com/how-create-and-run-your-first-powershell-script-file-windows-10#create_powershell_script_windows10

Run PowerShell Script

Set-ExecutionPolicy RemoteSigned

https://www.windowscentral.com/how-create-and-run-your-first-powershell-script-file-windows-10#run_powershell_script_windows10

Auto Deploy with PowerShell

C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe

Tham khảo

https://stackoverflow.com/questions/2035193/how-to-run-a-powershell-script/2035209

https://www.addictivetips.com/windows-tips/auto-run-powershell-scripts-windows-10/

https://www.windowscentral.com/how-create-and-run-your-first-powershell-script-file-windows-10

Categories

Recent posts