Showing results for October 2005 - Page 2 of 5 - Scripting Blog [archived]

Oct 24, 2005
0
0

How Can I Remove a Group from the Local Administrators Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I remove a group from the local Administrators group?-- SB Hey, SB. One of the Scripting Guys has very vague memories of an old TV show called Branded, in which the hero (played by Chuck Connors) was accused of cowardice and then dishonorably discharged from the US Cavalry. About all the Scripting Guy remembers from t...

Scripting Guy!VBScriptActive Directory
Oct 21, 2005
0
0

How Can I Read a Text File on a Remote Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I read a text file on a remote computer?-- BM Hey, BM. We have a confession to make: we’re using you and your question for our own nefarious purposes. Earlier this week we answered a question about reading the last line in a group of text files; in our answer we promised we’d show people how to use the FileSystemObjec...

Scripting Guy!scripting techniquesVBScript
Oct 20, 2005
0
0

How Can I Verify That a Folder Has Files in It and, If So, Delete Those Files?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I verify that a certain folder (C:\TestLog) has files in it and, if so, delete all those files?-- DC Hey, DC. Before we begin we should point out that - when using WMI - it doesn’t matter whether or not a folder has any files in it: you can still tell WMI to delete all the files in that folder. If no such files exist ...

Scripting Guy!VBScriptstorage
Oct 19, 2005
0
0

Hey, Scripting Guy! How Can I Configure the Hide From Exchange Address Lists Property for All the Contacts in a Domain?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I configure the Hide From Exchange Address Lists property for all the contacts in a domain?-- MM Hey, MM. You know what the say: you can run, but you can’t hide (especially from Microsoft Exchange!). But what they forgot to add is that you can hide, as long as you’ve set the value of the MSExchHideFromAddressLists att...

Scripting Guy!scripting techniquesVBScript
Oct 18, 2005
0
0

How Can I Add the Last Lines from a Group of Text Files to a Word Document?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I take the last line in a group of text files and paste that information into a Word document?-- JV Hey, JV. You know, one thing we try to do in this column is focus on practical system administration tasks. We’ll deviate from that focus every now and then, but for the most part we try to address questions we feel a l...

Scripting Guy!scripting techniquesVBScript