Archive | Scripting

Active directory user accounts created by the PowerShell script

Creating Realistic Test User Accounts in Active Directory

When you need to simulate a real Active Directory with thousands of users you quickly find that creating realistic test accounts is not trivial. Sure enough, you can whip up a quick PowerShell one-liner that creates any number of accounts, but what if you need real first and last names? Real (existing) addresses? Postal codes […]

Continue Reading · 19
Windows PowerShell ISE

What’s Missing in PowerShell 3 ISE

On my quest for a decent PowerShell development tool I first tried out PowerGUI, but was not very happy with it. When the RTM version of PowerShell 3.0 along with a revamped ISE was released a few days ago, I decided to give it a try. Here is what I found. Editor Tab size is […]

Continue Reading · 3

Parsing Dates in Batch Files & Regional Settings / Locale

Determining day, month and year on the command line is surprisingly difficult if the solution is to work across locales, i.e. on international systems with different regional settings. Although we can use the variables %DATE% and %TIME% their contents is specific to the locale. If set to German, the date is displayed in the format […]

Continue Reading · 2

How to List All Installed Applications From the Command Line

This article describes how to list all installed MSI packages. A more comprehensive listing of all applications displayed in Programs and Features can be obtained through our monitoring and analytics product uberAgent. How to easily create a list of all programs and (MSI) packages installed on a system for later processing? That sounds like a […]

Continue Reading · 10

PowerShell Script Lists App-V Package Dependencies (Dynamic Suite Composition, DSC)

Update 2010-04-20: Thanks to Stefan Henseler the script now works correctly with multiple dependencies in a single file. Be sure to download the current version below. App-V’s Dynamic Suite Composition is a powerful feature in that it allows multiple “bubbles” to share the same virtual environment. In other words, package A can be made dependent […]

Continue Reading · 5

Useful PowerShell Scriptlets for Files and Folders

What is the best way to learn PowerShell? Never use cmd.exe again! With PowerShell 2.0 on my Windows 7 machine I decided it finally is time to polish my rusty knowledge of the language dating back to the days when PowerShell was still called Monad. In my attempt to re-familiarize myself with PoSh I consciously […]

Continue Reading · 2

How to Find and List Unsigned Executable Files

Executable files can (and should be!) digitally signed. Without a digital signature you can never be sure the files on your hard disk have not been tampered with. There is really no exception to this rule, except maybe smaller open source projects that lack the budget to buy the digital certificate required for signing. Digitally […]

Continue Reading · 0

How to Run Console Programs Without a Console Window

From time to time the question gets asked how a batch file or console program can be executed silently or hidden, i.e. without a console window popping up. If you do not know what I am talking about: press Win+R, type “help” and press ENTER. A black console window will open, execute the HELP command […]

Continue Reading · 1