Registry Entry to delete specific User Profile entries

roethelbc

New member
Local time
6:46 AM
Messages
3
I work for a University as a Lab Manager where we have over 300 computers running Domain Profiles. We have begun updating from XP to 7 and started to notice TEMP profiles being created. I have figured out how to resolve the issue by going to the registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurentVersion\ProfileList

and deleting the strings that have .bak at the end. What I am looking for now is a way to delete these files as an administrator through our management service Altiris. So basically I am looking for a script that would delete only profile entries that have a .bak at the end. Does anyone have an idea on how to, or now a guide on how to, accomplish this? Thank you.
 

My Computer My Computer

At a glance

Windows 7 x64, Windows XP
Computer type
PC/Desktop
OS
Windows 7 x64, Windows XP
A simple batch script can do the job

Code:
@echo off
COLOR 17
title BAK Removal
del /s /f c:\*.bak
pause >nul
exit

(if I have understood you, sorry if it is wrong, the path can be adjusted for your specific needs)
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64-bit
Computer type
PC/Desktop
OS
Windows 7 Ultimate 64-bit
Thanks! I will give that a shot on a test machine to see if it worked!
 

My Computer My Computer

At a glance

Windows 7 x64, Windows XP
Computer type
PC/Desktop
OS
Windows 7 x64, Windows XP
Back
Top