Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
October, 2004
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
October, 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
(41)
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 Get a List of All the Files in a Folder and Its Subfolders?
Posted
over 9 years ago
by
ScriptingGuy1
14
Comments
Hey, Scripting Guy! How can I use a script to show me all the files in a folder? And then how can I modify that script so it shows me all the files in any subfolders of that folder? -- CS Hey, CS. Yesterday we showed everyone a script that changed...
Hey, Scripting Guy! Blog
How Can I Pause a Script and Then Resume It When a User Presses a Key on the Keyboard?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I would like to be able to pause my script, then have it resume as soon as the user presses any key on the keyboard. How do I do that? -- AL Hey, AL. Boy, this question takes us back: “Press any key to continue,” along with “Abort...
Hey, Scripting Guy! Blog
How Can I Change a User’s Password?
Posted
over 9 years ago
by
ScriptingGuy1
12
Comments
Hey, Scripting Guy! How can I change a user’s password using a script? -- GO Hey, GO. You didn’t indicate whether you wanted to change the password for a local user or for an Active Directory user. But that’s OK: the processes are so similar we’ll...
Hey, Scripting Guy! Blog
How Can I Tell Whether a Value Exists in the Registry?
Posted
over 9 years ago
by
ScriptingGuy1
12
Comments
Hey, Scripting Guy! How can I tell whether a value exists in the registry on a remote computer? -- AL Hey, AL. Full disclosure time: even though we go by the name The Scripting Guys , we don’t claim to know everything there is to know about scripting...
Hey, Scripting Guy! Blog
How Can I Add a Domain User to a Local Administrators Group?
Posted
over 9 years ago
by
ScriptingGuy1
8
Comments
Hey, Scripting Guy! How can I add a domain user to the local Administrators group in a computer? -- MB Hey, MB. One reason we started doing this column was because we wanted to know more about what system administrators do (and script) on a regular...
Hey, Scripting Guy! Blog
How Can I Change the Screensaver Timeout Value?
Posted
over 9 years ago
by
ScriptingGuy1
6
Comments
Hey, Scripting Guy! Can I use a script to change the timeout value for the screensaver on a computer? -- JN Hey, JN. For some reason, Microsoft’s scripting technologies come up a little short any time you’re talking about Windows settings and components...
Hey, Scripting Guy! Blog
How Can I Determine the OU a User Account Belongs To?
Posted
over 9 years ago
by
ScriptingGuy1
6
Comments
Hey, Scripting Guy! How do I determine the OU a user account belongs to? -- CO Hey, CO. Ah, yes: the OU a user belongs to. No doubt a lot of you are thinking, “Well, there’s probably an OU property of some kind in Active Directory that gives you that...
Hey, Scripting Guy! Blog
How Can I Change a Read-only File to a Read-write File?
Posted
over 9 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I change a read-only file to a read-write file? -- WR Hey, WR. We don’t mean to shock you, but how can you change a read-only file to a read-write file? Why, by using a script, of course! We know: you never saw that coming...
Hey, Scripting Guy! Blog
How Can I Create a CSV File?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I create a CSV file? -- LF Hey, LF. For those of you who aren’t up on your acronyms, CSV is short for comma-separated-values file, a text file in which individual elements are separated by commas. For example, say you have...
Hey, Scripting Guy! Blog
How Can I Determine the Percentage of Free Space on a Drive?
Posted
over 9 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! I know how to determine the amount of free space on a drive, but how can I determine the percentage of free disk space on a drive? -- MS Hey, JP. You’re right: determining the amount of free disk space on a drive is pretty easy...
Hey, Scripting Guy! Blog
How Can I Automatically Run a Script Any Time a File is Added to a Folder?
Posted
over 9 years ago
by
ScriptingGuy1
11
Comments
Hey, Scripting Guy! Is it possible to have a script automatically run any time a file is added to a specific folder? -- MB Hey, WM. Yes, this is possible, thanks to the magic of WMI events, which allow you to write a script to monitor for something...
Hey, Scripting Guy! Blog
How Can I Count the Number of Lines in a Text File?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I count the number of lines in a text file? -- MS Hey, MS. It’s easy to tell that Microsoft’s scripting technologies weren’t written by people who do system administration for a living. Our scripting technologies are jam...
Hey, Scripting Guy! Blog
How Can I Display a Hyperlink in a Message Box?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! Is it possible to have a hyperlink to a Web page in a message box? -- CB Hey, CB. Sounds like you want to display a message box to users and, ideally, you’d like to include a hyperlink they could click on for more information. For...
Hey, Scripting Guy! Blog
How Can I Determine the Owner of a File?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Is there a way to determine the owner of a file by using a script? -- BD Hey, BD. As a matter of fact there is a way to use a script to determine the owner of the file, though it’s understandable why you might not be able to find...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! Can I Retrieve Just Failure Events from the Security Event Log?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Is there a way to retrieve just Failure Audit events from the Security event log? -- KA Hey, KA. Interesting, isn’t it: any time the subject is failure, people turn to the Scripting Guys. What makes you think we know anything about...
Hey, Scripting Guy! Blog
How Can I Tell Which Scripts are Running on a Computer?
Posted
over 9 years ago
by
ScriptingGuy1
6
Comments
Hey, Scripting Guy! How can I tell which scripts are running on a computer? -- NW Hey, NW. This is a question we’re always a little reluctant to answer, because there’s a 50-50 chance you’ll be disappointed with what you hear. If you are running Windows...
Hey, Scripting Guy! Blog
How Can I Print Text Files Using a Script?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a bunch of text files in a folder. Is there a way to print those files using a script? I know I can use Microsoft Word to print the files from a script, but I don’t have Microsoft Word installed on that computer. -- MA Hey...
Hey, Scripting Guy! Blog
How Can I Send Data from One Script to Another?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! A while back you showed how we could use the InputBox function to prompt a user to enter a value we could then use in our script. What I’d like to know is, is there any way I can take that value and use it in another script? -- JW...
Hey, Scripting Guy! Blog
How Can I Pick Out and Save Specific Lines in a Text File?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! I’d like to be able to read through a text file, select the lines that begin with a particular word (like Failure ), and then save only those lines back to the same text file. Is there any way to do that? -- AC Hey, AC. Hey, AC...
Hey, Scripting Guy! Blog
How Can I Write to the Comments Field of a Document?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Can I add text to the Comments field of a file using a script? -- EF Hey, EF. For those of you who aren’t sure what EF is referring to, right-click a document in Windows Explorer and then click Properties . In the dialog box that...
Hey, Scripting Guy! Blog
How Can I Determine if My Users Have Certain Files on Their Computers?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is it possible to search a computer for .MP3 files or other files my users aren’t supposed to have? -- AK Hey, AK. Once again it’s WMI to the rescue. Using the CIM_DataFile class it’s easy to search a computer for specific file...
Page 1 of 1 (21 items)