Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
November, 2004
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
November, 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
(50)
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
Can I Edit .INI Files Using a Script?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Can I edit.INI files using a script? -- MZ Hey, MZ. Yes, you can edit .INI files (or any kind of text files, for that matter) using a script. The method you have to use might not be the most elegant process in the world, but it...
Hey, Scripting Guy! Blog
How Can I Attach a File to an Email Sent Using CDO?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I understand how to use CDO to send an email, but how do I include an attachment with that email? -- RT Hey, RT. And, incidentally, thanks for this question. At least one of the Scripting Guys spent most of his Thanksgiving weekend...
Hey, Scripting Guy! Blog
How Can I Retrieve Disk Quota Information for a Single User?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! How can I retrieve disk quota information for a single user? -- AB Hey, AB. There are a couple different ways to get disk quota information for a single user, depending on which version of Windows you have installed on the computer...
Hey, Scripting Guy! Blog
How Can I Run a Script Against a Range of IP Addresses?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’d like to run a script against all the computers on a subnet. Is there a way to do that without having to hardcode all the IP addresses into the script? -- RB Hey, RB. Based on your email, it sounds like you have a setup similar...
Hey, Scripting Guy! Blog
How Can I List the Members of a Group in Alphabetical Order?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I have a script that returns the names of all the users in an Active Directory group. How can I sort those names in alphabetical order? -- JW Hey, JW. Ah, yes, sorting data: the bane of script writers everywhere. Unfortunately...
Hey, Scripting Guy! Blog
How Can I Put New Users in the Same OU as the Person Creating Their Accounts?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! We use a script to create user accounts. How can I modify this script so that it will place the new user in the same OU as the person running the script? -- CB Hey, CB. Interesting question. We’re assuming that you’ve delegated...
Hey, Scripting Guy! Blog
Can I Use a Script to Determine the Size of a Folder on a Remote Computer?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Can I use a script to determine the size of a folder on a remote computer? -- SS Hey, SS. Boy, you’d think you’d be able to do that, wouldn’t you? Especially if you’ve glanced through the WMI class Win32_Directory and noticed the...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! Is There Any Way to Determine the Default Printer On a Computer?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is there any way to determine the default printer on a computer? -- JW Hey, JW. If you’re running Windows XP or Windows Server 2003, determining the default printer is easy. That’s because the WMI class Win32_Printer found on these...
Hey, Scripting Guy! Blog
Can I Read an Entire Text File Rather Than Reading It Line-by-Line?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! Right now I use a script to open a text file containing computer names. The script reads the first line of the file and connects to that computer, then reads the second line of the file and connects to that computer. Is there a way...
Hey, Scripting Guy! Blog
Can I Lock a Workstation Using a Script?
Posted
over 9 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! I know how I can shut down a computer using a script, and I even know how I can log a user off using a script. But is there any way I can lock a workstation using a script? -- TO-R Hey, TO-R. Most likely you’re familiar with the...
Hey, Scripting Guy! Blog
How Can I Tell If an OU Has Any User Accounts In It?
Posted
over 9 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell if an OU has any user accounts in it? -- RL Hey, RL. As a matter of fact, there is a way to determine whether or not an OU contains any user accounts: all you have to do is search just that OU for nothing but user...
Hey, Scripting Guy! Blog
Can I Pin a File to the Start Menu by Using a Script?
Posted
over 9 years ago
by
ScriptingGuy1
6
Comments
Hey, Scripting Guy! Can I pin a file to the Start Menu by using a script? -- ZD Hey, ZD. For those of you who haven’t bought Windows XP yet (hey, what’s the matter with you; we Scripting Guys have families to feed!), by default XP’s Start Menu changes...
Hey, Scripting Guy! Blog
Can I Create and Delete a DSN Using a Script?
Posted
over 9 years ago
by
ScriptingGuy1
10
Comments
Hey, Scripting Guy! Is it possible to create an ODBC Data Sources Name (DSN) on the fly and then remove it when done? -- KC Hey, KC. Is it possible to create and then delete an ODBC DSN? To tell you the truth, we weren’t entirely sure. As it turns...
Hey, Scripting Guy! Blog
Can I Use a Script to Rename All the Files in a Folder?
Posted
over 9 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Can I use a script to rename all the files in a directory and include a "pl-" prefix plus the original file name? -- JP Hey, JP. It’s interesting how many people need to do something similar: they need to rename all the files in...
Hey, Scripting Guy! Blog
How Can I Change the Internet Explorer Home Page?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Can I change the Internet Explorer home page by using a script? -- AH Hey, AH. It’s Monday morning, and after a hard weekend of sitting around watching football, we decided to take it easy this morning. Yes, you can change the Internet...
Hey, Scripting Guy! Blog
How Can I Work with a CN that Has a Comma in It?
Posted
over 9 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! My user accounts have commas in their CN attributes; for example, Myer, Ken . How do I bind to those user accounts using a script? I always get the error message “An invalid dn syntax has been specified.” -- GT Hey...
Hey, Scripting Guy! Blog
How Can I Delete All Files Older Than a Specified Date?
Posted
over 9 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! I’d like to have a script that can search my computer for all files older than a certain date, and then automatically delete those files. Can I do that? -- GM Hey, GM. Can you write a script that will search for and delete all the...
Hey, Scripting Guy! Blog
How Can I Play a Sound From Within a Script?
Posted
over 9 years ago
by
ScriptingGuy1
12
Comments
Hey, Scripting Guy! I have a script that pops up a message box to alert users to a problem. Is there any way I can play a sound at the same time the message box appears? -- TL Hey, TL. You guys do this on purpose, don’t you; you love to ask questions...
Hey, Scripting Guy! Blog
How Can I Delete the Files in the Temporary Internet Files Folder?
Posted
over 9 years ago
by
ScriptingGuy1
7
Comments
Hey, Scripting Guy! Is there a way to delete all the files in the Temporary Internet Files folder using a script? -- KR Hey, AK. You know, prompted by your question one of the Scripting Guys (who shall remain nameless) thought to himself, “Hmmm, I...
Hey, Scripting Guy! Blog
How Can I Make Selections from a Form When Using a Script?
Posted
over 9 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’d like to have a form with four radio buttons on it, each button representing a different computer. You choose a radio button, click another button, and then a script runs against the computer you selected. How do I do that? -- CW...
Page 1 of 1 (20 items)