Showing archive results for 2006

Jan 13, 2006
Post comments count0
Post likes count0

How Can I List All the Sub-OUs in an OU?

ScriptingGuy1

Hey, Scripting Guy! How can I list all the sub-OUs in an OU? That includes any OUs that might be in those sub-OUs.-- JE Hey, JE. If you’re the least bit familiar with this column then you know that we Scripting Guys love to answer questions that involve searching Active Directory. That’s because we never bother to write detailed explanations of ...

Scripting Guy!VBScriptActive Directory
Jan 12, 2006
Post comments count0
Post likes count0

How Can I Determine Which Day of the Year a Date Falls On?

ScriptingGuy1

Hey, Scripting Guy! How can I determine which day of the year a date falls on? For example, March 2, 2006 is the 61st day of the year.-- TW Hey, TW. You know, we almost feel guilty about answering this question. Why? Well, after all, we can answer it by writing just one line of code:Wscript.Echo DatePart("y", "3/2/2006") Note. So if it’s t...

Scripting Guy!scripting techniquesVBScript
Jan 11, 2006
Post comments count0
Post likes count0

How Can I Take Ownership of a File or Folder By Using a Script?

ScriptingGuy1

Hey, Scripting Guy! How can I take ownership of a file or folder using a script?-- RV Hey, RV. Interesting question. In the past, the Scripting Guys have tried to take ownership of a Porsche 911, beachfront property in Hawaii, and the New York Yankees; all of those efforts failed. Considering our track record, we weren’t sure what would happen i...

Scripting Guy!VBScriptstorage
Jan 10, 2006
Post comments count0
Post likes count0

How Can I Change the Font Name and Size for an Entire Word Document?

ScriptingGuy1

Hey, Scripting Guy! How can I change the font name and size for an entire Word document?-- CD Hey, CD. You know, this question reminded us of how old we Scripting Guys are getting - well, all of us except for Jean, of course, who continues to get younger and more beautiful every day. Note. No, that isn’t really true. However, because Jean’s...

Scripting Guy!VBScriptOffice
Jan 9, 2006
Post comments count0
Post likes count0

How Can I Remove All the Black-and-White Printers on a Computer?

ScriptingGuy1

Hey, Scripting Guy! On a Windows XP computer, how can I remove all the black-and-white printers, leaving only color printers?-- JL Hey, JL. You know, in one classic episode of the Simpsons, Bart, in the throes of a sugar high, joins the Junior Campers. The next morning, realizing what he has done, he vows to weasel out of his commitment. His mot...

Scripting Guy!VBScriptprinting