Showing results for Windows PowerShell - Scripting Blog [archived]

Mar 16, 2007
Post comments count0
Post likes count0

How Can I Format a Series of Numbers as a Phone Number?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I format a series of numbers as a phone number in Windows PowerShell?-- HR Hey, HR. You know, formatting is all about making things look a little nicer and a little more presentable. That’s why the Scripting Guy who writes this column always finds it strange when people ask him formatting questions. A little nicer and...

Scripting Guy!Windows PowerShellscripting techniques
Feb 3, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Get a List of All the Open Windows on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Someone told me that there’s a way to use Windows PowerShell to get a list of all the open windows on a computer. Any chance you could show me how to do that?-- JD Hey, JD. You bet we can. Before we do that, however, we’d like to take a moment and salute Peter Costantini, the oldest living Scripting Guy. Peter, be...

Scripting Guy!Windows PowerShelldesktop management
Dec 4, 2006
Post comments count0
Post likes count0

How Can I Expand the Width of the Windows PowerShell Console?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I expand the width of the Windows PowerShell console? When I display certain kinds of data – like information from the event logs – that data gets cut off because the console window isn’t wide enough.-- TB Hey, TB. Wow, what a coincidence: we were just about to ask you that very same question! Now what do we do? No, jus...

Scripting Guy!Windows PowerShellscripting techniques
Nov 21, 2006
Post comments count0
Post likes count0

How Can I Add a Function to a Windows PowerShell Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I add a function to a Windows PowerShell script?-- TT Hey, TT. You know, we’re going to do something a little unusual today: we aren’t going to mention the fact that the University of Washington defeated Washington State University in the annual Apple Cup football game. Granted, that’s the kind of thing we typically wou...

Scripting Guy!Windows PowerShellscripting techniques
Nov 9, 2006
Post comments count0
Post likes count0

How Can I Use Windows PowerShell to Get a List of All My Computers?

ScriptingGuy1
ScriptingGuy1

Using Windows PowerShell, how can I retrieve a list of all the computer accounts in my domain?-- TE Hey, TE. You know, several years ago the Scripting Guy who writes this column was playing basketball with one of his brothers. Because there were a total of 5 people at the park they had to play 2-on-2, with one person forced to sit out. After a sho...

Scripting Guy!Windows PowerShellActive Directory