Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
April, 2005
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
April, 2005
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Partner & Customer Solutions
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud OS Blogs
Brad Anderson - In the Cloud
Building Clouds
Server & 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
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
June 2013
(44)
May 2013
(68)
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 Change the User and Computer Account Description Attributes Each Time a User Logs On?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I change the user and computer account Description attributes each time a user logs on? I’d like the Description to indicate who logged on, and when. -- GG Hey, GG. This is actually a pretty good idea. One question we get...
Hey, Scripting Guy! Blog
How Can I Purge All the Print Jobs on a Windows 2000 Print Server?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server? -- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the...
Hey, Scripting Guy! Blog
How Can I Tell if an Excel Workbook is Open and, If It Isn’t, Open It?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell if a specific Excel workbook is open and, if it isn’t, open it? -- RK Hey, RK. Every now and then we see a question and think, “We should answer this one; it’s so easy it won’t take more than a few minutes to finish...
Hey, Scripting Guy! Blog
How Can I Add All the Users from an Existing Active Directory Group to a New Group?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I add all the users from an existing Active Directory group to a new group? -- TG Hey, TG. So you have a group (we’ll call it Group A) and you want to create an exact replica of that group (we’ll call it Group B). If we...
Hey, Scripting Guy! Blog
How Can I Configure a Computer to Use a Dynamically-assigned DNS Server?
Posted
over 8 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I configure a computer to use a dynamically-assigned DNS Server? -- JB Hey, JB. Ah, this question brings back memories. A couple years ago the Scripting Guys were faced with this same problem, and discovered the answer entirely...
Hey, Scripting Guy! Blog
How Can I Add Two Blank Lines Between Each Line in a Text File?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Hey, Scripting Guy! How can I add two blank lines between each line in a text file? -- LW Hey, LW. You know, when we wrote the Microsoft Windows 2000 Scripting Guide we included 4 or 5 examples of how you might work with text files...
Hey, Scripting Guy! Blog
Why Does My Performance Monitoring Script Keep Returning the Same Incorrect Values?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I’m using a script to monitor process performance, but every time I run the script the percent processor time for all the processes comes out as 0. What am I doing wrong? -- JL Hey, JL. We’ve simplified your script a bit to better...
Hey, Scripting Guy! Blog
How Can I Pass Command-Line Variables to an HTA When It Starts?
Posted
over 8 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I pass command-line variables to an HTA when it starts? -- DM Hey, DM. Ok, we admit it: you almost had us on this one. (Not that being able to stump the Scripting Guys is particularly hard, mind you.) We had no idea whether...
Hey, Scripting Guy! Blog
How Can I Tell Whether a Group Member is a User, a Computer, or Another Group?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell whether the member of a group is a user, a computer, or another group? -- ON Hey, ON. Interesting question and - to tell you the truth - one we’d never really thought about. It’s easy enough to list all the members...
Hey, Scripting Guy! Blog
How Can I Determine the Version Number of a File?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I extract version information for a DLL or other type of file? -- DM Hey, DM. There at least two ways we know of to retrieve the version information for a file: one designed for working on the local computer and one that...
Hey, Scripting Guy! Blog
How Can I Search a Text File for 9-Digit Numbers?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I search for user names in a text file? In my case, the user names all consist of 9 digits, although they can be any 9 digits. -- GG Hey, GG. Interesting question. You want to search for 9-digit numbers (like 123456789)...
Hey, Scripting Guy! Blog
How Can I Display a Multi-Valued Attribute Returned from an Active Directory Search?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I display a multi-valued attribute that I get back when using ADO to search Active Directory? -- ES Hey, ES. For the most part Active Directory is a script writer’s paradise; with very few exceptions anything you can do...
Hey, Scripting Guy! Blog
How Can I Eliminate Duplicate Names in a Text File?
Posted
over 8 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a text file that contains a bunch of names. How can I read through that text file and eliminate all the duplicate names? -- MW Hey, MW. We’re assuming you have a text file that looks something like this: Ken Myer Dean Tsaltas...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Bind to a User Account Using Something Other Than the CN Attribute?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Can I bind to an Active Directory account using the user’s mailNickname or their sAMAccoutName, something other than the CN? -- MB Hey, MB. When you bind to an account in Active Directory, you need to pass GetObject the...
Hey, Scripting Guy! Blog
How Can I Insert a Column into a Spreadsheet?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! How can I insert a column into an Excel spreadsheet? -- HE Hey, HE. Let’s assume you have a spreadsheet that looks something like this: And, yes, it is a very nice little spreadsheet, except for one problem. As you can see, we...
Hey, Scripting Guy! Blog
How Can I Get a List of All the .PST Files on a Computer?
Posted
over 8 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! How can I get a list of all the .pst files on a computer - along with their size and their location - and then save that information to a comma-separated values file? -- DC Hey, DC. If you hang around baseball fields long enough...
Hey, Scripting Guy! Blog
How Can I Print a Test Page to a Printer?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I print a test page to a printer? -- RR Hey, RR. As long as you’re running Windows XP this is an easy one; that’s because the revised Win32_Printer class introduced in Windows XP includes a method called PrintTestPage ....
Hey, Scripting Guy! Blog
How Can I Convert a Comma-Separated Values File to a Tab-Separated Values File?
Posted
over 8 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I convert a comma-separated values file to a tab-separated values file? -- RV Hey, RV. Depending on the nature of your comma-separated values (CSV) file this is either very easy or a little bit tricky. Let’s follow the Scripting...
Hey, Scripting Guy! Blog
How Can I Delete a Folder and All Its Subfolders?
Posted
over 8 years ago
by
ScriptingGuy1
8
Comments
Hey Scripting Guy! How can I delete a folder and all its subfolders? -- FB Hey, FB. You know, a lot of people think the Scripting Guys know everything there is to know about scripting. Let’s put it this way: we wish. In fact, it’s only when we begin...
Hey, Scripting Guy! Blog
How Can I Monitor for Different Types of Events With Just One Script?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Is there any way to monitor a folder for file creations and deletions, all with just one script? -- HA Hey, HA. By the way, thanks for the question: you temporarily saved us from answering a different question, one that was proving...
Hey, Scripting Guy! Blog
How Can I Convert 1,000 .RTF Files to Word Documents?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a folder of about 1,000 .RTF files. I need to convert all of these to Word documents (.DOC files). Can you help me with this? -- LS Hey, LS. Sure, we can help you. We’re not going to, but we could if we wanted to. No,...
Page 1 of 1 (21 items)