Sunday, February 19, 2023

PowerShell Cheat sheet

 

PowerShell Cheat Sheet

While loop

while ($true) {
    Write-Host "Hello World"
}


Append to file

New-TimeSpan -Start @(Get-Process explorer)[0].StartTime | Out-File -Append -FilePath C:\tmp\log.txt


Keywords: PowerShell Quick Tips

REF:003


No comments:

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...