A script is just a collection of commands saved into a text file (using the special .ps1 extension) that PowerShell understands and executes in sequence to perform different actions. In this post, we ...
In my previous post, I showed you how to create a clickable button in Excel. That button displayed a simple message box. Now, I want to show you how to use the button to kick off a PowerShell script.
To avoid errors, it's important to write PowerShell scripts that prevent code from running on an unintended platform. Luckily, this is easier to do than it sounds. Up until a few years ago, PowerShell ...
When you first start writing scripts, modularity, reusability, and best practices may not be top of mind. As your scripts become more complex, however, creating reusable elements becomes essential. By ...
In 2006, Windows Script Host (WSH) and the Command Prompt shell got a new sibling when Microsoft released a completely new environment called Windows PowerShell. PowerShell has some similarities to ...
Back in 2008, I wrote a piece called PowerShell Tips and Tricks, which covered the then-relatively new Windows scripting language and some cool things you could do with it. Although PowerShell has ...
Until Microsoft adds a native command that easily connects virtual directories to Azure Web apps, we're going to have to do it ourselves. In the era before cloud computing, writing an entire article ...
If you join meetings on your Windows 11 PC, you can make your system prepare for the upcoming meetings by itself. Thanks to a custom script, your computer can automatically adjust the brightness, ...
We have already seen how we can use PowerShell to change the number of App Tile Rows on Start Screen, to fix Windows Store apps crashing, create Shutdown, Restart, Logoff, Switch User, Hibernation ...
Community driven content discussing all aspects of software development from DevOps to design patterns. It’s pretty easy to run a batch file on Windows. Just create a file, change the extension to ...