Hey everyone,
I use a custom .adm file to allow me to specify what shares a user should have mapped when they log on. This works just fine for almost everything. The only thing that it doesn't do right is map the users personal drive. The drives are all shared in the form username$ (for exmple mine is \\fileserver\dparrott$). I have tried using the UNC path of \\fileserver\%username%$ but it doesn't map the drive. Any clue what I can do to get this to work.
This is the .adm template I used. The only thing I have changed is the drive letter and the default under RemotePath. I also added explaination text.
CLASS USER
CATEGORY "Network Drives"
POLICY "Drive K"
KEYNAME Network\K
PART "ConnectionType - LEAVE" NUMERIC REQUIRED
MIN 1 MAX 1 DEFAULT 1
VALUENAME "ConnectionType"
END PART
PART "ProviderName - LEAVE" EDITTEXT REQUIRED
DEFAULT "Microsoft Windows Network"
VALUENAME "ProviderName"
END PART
PART "ProviderType - LEAVE" NUMERIC REQUIRED
MIN 131072 MAX 131072 DEFAULT 131072
VALUENAME "ProviderType"
END PART
PART "RemotePath" EDITTEXT REQUIRED
DEFAULT "\\SERVER\SHARE"
VALUENAME "RemotePath"
END PART
PART "UserName - LEAVE BLANK" EDITTEXT
DEFAULT ""
VALUENAME "UserName"
END PART
END POLICY
END CATEGORY
I got this from the following website.
Thanks,
Danny
I use a custom .adm file to allow me to specify what shares a user should have mapped when they log on. This works just fine for almost everything. The only thing that it doesn't do right is map the users personal drive. The drives are all shared in the form username$ (for exmple mine is \\fileserver\dparrott$). I have tried using the UNC path of \\fileserver\%username%$ but it doesn't map the drive. Any clue what I can do to get this to work.
This is the .adm template I used. The only thing I have changed is the drive letter and the default under RemotePath. I also added explaination text.
CLASS USER
CATEGORY "Network Drives"
POLICY "Drive K"
KEYNAME Network\K
PART "ConnectionType - LEAVE" NUMERIC REQUIRED
MIN 1 MAX 1 DEFAULT 1
VALUENAME "ConnectionType"
END PART
PART "ProviderName - LEAVE" EDITTEXT REQUIRED
DEFAULT "Microsoft Windows Network"
VALUENAME "ProviderName"
END PART
PART "ProviderType - LEAVE" NUMERIC REQUIRED
MIN 131072 MAX 131072 DEFAULT 131072
VALUENAME "ProviderType"
END PART
PART "RemotePath" EDITTEXT REQUIRED
DEFAULT "\\SERVER\SHARE"
VALUENAME "RemotePath"
END PART
PART "UserName - LEAVE BLANK" EDITTEXT
DEFAULT ""
VALUENAME "UserName"
END PART
END POLICY
END CATEGORY
I got this from the following website.
Thanks,
Danny