Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
March, 2008
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
March, 2008
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Partner & Customer Solutions
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud OS Blogs
Brad Anderson - In the Cloud
Building Clouds
Server & 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
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
June 2013
(46)
May 2013
(68)
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
Hey, Scripting Guy! How Can I Use Windows PowerShell to Add a Domain User to a Local Group?
Posted
over 5 years ago
by
ScriptingGuy1
8
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 Get an HTA to Remember Its Previous Position Onscreen?
Posted
over 5 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 Get a List of Active Directory Groups That Have Just 1 Member or Fewer?
Posted
over 5 years ago
by
ScriptingGuy1
4
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 List the Members of a Domain Group That Belongs to the Local Administrators Group?
Posted
over 5 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 Change the Last-Accessed Date of a File to Match Its Last-Modified Date?
Posted
over 5 years ago
by
ScriptingGuy1
4
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 Retrieve a List of All My Computer Accounts, Grouped By OU?
Posted
over 5 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 Copy a File to a Removable Drive If I Don’t Know the Drive Letter of That Drive?
Posted
over 5 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 Use Both AND and OR Operators in a Single WMI Query?
Posted
over 5 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 Map a Drive Based on the Computer’s Subnet?
Posted
over 5 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 Incrementally Rename Files Based on the File Creation Date?
Posted
over 5 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 Sort a Spreadsheet By Cell Color?
Posted
over 5 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 Find the Number (and Size) of All the Files Recently Modified or Added to a Computer?
Posted
over 5 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 Retrieve the User Name and User Initials From Microsoft PowerPoint?
Posted
over 5 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 Return a List of All the Folders Whose Name Starts With a Specified String Value?
Posted
over 5 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 Use Data Read From a Text File as Command-Line Parameters For a Batch File?
Posted
over 5 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 Add a Hotkey to an HTA Button?
Posted
over 5 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 Verify That a User Entered a Valid Drive Letter?
Posted
over 5 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 Retrieve Information About All the Shortcut Files in a Folder?
Posted
over 5 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 Write a Message to All the Empty Files in a Folder?
Posted
over 5 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 Standardize the Logon Name for All My Users?
Posted
over 5 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 Change a File That’s Found in a Folder and in All Its Top-Level Subfolders?
Posted
over 5 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)