Showing tag results for storage

Dec 7, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Map Drives Based on Membership in an Active Directory Group?

ScriptingGuy1

Hey, Scripting Guy! I need to map a drive based on a user’s membership in a particular Active Directory group. However, I have a twist as well: I need to map a different drive depending on whether or not the user is a manager. In other words, I need to map a drive based on both group membership and job title. How do I do that?-- SA Hey, SA. You ...

Scripting Guy!VBScriptActive Directory
Nov 14, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Remove Old Files From All the Folders That Share a Folder Name?

ScriptingGuy1

Hey, Scripting Guy! We have a whole bunch of folders named Archive, all on the same computer. How can I search for all these folders, go through each one, and remove any files that are older than XX number of days?-- CH Hey, CH. Well, it’s Day 2 of TechEd IT Forum here in Barcelona, and today’s the day the Scripting Guys really go back to work. ...

Scripting Guy!VBScriptstorage
Nov 1, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Delete All the Files in a Folder Older Than 90 Days?

ScriptingGuy1

Hey, Scripting Guy! In Windows PowerShell, how can I determine the number of days difference between two dates? I want to be able to delete all the files in a folder that are more than 90 days old.-- JN Hey, JN. You know, today is October 31st and, in the US at least, it’s the day when the dark underworld takes over: witches parade through the s...

Scripting Guy!Windows PowerShellstorage
Oct 24, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Move Files Based on a Value in the File Name?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of files that I need to move to new folders; the folder a given file will be moved to is based on the year, a value that appears in the file name. How can I write a script to move these files?-- LP Hey, LP. Before we launch into today’s column, we should clarify a couple of points which came up in an “Editor’s ...

Scripting Guy!VBScriptstorage
Oct 12, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Map Drives Based on IP Address?

ScriptingGuy1

Hey, Scripting Guy! I have been using your script that maps drives based on group membership, and it works just fine. However, I need to modify the script so that drive mappings are also based on the location of the computer (more specifically, on the computer IP address). For example, we have a remote site that uses an ISDN connection and I don’...

Scripting Guy!VBScriptstorage