Bill Stewart


Bill Stewart is a scripting guru who works with the Enterprise Technology Services group at Indian Health Service in Albuquerque, New Mexico. He has written numerous articles about Windows scripting and is a moderator for Microsoft's Official Scripting Guys Forum. He has also written some useful free tools for the Windows IT community, which are available from his website at

PowerShell: Goodbye, Goto
When batch files were added to MS-DOS over 30 years ago, the BASIC programming language was the predominant programming language in use on microcomputers, and GOTO ruled to roost. Fortunately, things have improved. Here's how while, do while, do until, and for replace those classic commands in a variety of situations.
Changing Service Credentials Using PowerShell 3
Changing an account’s password is simple, but updating the password for all of the services that start using that account can be a time-consuming and error-prone process, depending on the number of servers and services involved.
PowerShell: Why You'll Never Go Back to Cmd.exe Batch Files
Scripts have a long history on the Windows OS platform. In Cmd.exe most people call them batch files, but they are scripts nonetheless. The command-line parsing rules that Cmd.exe uses mean that some commands you enter on a Cmd.exe command line behave differently than when you put the same commands in a batch file. This is an ongoing source of confusion for those not familiar with Cmd.exe’s syntax quirks.
Presenting the PowerShell Pipeline
Little makes sense in PowerShell without an understanding of the pipeline.
PowerShell: Objects and Output
Now that you’ve started using PowerShell as an interactive command line, you’ll need to understand that there are some fundamental differences between how Cmd.exe and PowerShell process input and output.
Using PowerShell Interactively
While PowerShell is Powerful a scripting language, it’s also an interactive command shell that you can use instead of Cmd.exe.
Batch to PowerShell - Syntax Differences
In my last article, I made the argument that you should stop writing batch files (Cmd.exe shell scripts) and instead focus your efforts on learning PowerShell. In this article, I’ll describe the special characters that Cmd.exe uses and how a number of these characters work differently in PowerShell.
Break Your Batch Habit and Move to PowerShell 14
Windows PowerShell should rightly be seen as a replacement for batch file scripting (Cmd.exe shell scripting), but for some reason, many people seem to be unwilling to leave batch behind. This article begins a series that’s designed to help you break the batch habit and move forward with PowerShell.
Take Charge of Environment Variables in PowerShell
Windows PowerShell has some limitations when it comes to working with environment variables. Here are three functions you can use to overcome these limitations.
Securely resetting the Administrator account password for a computer
Resetting the Local Administrator Password on Computers 23
Resetting an Administrator account password with a Group Policy Object isn't secure. Here's how to securely reset the Administrator account password.
Enforcing Administrators group membership
Enforcing the Membership of the Administrators Group
Here's a solution for managing the members of the Administrators group on computers when you don't have an Active Directory domain or you can't use Group Policy.
Pointing out common pitfalls when running executables in PowerShell
Running Executables in PowerShell 2
Correctly constructing an executable's command line in PowerShell can be confusing. The guidelines presented here can help you avoid common pitfalls.
brass parts of a steam engine
Windows PowerShell Operators
A good understanding of Windows PowerShell's operators is a must if you want to increase your understanding of PowerShell and the efficiency of your code.
highway overpasses tinted blue
Windows PowerShell Constructs
PowerShell provides a number of language constructs that let you control the flow of your script as well as make decisions about what it should do.
bright ball of light with Active Directory object names flowing away from it
View or Remove Active Directory Delegated Permissions 1
Microsoft provides tools to remove delegated permissions, but they have some limitations. Here's a Windows PowerShell script that not only overcomes these limitations but also provides an easy-to-read list of which users or groups have delegated permissions.

Join the Conversation

Get answers to questions, share tips, and engage with the IT professional community at myITforum. Are you a data center professional? Join AFCOM for the best data center insights.

Sponsored Introduction Continue on to (or wait seconds) ×