Sign In
TechNet Blogs
Technet Blog Images
More ...
Tweet tweet!
Translate this page
Powered by
Microsoft® Translator
Related Links
Blog Home
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Common Tasks
Blog Home
RSS for comments
RSS for posts
Atom
OK
Email Blog Author
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
2009 Summer Scripting Games (42)
2010 Scripting Games (115)
2011 Scripting Games (132)
2012 Scripting Games (125)
Active Directory (216)
ActiveX Data Objects (ADO) (30)
Advanced (70)
arrays hash tables and dictionary objects (29)
Beginner (96)
CSV and other delimited files (35)
databases (57)
dates and times (56)
desktop management (111)
displaying output (32)
event logs (45)
events and monitoring (37)
Excel spreadsheet (52)
Excel.Application (31)
files (140)
folders (74)
general management tasks (55)
getting started (299)
groups (39)
guest blogger (264)
Internet Explorer (31)
leaderboard (57)
local accounts and Windows NT 4.0 accounts (33)
Logs and monitoring (48)
Microsoft Excel (114)
Microsoft Outlook (49)
Microsoft Word (95)
multimedia (30)
Office (286)
operating system (229)
other Directory Services (34)
performance (32)
printing (31)
prize winners (32)
processes (48)
Quick-Hits Friday (88)
registry (82)
regular expressions (39)
running (86)
Scripting Guy! (2162)
scripting techniques (990)
Scripting Wife (85)
Sean Kearney (50)
searching Active Directory (63)
security (44)
servers (31)
services (31)
sponsors (38)
storage (211)
string manipulation (48)
text files (147)
troubleshooting (39)
user accounts (89)
using the Internet (38)
VBScript (1049)
Web pages and HTAs (71)
Weekend Scripter (186)
Windows PowerShell (1300)
Windows PowerShell ISE (33)
WMI (159)
writing (45)
Archives
Archives
May 2012
(29)
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)
March, 2008
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
March, 2008
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can Retrieve a List of All My Computer Accounts, Grouped By OU?
Posted
over 4 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I get a list of all the computers in my domain, grouping those computers by the OU in which the computer account resides? -- TA Hey, TA. Well, today is Monday, and the Scripting Guy who writes this column is actually glad...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve Information About All the Shortcut Files in a Folder?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a folder with about 1800 shortcuts in it. I need to retrieve the file name and the target for each of these shortcuts in order to import that information into a database. Do you have any idea how I can retrieve this information...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Incrementally Rename Files Based on the File Creation Date?
Posted
over 4 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I am trying to get my photos sorted in chronological order, even though – because they come from different cameras – they have different names. For example, one name type starts with DSC followed by a sequential number issued by one...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Change the Last-Accessed Date of a File to Match Its Last-Modified Date?
Posted
over 4 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I change the last-accessed date for all the files in a folder? I want the last-accessed date to match the date and time that the file was last modified. -- GW Hey, GW. Say, did you realize that yesterday was Opening Day...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Standardize the Logon Name for All My Users?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! My company would like me to change our Active Directory logon names from this format – kmyer – to this format: Ken.Myer . Is there a way I can script all these changes? -- DO Hey, DO. You know, sometimes the Scripting Guy who writes...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Add a Hotkey to an HTA Button?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I add a hotkey to a button in my HTA? -- TM Hey, TM. As usual, the Monday column is being written on Friday; however, the Scripting Guy who writes this column is having far more trouble getting things done than he usually...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Data Read From a Text File as Command-Line Parameters For a Batch File?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I'm trying to automate a tedious license server task. To do this, I need to loop through a text file line-by-line, grab out a user name, asset number, and license ID, and then pass those values to a batch file. How can I do all that...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Both AND and OR Operators in a Single WMI Query?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’ve looked through the entire Script Center but I can’t find an example of what I need to do: find all the .DOC files on drives C and D, but using a single WMI query. In other words, I want to write a WMI query similar to this: Where...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I List the Members of a Domain Group That Belongs to the Local Administrators Group?
Posted
over 4 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! I manage over 300 servers in our environment. For each server I need to determine the members of the local Administrators account. It’s easy to get a list of local users and domain users that belong to the Admin account; it’s also...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve the User Name and User Initials From Microsoft PowerPoint?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In PowerPoint user information is stored under the Tools menu. I would like to know if there is a way to extract this data by using a script. -- TV Hey, TV. You know, you might find this hard to believe, but the Scripting Guy who...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Get a List of Active Directory Groups That Have Just 1 Member or Fewer?
Posted
over 4 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! We’re trying to straighten out our Active Directory, and in order to do so, I’ve been asked to come up with a list of all the groups that have just 1 member or fewer. How can I write a script that will return this information...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Copy a File to a Removable Drive If I Don’t Know the Drive Letter of That Drive?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I determine if a computer has a removable drive attached to it and, if it does, copy a file to that drive? I have no way of knowing what the drive letter of that removable drive would be, assuming it even exists. -- SN Hey...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Find the Number (and Size) of All the Files Recently Modified or Added to a Computer?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I'm looking for a script that can search a file server and list the number and total size of files that have been recently modified or added to the server. Any help would be appreciated! -- KT Hey, KT. Before we launch into today...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Sort a Spreadsheet By Cell Color?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! We have an Excel spreadsheet in which we use different colors as a way to track status information. That works out really good for us, except for one thing: sometimes we’d like to sort the spreadsheet by color. As near as I can tell...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Add a Domain User to a Local Group?
Posted
over 4 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! I recently came across your article where you showed people how to use VBScript to add a domain user to a local group. How can I do that same task using Windows PowerShell? -- KE Hey, KE. Before we begin we thought we should mention...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Return a List of All the Folders Whose Name Starts With a Specified String Value?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I find all the folders that start with a specific string? For example, given the string 123 the script would find folders 123000 through 123999. -- MD Hey, MD. Here in the US we’re still busy trying to figure out who’s going...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Get an HTA to Remember Its Previous Position Onscreen?
Posted
over 4 years ago
by
ScriptingGuy1
7
Comments
Hey, Scripting Guy! Is there any way to get an HTA to remember its previous position onscreen? Some of my users are very particular about moving an HTA to a specific spot on the screen, then wanting it to reappear at that same spot the next time they...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Write a Message to All the Empty Files in a Folder?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need to search a certain directory for files with a size of 0 KB, then replace the non-existent text in those files with an error message like this one: "File did not save correctly." I have been searching for the answer myself and...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Verify That a User Entered a Valid Drive Letter?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I make sure that data entered into an InputBox has the form X: , where X is any alphabetic character? That’s important, because I need to use this string to map logical drives in a script. The script should validate any string...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Map a Drive Based on the Computer’s Subnet?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a CAD staff that occasionally travels between sites. What I would like to do, in a logon script, is map a set of drives based on their current location, that is, their current subnet. I need the script to first check and see...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Change a File That’s Found in a Folder and in All Its Top-Level Subfolders?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need a little help. I have one top folder with many subfolders ; the subfolders are all top-level subfolders like C:\Scripts\Folder1 and C:\Scripts\Folder2. In each subfolder I have a text file with the same name. I need to open...
Page 1 of 1 (21 items)