Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
TechNet Blogs
>
Hey, Scripting Guy! Blog
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 Count the Number of Times a User has Logged on to a Computer?
Posted
over 8 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 8 years ago
by
ScriptingGuy1
12
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 8 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 8 years ago
by
ScriptingGuy1
9
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 8 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 8 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 8 years ago
by
ScriptingGuy1
2
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 8 years ago
by
ScriptingGuy1
37
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 8 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 8 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 8 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 8 years ago
by
ScriptingGuy1
2
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 8 years ago
by
ScriptingGuy1
2
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...
Hey, Scripting Guy! Blog
How Can I Make Changes to and Then Re-Save an Existing Excel Spreadsheet?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! How can I open an existing Excel spreadsheet, add some additional information to that spreadsheet, and then save my changes? Every time I call the SaveAs method a dialog box pops up asking me if I want to save my changes. -- RW ...
Hey, Scripting Guy! Blog
How Can I Show Users a Dialog Box for Selecting Files?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Is there any way I can use a script to present a user with a dialog box and let him or her select a file? -- BF Hey, BF. If you’re using Windows 2000, we don’t know of a way to do this, at least not a way that’s built into the operating...
Hey, Scripting Guy! Blog
How Can I Determine the System Time on a Computer?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is there any way to retrieve the system time as configured on a remote computer? -- JJ Hey, JJ. There are at least two ways to do this, both using WMI. If you’re running Windows XP or Windows Server 2003, you can use the WMI class...
Hey, Scripting Guy! Blog
How Can I Retrieve Information From My Event Logs Regarding Unsuccessful Logons?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I scan the event logs of my servers and return only information about unsuccessful logons? -- LC Hey, LC. We’ll assume that you have enabled security auditing on your servers. If you haven’t, that’s step one. What you’ll...
Hey, Scripting Guy! Blog
How Can I Read Just a Single, Specified Line from a Text File?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I read only a specific line in a text file? For example, how can I write a script that reads only line 16 in a text file and then stores the value of that line in a variable? -- DL Hey, DL. You know we haven’t answered a...
Hey, Scripting Guy! Blog
How Can I Determine the Next Available Drive Letter on a Computer?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I determine the next available drive letter on a computer? -- TW Hey, TW. Interesting question, and one that crops up from time-to-time. In the old days, when users only had drives A, B, and C, this was easy; you could pretty...
Hey, Scripting Guy! Blog
How Can I Find and Move an Active Directory Computer Account?
Posted
over 8 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! I need to move a computer account from one OU to another; however, I don’t know which OU the computer account is currently in. Any advice? -- AA Hey, AA. You know, one thing that marks all the great advice columns - Dear Abby ;...
Hey, Scripting Guy! Blog
How Can I Tell Which Switches Were Used When Starting an Executable File?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is there any way to tell which command-line arguments (if any) were used when starting an executable file? -- TO Hey, TO. We don’t mean to cause a scandal in the scripting world - well, OK, we don’t mean to cause any more scandals...
Hey, Scripting Guy! Blog
How Can I Change the Caption for the My Computer Icon?
Posted
over 8 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! Instead of having the My Computer icon on the desktop read My Computer , I’d like to replace that with the name of the computer. Can I do that using a script? -- TG Hey, TG. We get asked this question quite a bit; apparently a lot...
Hey, Scripting Guy! Blog
How Can I Make a Read-Only File Writeable?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is it possible to use a script to change the read-only attribute of a file? -- ZO Hey, ZO. Of course, you can do this; the FileSystemObject can do anything ! Well, OK, it can’t do either of those things. And, no, it can’t do...
Hey, Scripting Guy! Blog
How Can I Change the Legal Warning Message Using a Script?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I use a script to change the legal warning message on a computer? -- RB Hey, RB. As you all probably know, when you press Ctrl-Alt-Delete to log on to Windows, you’re typically presented with a logon box. You type your user...
Hey, Scripting Guy! Blog
How Can I Tell if a Folder Has Any Files with a Specific File Extension?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I verify whether or not any files with a specific file extension exist in a folder? -- GM Hey, GM. This is actually a pretty easy thing to do. All we have to do is write a WMI query that includes the path of the folder we...
Page 119 of 124 (3,084 items)
«
117
118
119
120
121
»