At our head office we have several phones and networked PCs. On each desk there is a phone and a PC. The phones' extension numbers range from 10 up to 63; the PCs names are "Dell" appended with a number between 00 and 54 (e.g. "Dell13").
The users hot-desk; that is, John may use computer "Dell13" today while Jane uses "Dell14", but John may use "Dell14" tomorrow while Jane uses "Dell02" in another office, depending on which PC is free to use. The PCs and phones are never moved from the desks, so "Dell13" is always on the desk that can be reached on phone extension 24, and so on.
We're running a Windows 2003 client server with Windows XP PCs on the network. I use a simple VBScript logon script to map drives, printers and suchlike. Is it possible to use the logon script to get the computer name, match this to the desk's phone extension number from an array in the script, and then update the user's Active Directory profile with this extension number?
If this is possible, each time a user logs on their Active Directory profile will be updated to show their current phone extension number. Our administration team can then look-up a user's contact details on their Active Directory profile, making hot-desking users easier to contact by phone.
Unfortunately (due to the order in which our equipment was installed) the phone extension numbers do not correspond to the numbers in the PCs' names, possibly necessitating an array (or external CSV file) to hold these pairs.