Link to home
Start Free TrialLog in
Avatar of Janice1967
Janice1967

asked on

NT Roaming Profile question.

I currently have roaming profiles configured for seven users.  The problem is we have this 3rd party application that we are using and withing the application we have to set the computer name of the computer we are on.  We have seven workstations in the domain. In wkst1 I set pc1 as the computer name in this application.   The problem is this is saved in the uses roaming profiles and when we log onto a different computer say wkst 2, pc1 is automatically set into the application,but we want pc2 instead.  If I change it to pc2, then when we log onto wkst1, it is now set to pc2 instead of pc1 as computer name.  Is there anyway to keep roaming profiles, but to omit an application from using roaming profiles.
Avatar of pfitchie
pfitchie

No! That is  the way they work.  

You could try not using roaming profiles at all or even switching to manditory profiles.
Another option would be that if the "Application computer name" is a registry key which it pretty much has to been if you are experiencing this behavior you could use a login script that reads the "Workstation Computer Name" and then Sets the registry key for the "application computer Name" appropriately.  I have used Kixtart for this kind of thing in the past.  There are many more advanced tools to do it with I'm sure.  If your a programmer you could even do this from VB or C and have it run from a login script.

The first thing you should try is this: substitute the actual name of the workstation with "%computername%" without the quotes. This DOS variable will contains the actual name of the PC as its value. If your application only resolves the name at runtime, then you should be OK.

Otherwise you will have to find out how the application stores the Computer Name, maybe in an .ini file, or the registry etc.
If this value is stored in a file within the User Profile, then you can tell Windows to exclude certain directories when it saves the profile back. As long as this file is in a convenient place this would acheive your goal. The registry value is ExcludeProfileDirs stored in the HKLU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon key.
Here's a reference from MS: http://support.microsoft.com/default.aspx?scid=kb;en-us;188692

If it stores the value in the registry under HKLU, then let me know.
Avatar of Janice1967

ASKER

There are actually two settings within this application that I do not want to be set to roaming.  the computer name (pc7) and a number (07).  pc2 would have number 02.  I tried the %computername% without qotes, but that did not work.  I tried to find where the computer stores the computername and this number in the application.  I looked in the roaming profiles folder for the user located on the server, but could find no files referencing this application.  Should I be looking in the profiles folder on the server?  I noticed on the local workstation there is a setting for this computer name (pc7)  and the number (07) in the registry, but this is not roaming is it?  This is the only location I could find these values.  The Excludeprofiledirs will not work since I cannot find any references to the application in the root profile folders.  What do I do if the value is stored in the registry?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Roly_Dee
Roly_Dee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I talked with the programmers of the application and they are going to lookinto this and get back with me.