Quantcast
Channel: December 2004 - Scripting Blog [archived]
Browsing latest articles
Browse All 16 View Live

Image may be NSFW.
Clik here to view.

Can I Combine Multiple Text Files Using a Script?

Hey, Scripting Guy! From the command prompt the command copy a.txt+b.txt ab.txt will take the contents of a.txt and the contents of b.txt and combine them into a new file named ab.txt. Can I do the...

View Article



Image may be NSFW.
Clik here to view.

How Can I Prevent a Local User From Changing His or Her Password?

Hey, Scripting Guy! How can I configure a local user account so that the user can’t change his or her password?— DC Hey, DC. The secret here lies in the mysterious userFlags attribute. We’ll show you...

View Article

Image may be NSFW.
Clik here to view.

How Can I Determine the SID for a User Account?

Hey, Scripting Guy! How can I determine the SID for a user account?— MD Hey, MD. For those of you whose eyes glaze over any time they see an acronym (not that we blame you), SID is short for Security...

View Article

Image may be NSFW.
Clik here to view.

How Can I Assign a New UPN to All My Users?

Hey, Scripting Guy! How can I assign a new UPN to all my users?— CH Hey, CH. The UPN (or User Principal Name) provides an alternate way of logging on to a domain. Typically you log onto a domain by...

View Article

Image may be NSFW.
Clik here to view.

How Can I Return a List of All My Computers Except Those in a Specified OU?

Hey, Scripting Guy! I need to get back a list of all the computers in my domain, except for the computers which are in our Test Lab OU. How do I do that?— AM Hey, AM. This seems to be one of the hot...

View Article


Image may be NSFW.
Clik here to view.

How Can I Determine the Executable File Corresponding to a Shortcut?

Hey, Scripting Guy! How can I determine the executable file name corresponding to a .lnk shortcut file?— AM Hey, DE. We’re glad you asked this question; unlike some questions we get (like, “How do I...

View Article

Image may be NSFW.
Clik here to view.

How Can I Rename Files Based on the File’s Creation Date?

Hey, Scripting Guy! I have a folder that contains a bunch of log files. I would like to rename each file based on the date the file was created; for example, if a file was created on December 1, 2004,...

View Article

Image may be NSFW.
Clik here to view.

How Can I Map Drives Based on Membership in a Group?

Hey, Scripting Guy! How can I map drives in a logon script based on a security group each user belong to?— RO Hey, RO. Considering the fact that this question has been asked by approximately 3,755,392...

View Article


Image may be NSFW.
Clik here to view.

How Can I Run a Script Under Alternate Credentials?

Hey, Scripting Guy! Is there a way for me to log on to a computer using a regular user account, but then run a script as a domain administrator?— WW Hey, WW. In answer to your question, yes, both WMI...

View Article


Image may be NSFW.
Clik here to view.

How Can I Rename an Active Directory Group?

Hey, Scripting Guy! How can I rename an Active Directory group?— CL Hey, CL. This is actually pretty easy; as you’ll see, it only takes two lines of code. It’s not a hard problem, it’s just a little...

View Article

Image may be NSFW.
Clik here to view.

How Can I Grab a URL From the Clipboard and Then Open That Web Site in a...

Hey, Scripting Guy! How can I grab a URL from the clipboard and then open that Web site in a browser?— CL Hey, CL. Interesting question, or, should we say, questions. That’s because there’s really two...

View Article

Image may be NSFW.
Clik here to view.

How Can I Get a List of All the Domain Controllers in My Domain?

Hey, Scripting Guy! Is it possible to get a list of all the domain controllers in my domain?— KT Hey, KT. As a matter of fact, there are at least two ways to get a list of all domain controllers in...

View Article

Image may be NSFW.
Clik here to view.

How Can I Connect to a Folder When There’s an Apostrophe in the Folder Name?

Hey, Scripting Guy! I’m using the WMI class Win32_Directory to get information about folders on a computer. It works great, except when there’s an apostrophe in the folder name; then, it doesn’t work...

View Article


Image may be NSFW.
Clik here to view.

How Can I Return a List of Downloaded Controls and Applets for Internet...

Hey, Scripting Guy! Is there an easy way to find out what programs have been downloaded for Internet Explorer (the items that are in the folder C:\Windows\Downloaded Program Files)? I can use a script...

View Article

Image may be NSFW.
Clik here to view.

How Can I Tell Whether a Group is a Security Group or a Distribution Group?

Hey, Scripting Guy! Is there any way to tell whether an Active Directory group is a security group or a distribution group?— AW Hey, AW. As a matter of fact, there is; this script will tell you what...

View Article


Image may be NSFW.
Clik here to view.

How Can I Save Word Documents as Text Files By Using a Script?

Hey, Scripting Guy! I have a series of Word files. I would like to open each of these files and save them as plain-text files. Is there a way to do that using a script?— CG Hey, CG. Yes, you can do...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>