Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Determine the Local Path to a Shared Folder?

(image) Hey, Scripting Guy! If I have a UNC path like \\server1\test, can I use a script to determine the local path to that shared folder (like C:\Scripts\Test Folder)?-- JVK(image) (image) (image) Hey, JVK. Yes, you are correct: the Kirkland Fire did open their season last night, rallying for 4 runs in the last two innings to defeat ...

How Can I Delete the C$ Share from a Computer?

(image) Hey, Scripting Guy! How can I delete the C$ share from a computer?-- RB(image) (image) (image) Hey, RB. One quick clarification here: we can tell you how to temporarily delete the C$ share from a computer. However, the share will automatically be recreated any time the Server service is stopped and then restarted, or any time the ...

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

(image) Hey, Scripting Guy! How can I determine which drives on a computer are mapped to network shares?-- CP(image) (image) (image) 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 ...

How Can I Find All the Drives Mapped to a Share and Remap Them?

(image) Hey, Scripting Guy! How can I find all the drives mapped to \\server1\share and remap them to \\server2\share? -- H T-S(image) (image) (image) Hey, H T-S. You know, not too long ago Malcolm Gladwell published a book called The Tipping Point. Loosely speaking, the book posited that something could be ignored for the longest time, at...

How Can I Use a Logon Script to Remove All Mapped Drives?

(image) Hey, Scripting Guy! How can I use a logon script to remove all mapped drives each time a user logs on?-- VS (image) (image) (image) Hey, VS. You know, we’re glad you specifically mentioned the term “logon script” in your question. Why? Well, one of the drawbacks to mapping and unmapping network drives is the fact that there ...