Announcement

Collapse
No announcement yet.

Hide path of home folder in mapped drive without using $

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hide path of home folder in mapped drive without using $

    Is there a way to hide the path of the home folder of peoples personal drives without sharing their folder and using the $ at the end of their name?

  • #2
    Re: Hide path of home folder in mapped drive without using $

    What exactly are you trying to do and on what operating system?
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

    Comment


    • #3
      Re: Hide path of home folder in mapped drive without using $

      It's on Windows 2003 Server...when you put in the path of a drive in someone's home folder of their profile, in Active Directory, I want to hide the path to the user, instead of them seeing the whole path.

      this is what they see now:

      username on 'servername\Personal Drive$\Company\Department'

      I want it to just be like:

      username on 'Personal Drive$'

      Comment


      • #4
        Re: Hide path of home folder in mapped drive without using $

        This script should achieve what you're are after I think... It renames the 2 mapped drives we use to read 'Share (S: )' and 'User (U: )' rather than displaying the path.

        Hope it helps.

        -------------------------------------------------------------------------

        option explicit

        dim mdrive, oshell, fso

        set fso=createobject("Scripting.FileSystemObject")

        'Rename User Home Directory

        if fso.driveexists("U:") then

        mdrive = "U:\"
        Set oShell = CreateObject("Shell.Application")
        oShell.Namespace(mdrive).Self.Name = "User"

        end if

        if fso.driveexists("S:") then

        ' Rename Users group share

        mdrive = "S:\"
        Set oShell = CreateObject("Shell.Application")
        oShell.Namespace(mdrive).Self.Name = "Share"

        end if

        ' End of script
        -------------------------------------------------------------------------
        Rob.
        ----
        There are 10 types of people in the world: Those who understand binary, and those who don't...

        Comment

        Working...
        X