String Theory

Mastering the laws of physics with Windows PowerShell

Browsing Posts in PowerShell

One of the nice things that has changed with PowerShell Version 3 as of CTP 2 is the way that the registry is displayed. In PowerShell Version 3, the PowerShell team updated the format files for the registry provider. To see this difference first do a directory listing for HKCU: in version 2. You will [...]

Imagine the scenario: You are working on a script or command in your PowerShell session and you need to get help on a cmdlet. Sure, you have tab completion, but you can’t remember whether the parameter takes a string or an object, or you can’t remember how the value should be formatted. So you break [...]

The AppSense Environment Manager can provide you with valuable information related to the processes involved in login and logoff . Using Windows PowerShell you can easily retrieve this information to assist you in identifying problem spots.

Starting with an innocent conversation a little over 15 months ago, I agreed to co-author a book on Windows PowerShell. I had no idea what I was getting into nor the amount of work it was going to entail. It was a very long and detailed process, but I can finally say it was all [...]

I am delighted beyond belief to be able to announce that I get to be an honorary Scripting Guys team member, at least for a week.  I received an email earlier this week from Ed Wilson himself asking whether I would be interested in helping @ScriptingGuys and @ScriptingWife staff the Script Center booth at MS [...]

If you use VisionApp Remote Desktop in your environment then you know it’s an extremely valuable tool. If you are not familiar with it then here is a snippet from the product’s website. visionapp Remote Desktop makes it easy to manage remote connections to Windows-based systems. Administrators who need to maintain simultaneous connections to multiple [...]

Starting in Citrix XenServer 5.6 (or earlier) you are no longer able to collect Host and VM performance data via the “legacy” API calls. Fortunate for me, Citrix has allowed users to reenable the legacy API retrieval for metrics.

If you are a XenApp administrator you have no doubt utilized “qfarm.exe /load” to display the load on your Citrix XenApp Servers. These load values can identify issues with your servers in addition to determining which server is the least/most loaded in your farm. The one key component missing in this display is determining the [...]

For this month’s meeting of the Atlanta PowerShell User Group I demoed my Windows PowerShell profile and I promised I would post it online. So here it is. <#============================================================================= Script Name: Universal Profile Created On: 05/22/2009 Author: Mark E. Schill File: profile.ps1 Usage: PS> . profile.ps1 Version: 1.2 Purpose: Serves as a PowerShell Profile that [...]

I am one of the guest judges for the Scripting Games 2010 occurring right now at http://2010sg.poshcode.org and http://blogs.technet.com/heyscriptingguy/. I am currently working on the Beginner Event 4 which asks the user to read the Environment Variables to get the number of processors in the machine. This evening I am finding myself in constant conflict [...]