Showing tag results for Scripting Guy!

Oct 27, 2005
Post comments count0
Post likes count0

How Can I Determine Which Drives are Mapped to Network Shares?

ScriptingGuy1

Hey, Scripting Guy! How can I determine which drives on a computer are mapped to network shares?-- CP Hey, CP. OK, you better sit down, because what we’re about to say will shock you: if you want to determine which drives on a computer are mapped to network shares, don’t use the Win32_MappedLogicalDisk class. Oh, look: you spilled coffee on ever...

Scripting Guy!VBScriptstorage
Oct 26, 2005
Post comments count0
Post likes count0

How Can I Determine if an OU is Blocking Group Policy Inheritance?

ScriptingGuy1

Hey, Scripting Guy! How can I determine if an OU has the Group Policy property Block Policy Inheritance box checked?-- PP Hey, PP. You know, sometimes you wait all your life for a situation to arise, and then it never arises. For example, one of the Scripting Guys happens to know all nine verses to the song My Darlin’ Clementine. All his life he...

Scripting Guy!VBScriptActive Directory
Oct 25, 2005
Post comments count0
Post likes count0

How Can I Delete a Backup File Created on the Previous Day?

ScriptingGuy1

Hey, Scripting Guy! Each day we have a program that creates a file with a name similar to this: backup_20050607.bak. How can I delete the previous day’s file?-- JC Hey, JC. Hmmm, a script that goes out and automatically deletes whatever happened the day before. Boy, could we have used a script like that a few weeks ago! Yes, we know. But that’s ...

Scripting Guy!VBScriptstorage
Oct 24, 2005
Post comments count0
Post likes count0

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

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

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

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