+ Post New Thread
Results 1 to 11 of 11
Windows Thread, Profiles in Technical; I wonder if anyone can help. One of our servers died, which incidentally had lots of applications installed on it. ...
  1. #1

    Join Date
    Aug 2007
    Location
    Surrey
    Posts
    4
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Profiles

    I wonder if anyone can help. One of our servers died, which incidentally had lots of applications installed on it.

    I managed to get all the apps back onto another server, no problem. However, all users share the same desktop, start menu and so on (different for each year group and staff members). The problem is, that during logging on a script is run to connect to the apps server, obviously I've changed the name from the server that died to the new one but the programs on the start menu are now dead links.

    Windows seems to store some info in the profile and I can fix it by deleting a users profile and when they log on, the profile is recreated and the links works.

    What I don't want to do, is have to go through 800+ profiles and delete everything but their favourites (I've been told by the head of IT that the favourites have to stay). Does anyone have a quick fix (if there is one) or an idea of how I can delete everything in a users profile directory apart from the favourites folder?

    Hope I've made sense.

    Thanks.

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,936
    Thank Post
    114
    Thanked 272 Times in 250 Posts
    Rep Power
    104
    Get a script to copy the favorites somewhere first, then delete all contents then copy it back. Not sure how well that would work though.

    You can also give the server the alias of the old server as well as the setting in registry that allows it to be referenced as that through a share.

    Ps get your teeth into DFS it will save you this trouble in the future.

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    I needed to do something similar last summer and ended up using a bash script on Cygwin. All the power of bash, with the prettiness of DOS

    Basically I walked down the profile tree, yanked out each favourites folder and moved it to the appropriate new location. If you tell me something about your environment I'll cook you something up.

  4. Thanks to powdarrmonkey from:

    Obinice (27th March 2008)

  5. #4

    Join Date
    Nov 2006
    Location
    Kendal
    Posts
    1,553
    Thank Post
    111
    Thanked 177 Times in 144 Posts
    Rep Power
    71
    The other thing we've done in the past is created a DNS record pointing the old name at the new server. This means that if something is going to \\server1 for example it still works as the \\server1 and \\newserver both resolve to the IP address of the new server. Saved us loads of time here in similar circumstances.

    You do need to edit the registry on the box to stop strict name checking - can't remember the key but it's easily googled.

  6. #5

    Join Date
    Aug 2007
    Location
    Surrey
    Posts
    4
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I thought I'd have to do that. Thanks anyway.

    Just a quick question, don't want to sound totally dumb. I was thinking of a server alias or something like that, question is, how do I go about it? Do I have to do something in DNS?

  7. #6

    Join Date
    Nov 2006
    Location
    Kendal
    Posts
    1,553
    Thank Post
    111
    Thanked 177 Times in 144 Posts
    Rep Power
    71
    Quote Originally Posted by Obinice View Post
    I thought I'd have to do that. Thanks anyway.

    Just a quick question, don't want to sound totally dumb. I was thinking of a server alias or something like that, question is, how do I go about it? Do I have to do something in DNS?

    This may help

    Renaming a Windows 2003 Server - Server Networking

  8. Thanks to jcollings from:

    Obinice (27th March 2008)

  9. #7

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    You certainly could. I scripted it because at the time we also moved lots of profiley stuff into the user's home directories, and then mapped the appropriately, like Favourites, App data, etc. So that they're loaded on demand instead of being pulled across during login.

    Kinda depends how worried you are about it happening again I guess.

  10. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,378
    Thank Post
    797
    Thanked 1,585 Times in 1,388 Posts
    Blog Entries
    10
    Rep Power
    427
    You could add a few lines to delete the existing shortcuts a few lins before the script creates them.

    What logon script is it? vbs?

  11. #9

    Join Date
    Aug 2007
    Location
    Surrey
    Posts
    4
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for the help, I will try to sort this out in the morning.

  12. #10

    Join Date
    Aug 2007
    Location
    Surrey
    Posts
    4
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    What would you need to know?

  13. #11

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    I guess you want to copy out the favorites folder from each profile so you can delete everything else and give them a new one?

    For a share called 'profiles' where each user has one folder in the root, something like this will move all the favorites to 'someshare' and rename it to include the original profile name:

    Code:
    for a in `ls`; do mv //server/profiles/$a/Favorites //server/someshare/$a_favs; done
    Assume a user jbloggs: it gets a directory listing of the profiles share into the variable $a, walks down into each profile, and moves the favorites folder to \\server\someshare, renaming it in the process to "$a_favs" (eg, jbloggs_favs).

    Just make sure you have permission to move stuff throughout the tree before you start, and watch the spelling of favorites. Have you ever used cygwin?

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle - Profiles
    By wesleyw in forum Virtual Learning Platforms
    Replies: 0
    Last Post: 26th November 2007, 11:56 AM
  2. Profiles!!!!!!!
    By ben_hampshire in forum Wireless Networks
    Replies: 3
    Last Post: 8th May 2007, 02:27 PM
  3. XP {Profiles
    By faza in forum Wireless Networks
    Replies: 31
    Last Post: 23rd December 2006, 01:22 AM
  4. profiles
    By colin in forum Learning Network Manager
    Replies: 1
    Last Post: 6th April 2006, 02:23 PM
  5. Profiles & Sigs
    By Ric_ in forum General EduGeek News/Announcements
    Replies: 5
    Last Post: 18th June 2005, 03:00 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •