Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
September, 2004
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
September, 2004
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Building Clouds
Partner & Customer Solutions
Server & Cloud
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud & Datacenter Management
The System Center Team Blog
System Center Virtual Machine Manager
System Center Service Manager
System Center Operations Manager
System Center Data Protection Manager
System Center Orchestrator
Partner & Customer Solutions
Client Management
System Center Configuration Manager
System Center Service Manager
MDOP
Malware Protection Center
Windows Intune
SUS
Partner and Customer Solutions
Virtualization, VDI & Remote Desktop
Virtualization Team Blog
Ben Armstrong’s Virtualization Blog
Jose Barreto Blog on Hyper-V
Partner & Customer Solutions
Remote Desktop Services
Windows Multipoint Server
Ask the Core Team on Hyper-V
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Ask the Core Team on Failover Cluster
Clustering & High Availability
Windows Server Management
PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
Group Policy
Networking
Identity & Access
Ask Directory Services
Active Directory
Microsoft Leadership
Brad Anderson - In the Cloud
Hey, Scripting Guy! Blog
Learn about Windows PowerShell
Live Now on Server & Tools Blogs
Useful Links
Learn Powershell
TechNet Script Center Home page
Scripting Guys Script Repository
The Official Scripting Guys Scripting Forum
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Tags
2010 Scripting Games
2011 Scripting Games
2012 Scripting Games
Active Directory
Advanced
Beginner
databases
dates and times
desktop management
event logs
events and monitoring
Excel spreadsheet
files
folders
general management tasks
getting started
guest blogger
leaderboard
Logs and monitoring
Microsoft Excel
Microsoft Outlook
Microsoft Word
networking
Office
operating system
PowerShell 3
PowerTip
processes
Quick-Hits Friday
registry
running
Scripting Guy!
scripting techniques
Scripting Wife
Sean Kearney
searching Active Directory
security
servers
SQL Server
storage
string manipulation
text files
user accounts
using the Internet
VBScript
Web pages and HTAs
Weekend Scripter
Windows PowerShell
WMI
writing
More
▼
Less
▲
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
May 2013
(49)
April 2013
(61)
March 2013
(62)
February 2013
(56)
January 2013
(62)
December 2012
(62)
November 2012
(68)
October 2012
(62)
September 2012
(62)
August 2012
(63)
July 2012
(32)
June 2012
(39)
May 2012
(33)
April 2012
(97)
March 2012
(44)
February 2012
(31)
January 2012
(31)
December 2011
(31)
November 2011
(30)
October 2011
(31)
September 2011
(30)
August 2011
(31)
July 2011
(31)
June 2011
(30)
May 2011
(31)
April 2011
(97)
March 2011
(41)
February 2011
(28)
January 2011
(31)
December 2010
(31)
November 2010
(30)
October 2010
(31)
September 2010
(30)
August 2010
(33)
July 2010
(31)
June 2010
(30)
May 2010
(67)
April 2010
(65)
March 2010
(34)
February 2010
(29)
January 2010
(23)
December 2009
(23)
November 2009
(22)
October 2009
(23)
September 2009
(22)
August 2009
(25)
July 2009
(24)
June 2009
(38)
May 2009
(22)
April 2009
(22)
March 2009
(22)
February 2009
(20)
January 2009
(22)
December 2008
(8)
November 2008
(17)
October 2008
(9)
September 2008
(8)
August 2008
(6)
July 2008
(5)
June 2008
(21)
May 2008
(21)
April 2008
(22)
March 2008
(21)
February 2008
(21)
January 2008
(22)
December 2007
(10)
November 2007
(20)
October 2007
(23)
September 2007
(19)
August 2007
(23)
July 2007
(21)
June 2007
(21)
May 2007
(22)
April 2007
(21)
March 2007
(22)
February 2007
(21)
January 2007
(21)
December 2006
(11)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(20)
June 2006
(22)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(16)
November 2005
(20)
October 2005
(21)
September 2005
(21)
August 2005
(23)
July 2005
(20)
June 2005
(22)
May 2005
(21)
April 2005
(21)
March 2005
(22)
February 2005
(20)
January 2005
(21)
December 2004
(16)
November 2004
(20)
October 2004
(21)
September 2004
(21)
August 2004
(22)
More
▼
Less
▲
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
How Can I Determine if a Computer is a Laptop or a Desktop Machine?
Posted
over 9 years ago
by
ScriptingGuy1
11
Comments
Hey, Scripting Guy! Is there any way to use WMI to determine whether a computer is a laptop or a desktop machine? -- CB Hey, CB. You bet there is, although if you didn’t know that we have no idea how you’d figure it out on your own. It turns out there...
Hey, Scripting Guy! Blog
How Can I Create a Folder on a Remote Computer?
Posted
over 9 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! Can I create a folder on a remote computer using a script? -- AN Hey, AN. Life is full of mysteries. To name one, what possessed somebody to think that the world was clamoring for Clamato juice, an unholy concoction combining tomato...
Hey, Scripting Guy! Blog
How Can I Tell if a Server has Rebooted?
Posted
over 9 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! Is there any way to tell whether or not a server has rebooted? -- MvdM Hey, MvdM. We’re assuming that you’re performing a task and, at the end of the task, the computer is supposed to reboot. Needless to say, you want to know, ...
Hey, Scripting Guy! Blog
How Can I Terminate a Process with a Specific PID?
Posted
over 9 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! If I have the PID, is there a way to kill a process using a script? -- JV Hey, JV. You bet there is. For those of you who aren’t familiar with the acronym, PID is short for Process Identifier, a unique ID number assigned to a process...
Hey, Scripting Guy! Blog
How Can I Enumerate All the Objects in an Active Directory OU?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I enumerate all the objects in an Active Directory OU? -- RB Hey, RB. By the way, thanks: it’s always nice to get an easy question every once in awhile! Enumerating all the objects in an OU is almost embarrassingly-simple...
Hey, Scripting Guy! Blog
How Can I Manage Scheduled Tasks Using Scripts?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Is there an easy way to manage scheduled tasks using scripts? -- RC Hey, RC. You just had to ask that question, didn’t you? To be honest, this is not one of scripting’s strong points, and you might be more confused after hearing...
Hey, Scripting Guy! Blog
How Can I Tell Which Account a Service is Running Under?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
We have services that run under a particular user account. Each time we change the password for that user account, we need to change the password for any services that run under that account as well. But how can we tell which account a service is running...
Hey, Scripting Guy! Blog
How Do I Get Rid of Extraneous Spaces in a String?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
I know that I can use the Split command to separate a sentence like this - VBScript is fun! - into an array of individual words. However, what happens if I have a sentence like this: VBScript is fun! I can’t use a blank space as the delimiter because...
Hey, Scripting Guy! Blog
Why Doesn't My Ping Script Run on Windows 2000 Computers?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a script that pings a computer before it tries to connect to it. The script works fine on Windows XP, but doesn’t work at all on my Windows 2000 computers. Do you have any idea why? -- AK Hey, AK. As a matter of fact, we...
Hey, Scripting Guy! Blog
How Can I Determine the Version Number of an Executable File?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I determine the version number of an executable file? -- TW Hey, TW. Well, that depends. If the file is located on the local computer, the easiest way is to use the FileSystemObject. Have a burning desire to know which version...
Hey, Scripting Guy! Blog
How Do I Bind to a User Account in a Sub-OU?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How do I bind to a user account when the user is in a sub-OU? Code like this doesn’t work: LDAP://CN=Ken Meyer, OU=NA\Human Resources, DC=fabrikam, dc=com. -- RD Hey, RD. The past few days we’ve done some lengthy answers to questions...
Hey, Scripting Guy! Blog
How Can I Compare the Memberships of Two Groups?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m looking for a script that can get the memberships of two different groups, compare them, and then write out the differences. Can you help? -- LS Hey, LS. When we received your question a week or so ago we thought, “That’s a...
Hey, Scripting Guy! Blog
How Can I Tell Which Service Packs Have Been Installed on a Computer?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell which service packs have been installed on my computers? -- FR Hey, FR. That’s a very good question; as you know better than we do, in this day and age it’s really important to make sure all your computers have the...
Hey, Scripting Guy! Blog
How Can I Use Both Command-line Arguments and a Default Value?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’d like to have a script that accepts computer names as command-line arguments and then runs against each of those computers. However, if you don’t enter any command-line arguments, I’d like it to default to running against the local...
Hey, Scripting Guy! Blog
How Can I Read in IP Addresses and Use Them in a Script?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a text file that contains a bunch of IP addresses. I’d like to be able to read these addresses from a script, and then use them to connect to those computers. Is that possible? -- RL Hey, RL. You bet you can do this, and...
Hey, Scripting Guy! Blog
How Can I Display Multiple Lines of Output in a Web Page?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How do I get multiple lines of output in a Web page using the Document.Body.InnerHTML property? I can only get one line of output on my page. -- CM Hey, CM. Sounds like you’re creating an instance of Internet Explorer and trying...
Hey, Scripting Guy! Blog
How Can I Get a List of Exchange Servers Assigned to My Users?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How do I get a list of the Exchange servers (msExchHomeServerName) assigned to the users in an OU? -- BG Hey, BG. As you probably already figured out, you have two issues: you need to get a list of all the users in an OU, and then...
Hey, Scripting Guy! Blog
How Can I Be Notified Any Time a Service Goes Down?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I be notified any time a service goes down? -- RN Hey, RN. As usual, there are a couple different ways you can do this, but perhaps the simplest approach is to create a script that monitors WMI events. We don’t have time...
Hey, Scripting Guy! Blog
How Can I Tell if a Computer Has a DVD Drive Installed?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell if a computer has a DVD drive installed? -- GC Hey, GC. No doubt you’re hoping we’ll say something like, “Why, you just use the Win32_DVD class, of course.” Unfortunately, though, we can’t say that; that’s because...
Hey, Scripting Guy! Blog
How Can I Get a List of the Devices That Aren't Working?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In Device Manager, any time a device isn’t working that device is marked with a yellow exclamation mark. How can I use a script to get a list of the devices that aren’t working? -- OL Hey, OL. Sometimes in baseball a batter absolutely...
Hey, Scripting Guy! Blog
Why Doesn't My LIKE Query Work on Windows 2000?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to use a LIKE query in my WMI scripts. The query works fine on Windows XP computers, but I can’t get it work on Windows 2000 computers. Do you know what I’m doing wrong? -- GS Hey, GS. Actually you’re not doing anything...
Page 1 of 1 (21 items)