ProfileNurse - Profile maintenance made easy

by Holger Adam on 12/17/2008 | 7 Comments | 6,966 Views

User profiles contain a lot of data and information that is more or less important to the owner of the profile. Applications leave their marks in the file system and the registry to save user specific settings. As a consequence, a profile may grow larger and larger over time. While the work environment (applications, settings, needed files, etc.) changes around the user, some data becomes obsolete and unnecessarily bloats the profile. This may not be problematic on single computers with only few users and local profiles, but it becomes a major headache in enterprise networks, where profiles typically are not bound to single machines, but roam with the user instead.

User profiles contain a lot of data and information that is more or less important to the owner of the profile. Applications leave their marks in the file system and the registry to save user specific settings. As a consequence, a profile may grow larger and larger over time. While the work environment (applications, settings, needed files, etc.) changes around the user, some data becomes obsolete and unnecessarily bloats the profile.

This may not be problematic on single computers with only few users and local profiles, but it becomes a major headache in enterprise networks, where profiles typically are not bound to single machines, but roam with the user instead.

Citrix offers the User Profile Manager as a highly efficient way to minimize the data being saved in the profile and thus being transferred. In addition to this, administrators might want to gather information about user profiles with regards to registry and file system content. They might also need to clean up user profiles from time to time to retrieve extra storage space and reduce profile sizes.

While Citrix User Profile Manager helps in accommodating users with their own profile in any working environment, user profiles must be stored on file servers in the network. This storage can contain an arbitrary number of profiles and is typically managed by less than a handful of administrators, while the number of profiles can easily add up to many thousands. Such numbers make even simple tasks difficult. Adding an icon to all profiles suddenly becomes either very labor intensive or forces administrators to fiddle with custom-built scripts.

Deleting certain files from all profiles is no less challenging. This might be required, if an administrator finds yet another directory holding temporary data - after adjusting the configuration of Citrix User Profile Manager the unwanted data needs to be deleted from all user profiles.

ProfileNurse addresses these problems with the automated execution of a series of file system and registry operations on an arbitrary number of profiles. The queue of desired actions is defined in a simple configuration file and then executed on either all or a specified set of profiles. Remember the task of putting an icon onto the desktops of all users and the amount of work involved without a tool specially designed for this kind of job. With ProfileNurse, this task adds up to just one defined operation, namely copying the appropriate .lnk file to each profile. This is the instruction for ProfileNurse to do so:

[FileSystemCopyFile]
SourcePath="x:\IconStore\NewIcon.lnk"
DestinationPath="Desktop\NewIcon.lnk

Available operations in ProfileNurse include:

  • Creating and deleting registry keys and values
  • Altering registry values
  • Deleting files or folders
  • Copying files or folders into user profiles

In addition to that, both the file system and the registry can be queried to find data with a specific combination of search criteria. Available criteria include:

  • File or directory names and sizes
  • File system attributes
  • Registry key and value names and sizes
  • Registry attributes like last write times or value types and data

An easy example might be to find all registry keys created by an application called “AppX”. To find any occurrences in all user profiles, this is the way to do it:

[RegistryQueryKeys]
Find="all"
QuerySubKeys="1"
Name="AppX*"

In summary, ProfileNurse greatly simplifies profile maintenance by automating common yet otherwise tedious operations. With ProfileNurse, any number of profiles can easily be modified, cleaned or searched. Remember though, this is a very powerful tool that might cause unintended damage, if you use it the wrong way.

Download ProfileNurse here.

+++ Your opportunity +++ Use Profile Migrator 2, the new sepago product that makes migrating user personalities between different platforms a breeze.! Download your free version now!

7 responses for "ProfileNurse - Profile maintenance made easy"

[...] Download ProfileNurse

[...] Download ProfileNurse on our new tools blog. Print This Post « Deleting User Profiles - Correctly [...]

[...] first addition is

[...] first addition is Profile Nurse developed by two colleagues. Helge has written a detailed [...]

Wow, dies ist aber ein

Wow, dies ist aber ein mächtigest Tool. Endlich kann man in Profilen auch wieder nicht mehr benötigte Dateien oder Registryeinträge löschen. Dies wäre eine Funktion, welche man in den UPM einbauen sollte!

Leider erhalte ich beim Ausführen immer eine Fehlermeldung
ERROR: Profile directory is invalid.

Ich habe das Verzeichnis D:\temp\Profile erstellt und aus der Produktion einige sepagoProfile hineinkopiert.

[GeneralSeting]
UserProfileDir="D:\temp\Profile"

Was mache ich falsch?

Besten Dank und Gruss,

Urs Odermatt

Hallo Herr Odermatt, vielen

Hallo Herr Odermatt,

vielen Dank für das nette Kompliment.

Ihr Problem ist schnell gelöst. Da ich nicht weiß, in welchem Teil des Pfades der variable Benutzername des Profils steht, muss dieser für mich extra mit „<PROFILE_DIR>“ markiert werden. In Ihrem Fall sieht die korrekte Konfiguration also so aus:

[GeneralSettings]
UserProfileDir="D:\temp\Profile\<PROFILE_DIR>"

Ich hoffe, Ihnen damit geholfen zu haben und wünsche Ihnen noch viel Spaß mit mir.

Ihre Profile Nurse

Hallo Herr Holger, kann

Hallo Herr Holger,

kann dieser Tool auf für Windows Terminal Server 2003 verwendet werden? Danke im voraus.

MfG, Jerry Parakkal

Hallo Herr Parakkal, Sie

Hallo Herr Parakkal,

Sie können mich auf allen Windows-Versionen und Profilen ab Windows 2000 ausführen.
Bitte achten Sie dabei darauf, dass die Profile für jede ausgeführte Konfigurationsdatei die gleiche Struktur aufweisen. Beispielsweise sollten Sie zwei verschiedene Konfigurationsdateien für Profile von Windows XP / Server 2003 und Windows Vista / Server 2008 verwenden.

Selbstverständlich kann ich auch mit Terminal-Server Profilen umgehen. Vergessen Sie aber bitte nicht, vorher ein Backup der bearbeiteten Profile anzulegen.

Ich hoffe, ich konnte Ihnen hiermit helfen.

Ihre Profile Nurse

Hallo, Entschuldigt das ist

Hallo,

Entschuldigt das ist in englischer Sprache ....

This is an excellent utility. This is something that I could have done with a long time ago! One thing I noticed though, if I want to delete the "Windows" Key under "Software\Microsoft" I have to add a '*' to the end of Windows. This will also delete any keys that are called "Windows NT" under "Software\Microsoft". Is this meant to be the way ot works?

This will 'not' delete the "Windows" Key
__________________________
[RegistryDeleteKey]
Path=Software\Microsoft
Name=Windows
__________________________

This will...
__________________________
[RegistryDeleteKey]
Path=Software\Microsoft
Name=Windows*
__________________________
Brian

Add Comment

The content of this field is kept private and will not be shown publicly.
Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Software Development is an important focus topic at sepago. Our team gained international acclaim with the development of sepagoPROFILE, the sale to Citrix Systems and the new Product Profile Migrator. Here you will find background information about the handling of windows user profiles and tipps and tricks in software development.

RSS-FeedRSS R&D Competence Blog

 

About the author

holger's picture
Holger Adam
Software Engineer
Blogs about C++, C#, WPF, PowerShell and other things

All articles

PM_Werbung_Free_Trial