Windows 8 Thread, rename Pupils Mapped Drive to their first name in Technical; is it possible? I tried adding %firstname% to the mapped drive in GPP but that exactly what it put on ...
24th July 2014, 11:06 AM #1
rename Pupils Mapped Drive to their first name
is it possible? I tried adding %firstname% to the mapped drive in GPP but that exactly what it put on the folder
I always normally use the %username% and it works, I just thought a first name would be a nice touch.
24th July 2014, 11:13 AM #2
I use a Powershell startup script:
Obviously set the last bit to whatever you want to display. I put the home bit at the front as I don't show drive letters (drives me mad that people refer to the 'K' Drive - that means nothing to me on the server!) and the ordering goes by first letter of the name and sends them all over the place.
$sh=New-Object -com Shell.Application
$sh.NameSpace('H:').Self.Name = "(Home) - $Username"
24th July 2014, 01:20 PM #3
The following PowerShell script will do what you want.
$AD = [ADSISearcher]"(samaccountname=$env:USERNAME)"
$FirstName = $AD.FindOne().Properties.givenname
(New-Object -ComObject Shell.Application).NameSpace('H:').Self.Name="$FirstName"
By Michael in forum Windows Server 2008 R2
Last Post: 1st June 2012, 02:09 PM
By sjpage10 in forum How do you do....it?
Last Post: 14th March 2012, 09:56 AM
By Admiral208 in forum How do you do....it?
Last Post: 27th October 2011, 09:34 PM
Last Post: 18th March 2011, 06:20 PM
Last Post: 22nd September 2010, 04:16 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)