Showing tag results for Scripting Guy!

Oct 20, 2005
Post comments count0
Post likes count0

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

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
Post comments count0
Post likes count0

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

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
Post comments count0
Post likes count0

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

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
Oct 17, 2005
Post comments count0
Post likes count0

How Can I List All the Users in an NT 4.0 Domain?

ScriptingGuy1

Hey, Scripting Guy! How can I list all the users in an NT 4.0 domain, along with their description and logon script path?-- HH Hey, HH. Ah, yes NT 4.0. Windows NT 4.0 reminds us of dandelions: it doesn’t matter whether you like dandelions or not, there’s simply no way to get rid of them. The same is true of NT 4.0. Regardless of what people thin...

Scripting Guy!VBScriptother Directory Services
Oct 14, 2005
Post comments count0
Post likes count0

How Can I Add a User to a Group if That User Belongs to Two Other Groups?

ScriptingGuy1

Hey, Scripting Guy! How can I check to see if a user is in both group A and group B and, if so, add that user to Group C?-- DH Hey, DH. Good heavens, how are we supposed to know that?!? Sheesh. Sorry; we just always wanted to say that. Now that we have that out of our system, here’s a sample script that checks to see if Ken Myer belongs to both ...

Scripting Guy!VBScriptActive Directory