wiki.getshifting.com

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


cheatsheet-powershell
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cheatsheet-powershell [2025/06/01 11:59] – created - external edit 127.0.0.1cheatsheet-powershell [2025/07/20 05:43] (current) – [PowerShell Variables] sjoerd
Line 299: Line 299:
 $user = ${env:test-app_user} $user = ${env:test-app_user}
 </code> </code>
 +\\ 
 +> Check if a variable is null or empty 
 +<code powershell> 
 +if ([string]::IsNullOrEmpty($VarToCheck)){ 
 +  do something 
 +
 +</code>
 == Remote PowerShell == == Remote PowerShell ==
  
cheatsheet-powershell.1748779162.txt.gz · Last modified: by 127.0.0.1