Author: Jakub Jareš (Page 4/4)

#PSTip Use custom regions to fold code in PowerShell ISE 3.0

Note: This tip requires PowerShell 3.0 or above. The PowerShell ISE 3.0 brought a lot of new features. One of…

Read More

Calling native commands from PowerShell

Every now and then I find myself facing task I am not sure how to solve using without using native…

Read More

#PSTip Use Push-Location to save your current location

Going through folders, you sometimes find yourself in some strangely named ones you are sure you’ll have to revisit again….

Read More

#PSTip A difference between the –replace operator and String.Replace method

The -replace operator  takes a regular expression (regex) replacement rule as input and replaces every match with the replacement string….

Read More

#PSTip Wait for executable to finish

Sometimes you need to wait for an executable to finish its job. The typical case is a Setup.exe, but this…

Read More

#PSTip Get your reboot history

Have you ever wondered how often is your station rebooted? Let’s ask the Windows Event Log and get time of…

Read More