Answers for "powershell set variables"

15

powershell set environment variable

# Windows PowerShell
PS C:> $env:VAR_NAME="VALUE"
Posted by: Guest on May-26-2020
1

how to assign a value to a variable in batch script using powershell

@echo OFF
for /f %%a in ('powershell -file script.ps1') do set "pass=%%~a"
echo %pass%
Posted by: Guest on October-08-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language