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)
February, 2005
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
February, 2005
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 Users' Folder Exists on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I determine if the C:\Documents and Settings\ %username% \Application Data\Microsoft\Templates folder exists on a computer? -- JM Hey, JM. The FileSystemObject includes a FolderExists method that makes it very easy to check...
Hey, Scripting Guy! Blog
How Can I Sort the Contents of a Text File?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! I have a text file that contains a list of computer names. How can I sort that file alphabetically? -- LR Hey, LR. If we wanted to take the easy way out we’d just tell you, “Sorry, you can’t do that.” And we could get away with...
Hey, Scripting Guy! Blog
How Can I Write Binary Data to the Registry?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I write binary data to the registry? -- FG Hey, FG. WMI’s Standard Registry Provider includes a method - SetBinaryData - that makes it relatively easy to write binary data to the registry. There’s one little catch to be...
Hey, Scripting Guy! Blog
How Can I Read Text From a File and Then Rename the File Using the Text I Just Read?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Guy! I would like to be able to open a file, read the first 10 characters, and then rename the file to those 10 characters plus a .txt file extension. How can I do that? -- KA Hey, KA. Ah, for once a text file question that can be answered without...
Hey, Scripting Guy! Blog
How Can I Tell Whether a Web Page is Accessible?
Posted
over 7 years ago
by
ScriptingGuy1
7
Comments
Hey, Scripting Guy! How can I tell whether or not a Web page is accessible? -- JW Hey, JW. To tell you the truth, these are the kinds of questions we hate, questions where we don’t know the answer off the top of our heads but where it seems like there...
Hey, Scripting Guy! Blog
How Can I Create a GUID Using a Script?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! We have items that we need to track using unique identification numbers. My boss suggested that we use GUIDs for this purpose. Is there any way to create a GUID using a script? -- DX Hey, DX. GUIDs (globally unique identifiers)...
Hey, Scripting Guy! Blog
How Can I List the Files in a Folder and All Its Subfolders?
Posted
over 7 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I list all of the files in a folder, as well as all the files in any subfolders of that folder? -- MA Hey, MA. This is a question we get asked quite a bit, and one which have avoided answering up till now. That’s because...
Hey, Scripting Guy! Blog
How Can I Count the Number of Times a User has Logged on to a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I count the number of times a user has logged on to a computer? -- DE Hey, DE. How can you count the number of times a user has logged on to a computer? Good question and, ultimately, the answer might be: you can’t. But...
Hey, Scripting Guy! Blog
How Can I List Open Sessions and Open Files on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
10
Comments
Hey, Scripting Guy! Is there a way to export the information found in the Shared Folders portion of the Computer Management snap-in (in particular, the list of sessions and the list of open files)? -- PP Hey, PP. Funny you should ask; this very issue...
Hey, Scripting Guy! Blog
How Can I Add a Hyperlink to a Word Document?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I add a hyperlink to a Word document? -- BA Hey, BA. Interesting question; in thinking about common tasks for scripting Microsoft Office applications we never even considered adding a hyperlink to a document. (Needless to...
Hey, Scripting Guy! Blog
How Can I Add a Web Site to the Trusted Sites Zone?
Posted
over 7 years ago
by
ScriptingGuy1
7
Comments
Hey, Scripting Guy! How can I add a Web site to the Trusted Sites zone in Internet Explorer? -- NR Hey, NR. As it turns out, trusted sites are actually stored in the registry; consequently, adding a Web site is simply a matter of creating and configuring...
Hey, Scripting Guy! Blog
How Can I Use a Wildcard Character to Delete Folders?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I delete folders based on a wildcard character? For example, how can I delete all the folders whose name starts with December ? -- RR Hey, RR. Well, that depends. If you’re running Windows XP or Windows Server 2003, you...
Hey, Scripting Guy! Blog
How Can I Disable the Guest Account on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I determine whether or not the Guest account is enabled on a computer and, if it is, disable it? -- PR Hey, PR. At last: a question for which there is a very simple, very straightforward answer. This isn’t to minimize the...
Hey, Scripting Guy! Blog
How Can I Change the Target of a Desktop Shortcut?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I change the target that a desktop shortcut points to? For example, if I move a file from one server to another, I’d like be able to use a script to change the shortcut that points to that file. -- AK Hey, AK. This is an...
Hey, Scripting Guy! Blog
How Can I Find and Replace Text in a Text File?
Posted
over 7 years ago
by
ScriptingGuy1
33
Comments
Hey, Scripting Guy! From the command line, how can I use a script to open a file and replace text; for example, how can I replace all instances of “Jim” with “James”? -- JW Hey, JW. As we’ve found out numerous times when dealing with text files, there...
Hey, Scripting Guy! Blog
How Can I Password-Protect an Excel Spreadsheet?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! In a previous column, you told us a couple different ways to save Excel spreadsheets. In that column, you said that one of the things you could do with the SaveAs method was password-protect a spreadsheet. However, you didn’t show...
Hey, Scripting Guy! Blog
How Can I Mask Passwords Using an InputBox?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I mask passwords using an InputBox? -- PG Hey, PG. If you’re hoping to mask passwords using a function or method built into WSH or VBScript we’re afraid you’ll be disappointed; neither technology supports password masking...
Hey, Scripting Guy! Blog
How Can I Determine Whether or Not a Group Has Any Members?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I check a computer and find out whether the Remote Desktop Users group has any members? -- ET Hey, ET. Somewhat surprisingly, ADSI doesn’t have any sort of NumberOfMembers property, a property that could tell you - at a...
Hey, Scripting Guy! Blog
How Can I Get a List of All My Windows Server 2003 Computers?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I gather the names of all the computers in my domain that are running Windows Server 2003? -- AS Hey, AS. When we choose questions to answer for this column, we try to take questions from different areas of scripting. That...
Hey, Scripting Guy! Blog
How Can I Change the Working Folder of a Script?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! My script needs to have the same working folder as the application that the script starts. How can I change the working folder of a script? -- JM Hey, JM. You can change the current (or working) folder of a script simply by setting...
Page 1 of 1 (20 items)