PowerShell : Windows 10 Modern Application Removal Script

If you have Windows 10 you’ve not doubt seen the new modern apps and either love them, hate them or just don’t want to deal with them. Windows 10 does not provide an easy way to remove any of these applications or to keep them from running which can be a major issue for low RAM systems. The good news is they can quickly be removed via a few PowerShell commands or a script. The script below is one I’ve been using to manage them on my systems. You can also find a link to GitHub where I maintain this and several other PowerShell scripts I routinely use.

GitHub PowerShell Scripts | GitHub W10RemoveCoreApps Script
Read more of this post

Weekend Project: Process Explorer Auto Install

I was bored this weekend and decided to try my hand at making a PowerShell script to automate the install of Sysinternals Process Explorer. It’s pretty rough product of about 3 hours of work. I’ll make improvements in the future as I get time. In any case, it’s available below.

Download ProcessExplorerInstaller.ps1 from Github
GitHub | PowerShell-Scripts / ProcessExplorerInstaller.ps1

Changing Services with the Command Line

Changing services, whether changing the startup type or stopping/starting them, is something every user will have to do. While it’s easy to simply go through the Services MMC that can be time consuming, especially when a PC is being slow. The prefered method would be through the Command Line, either manually or through a pre-written batch file. So how do you do this? Check below for details.
Read more of this post

Shell Script: Splunk Syslog Server Update script

Here is a set of upgrade scripts I’ve created to automatically upgrade Splunk Syslog Server on Linux. This is primarily written with ubuntu server in mind, specifically 12.04 LTS, though it’s easily editable for other distributions. You can download the files below (they are automatically zipped with the latest version.

Read more of this post

PowerShell: Empty Recycle Bin

Here is a quick PowerShell script I found recently to clear the Windows Recycle Bin. This can be really useful if you want to automatically empty the Recycle Bin through something like the Task Scheduler. This code comes from the TechNet Script Center, courtesy of Windows Engineer and PowerShell Blogger Rich Prescott.

This script allows you to view the contents of the recycle bin in your profile. The first line creates a ComObject and then the second line grabs the Recycling Bin special folder. It then enumerates the items contained in that special folder and removes each of them. The Remove-Item cmdlet includes a switch to turn off confirmation for the removal of the files. It can be removed if you would like to be prompted for each file.

Works on:

Windows Server 2012 and Up Yes Windows 10 and Up Yes
Windows Server 2008 R2 Yes Windows 8 Yes
Windows Server 2008 Yes Windows 7 Yes
Windows Server 2003 No Windows Vista Yes
Windows XP Yes
Windows 2000 No


FizzBuzz for (almost) Every Language

FizzBuzz. Chances are that you’ll need to know it at one time or another if you apply for any programming or development job. Here are a couple ways to do FizzBuzz in a variety of languages. There are alternate ways to do this in each language but these are a few examples of some code that you could use. I”ll update this post over time as I find new examples.
Read more of this post

PowerShell: Check System Execution Policy

Here is another quick script to check your system’s Execution Policy.

batch file: pspolicycheck.bat

This will give you a quick list of Execution Policies on your system and give you a PowerShell prompt. Of course you can always simple run “Get-ExecutionPolicy -list” from the Command Line or PowerShell prompt. You can download bar from the above link or copy the 2 lines above to a text file and rename it .bat.


PowerShell : Uptime scripts

I wanted a quick way to determine uptime for my servers and other windows computers and so started searching for solutions. After some time I finally found some good information but it wasn’t entirely user friendly. After another 2 hours of researching and trying to get it right, I came up with these scripts for displaying your computer’s uptime. The PowerShell scripts aren’t mine (you’ll find links to the originals below) but the batch files are. Pretty simple but a nice time saver.
Read more of this post