Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Windows

Windows forum sponsored by

For all of your Windows problems

Go Back   EduGeek.net Forums > Technical > Windows
Reply
 
LinkBack Thread Tools Search Thread
Sponsored Links
Old 27-03-2008, 07:55 PM   #1
 
Obinice's Avatar
 
Join Date: Aug 2007
Location: Surrey
Posts: 4
uk
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 Obinice is an unknown quantity at this point
Default 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.
  Reply With Quote
Old 27-03-2008, 08:09 PM   #2
 
ChrisH's Avatar
 
Join Date: Jun 2005
Location: East Lancs
Posts: 4,438
uk uk lancashire
Thanks: 21
Thanked 103 Times in 94 Posts
Rep Power: 35 ChrisH is a glorious beacon of light ChrisH is a glorious beacon of light ChrisH is a glorious beacon of light ChrisH is a glorious beacon of light ChrisH is a glorious beacon of light ChrisH is a glorious beacon of light
Default

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.
  Reply With Quote
Old 27-03-2008, 08:35 PM   #3
 
powdarrmonkey's Avatar
 
Join Date: Feb 2008
Location: Alcester, Warwickshire
Posts: 3,826
uk uk england
Thanks: 252
Thanked 549 Times in 472 Posts
Rep Power: 115 powdarrmonkey ooh
powdarrmonkey ooh powdarrmonkey ooh
Default

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.
  Reply With Quote
Thanks to powdarrmonkey from:
Obinice (27-03-2008)
Old 27-03-2008, 08:37 PM   #4
 
jcollings's Avatar
 
Join Date: Nov 2006
Location: Kendal
Posts: 1,246
uk
Thanks: 52
Thanked 113 Times in 93 Posts
Rep Power: 39 jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold
Default

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.
  Reply With Quote
Old 27-03-2008, 08:37 PM   #5
 
Obinice's Avatar
 
Join Date: Aug 2007
Location: Surrey
Posts: 4
uk
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 Obinice is an unknown quantity at this point
Default

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?
  Reply With Quote
Old 27-03-2008, 08:41 PM   #6
 
jcollings's Avatar
 
Join Date: Nov 2006
Location: Kendal
Posts: 1,246
uk
Thanks: 52
Thanked 113 Times in 93 Posts
Rep Power: 39 jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold jcollings is a splendid one to behold
Default

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
  Reply With Quote
Thanks to jcollings from:
Obinice (27-03-2008)
Old 27-03-2008, 08:44 PM   #7
 
powdarrmonkey's Avatar
 
Join Date: Feb 2008
Location: Alcester, Warwickshire
Posts: 3,826
uk uk england
Thanks: 252
Thanked 549 Times in 472 Posts
Rep Power: 115 powdarrmonkey ooh
powdarrmonkey ooh powdarrmonkey ooh
Default

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.
  Reply With Quote
Old 27-03-2008, 08:57 PM   #8
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 8,109
uk
Thanks: 280
Thanked 531 Times in 481 Posts
Rep Power: 109 FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute FN-GM has a reputation beyond repute
Send a message via Skype™ to FN-GM
Default

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?
  Reply With Quote
Old 27-03-2008, 09:25 PM   #9
 
Obinice's Avatar
 
Join Date: Aug 2007
Location: Surrey
Posts: 4
uk
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 Obinice is an unknown quantity at this point
Default

Thanks for the help, I will try to sort this out in the morning.
  Reply With Quote
Old 27-03-2008, 09:26 PM   #10
 
Obinice's Avatar
 
Join Date: Aug 2007
Location: Surrey
Posts: 4
uk
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 Obinice is an unknown quantity at this point
Default

What would you need to know?
  Reply With Quote
Old 27-03-2008, 10:17 PM   #11
 
powdarrmonkey's Avatar
 
Join Date: Feb 2008
Location: Alcester, Warwickshire
Posts: 3,826
uk uk england
Thanks: 252
Thanked 549 Times in 472 Posts
Rep Power: 115 powdarrmonkey ooh
powdarrmonkey ooh powdarrmonkey ooh
Default

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?
  Reply With Quote
Reply

EduGeek.net Forums > Technical > Windows

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moodle - Profiles wesleyw Virtual Learning Platforms 0 26-11-2007 12:56 PM
Profiles!!!!!!! ben_hampshire Networks 3 08-05-2007 02:27 PM
XP {Profiles faza Networks 31 23-12-2006 02:22 AM
profiles colin Learning Network Manager 1 06-04-2006 02:23 PM
Profiles & Sigs Ric_ General EduGeek News/Announcements 5 18-06-2005 03:00 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:53 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright EduGeek.net




website uptime

© 2005 - 2010 EduGeek.net
SERVER: 4
no new posts