Deletion of Local User Profiles

Hi,
 I need to delete Windows 7 local user profiles and have the following requirements:
1. Only to perform the deletion once
2. Leave system (defautl, administrator and public) profiles in place
3. Not to attempt the deletion when a user is logged on
I initially thought of a script linked to a computer start up gpo, but was wondering whether SCCM 2012 could do this and if so, whether someone could give me a few pointers?
Thx
IT Support/Everything

you should be able to delete user profiles provided that the local system account (the account that executes the script) do have the required permission.
Kent Agerlund | My blogs: blog.coretech.dk/kea and
SCUG.dk/ | Twitter:
@Agerlund | Linkedin: Kent Agerlund |
Mastering ConfigMgr 2012 The Fundamentals

Similar Messages

  • Deleting local user profile on RDS without reboot

    I need to delete the local profile for a user on our RDS server, because of a problem with this user.
    Since the user was using RDS a few days ago, and RDS wasn’t rebooted since, I can’t delete the local profile. When I go to advanced system settings—user
    profiles. The ‘delete’ option is greyed out.
    I know that I can reboot the server then will be able to delete it, but since this server is serving many users, it means they all have to stop using it.
    Is there a way to delete this user’s profile without rebooting the server?
    I use sever 2008 R2.
    Thanks

    Hi,
    A local user profile is created the first time a user logs on to a computer. The profile is stored on the computer's local hard disk. Changes made to the local user
    profile are specific to the user and to the computer on which the changes are made.
    Windows security requires a user profile for each user account on a computer. The system automatically creates a local user profile for each user when the user logs
    on to the computer for the first time. The system automatically maintains the settings for each user's work environment in a user profile on the local computer.
    Windows Vista and later: User profiles are managed through the
    User Accounts control (UAC) panel item.
    You can open the
    Control Panel and click User Accounts, then click the Change User Account Control setting, dropped to the lowest turn off UAC. Press OK.
    Then you can use administrator account try again to see whether you can delete the local user profile or not.
    More information:
    http://blogs.msdn.com/b/rds/archive/2009/06/02/user-profiles-on-windows-server-2008-r2-remote-desktop-services.aspx
    Technology changes life……

  • HT1338 Ive deleted a complete user profile on my mac book. Is it possible to retrieve the information?

    Ive somehow managed to delete a complete user profile. Is it possible to retrieve the information?

    Try this:
    iTunes: Finding lost media and downloads
    Also go to iTunes>Preferences>Advanced and see if the it posint to where your music is located.

  • Flash runs really slow until we delete the Windows user profile, any idea why?

    We are distributing some web based education content using flash and we have a very small percentage of users (running XP) that experience extreme slowness when playing the flash file.  We have discovered that if we delete and the recreate the local Windows user profile, then this resolves the issue.  So my question is, what is being cached locally that could be causing this problem and where is it located in the user profile so we can just go delete those files and not have to go through the long process of removing and adding the users to the PC again?
    In case it helps, the flash file we are playing was exported using Captivate4.
    Thanks,
    Tim

    Could you have the effected user's delete the following folders and see if they speed swf?
    close all browser windows
    open Windows Explorer
    in the address bar type %appdata%\Adobe
    delete the 'Flash Player' folder in there
    in the address bar type %appdata%\Macromedia
    delete the 'Flash Player' folder in there
    Thanks,
    Chris

  • It is Possible to Migrate Local User Profile to Roaming Profile Using USMT?

    Dear All,
    1st, I'm following guide at http://support.microsoft.com/kb/142682 to copy user profiles to another user, but the problem is the 'Copy to' button is not active (grey). I try
    using 3rd party tools, still no change.
    2nd, I try to transfer local profile on the same machine and different user using Windows Easy Transfer, it's work and all of data has been restore to a new user. But not all App Settings is restored, when I open Outlook 2010 and Windows
    Live Mail, there's need to enter password again. That is not problem for me.
    3rd, After migrate/transfer (2nd step) I want to migrate from local profile to roaming profile, but user profile setting on local profile is not copied to roaming profile, such as Email setting need to create new account but all data is
    not problem, because I have already configure on ADUC and GPMC.
    My question is:
    1. How to copy or move all Application settings on AppData Local folder to roaming profile?
    2. How about USMT, it is possible to migrate user profile settings from local to roaming? if is the best tools, how to do this? 
    Please, advice...
    Thanks,
    Hendra

    First, I dont understand why you're using the copy profile method. I'll make the assumption that you have a domain user account that you you need it's files and settings moving to another machine.
    In that scenario then there's a simple guide here:
    Migrate User Accounts
    For Roaming Profiles and Redirected folders; you can follow the
    Infrastructure Planning and Design (IPD) Guide for Windows User State Virtualization (USV).
    It sounds like a mouthfull but it actually makes the whole process easy. There's also a video
    here.
    /Andrew
    Blog: http://scriptimus.wordpress.com

  • 2008 R2 Terminal Server large Local User Profile Folder; C:\ drive size fluctuation

    Hey Guys,
    Have an interesting issue I'm currently working with and starting to scratch my head.  I inherited this server so many things I'm still discovering. 
    This is TS 2008 R2 SP1, with very basic setup; Microsoft, Firefox, IE, and Adobe. I currently have many users, but only these two user profiles that have large folders. (all the space is taking out by C:\Users\%USER%\AppData\Local\Microsoft). Each folder orbiting
    around 23.6GB taking 89% of the C:\ drive. Once I discovered it, I applied folder redirection policy to move all the content of the user folder's to the large drive; P:\TSProfiles\ottc01
    However, the actual C:\Users\%USER%\AppData\Local\Microsoft folder still there and looks like it cannot be moved. It's almost like every instance of windows OS and Microsoft Office duplicated and resides on each user's local profile. Plus, the C:\ drive
    space fluctuates and goes up and down, every time user logs on and off.
    So, I'm curious is to how to correct this issue and why only these two users have such a large profiles? I can provide more info if needed, just let me know.
    Thanks everyone for their time.

    Hi,
    On current situation, please refer to following articles and check if can help you.
    User Profiles on Windows Server 2008
    R2 Remote Desktop Services
    Manage User Profiles for Remote Desktop Services
    In addition, this issue seems to be more related to terminal service. I also suggest that you would post this question in
    Remote Desktop Services (Terminal Services) Forum. I believe we will get a better assistance there.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • HOW TO CREATE LOCAL USER PROFILE

    SIR,
       OS            -    WINDOWS SERVER 2008 R2
       SYSTEM    -    IBM  MACHINE X3400 SERIES
        1. HOW TO CREATE A USER IN WINDOWS SERVER 2008 R2  WITHOUT ACTIVE DIRECTORY 
        2.  AFTER CREATE USER IN WINDOWS SERVER 2008 R2 BUT USER PROFILE NOT CREATE .

    Hi,
    >>1. HOW TO CREATE A USER IN WINDOWS SERVER 2008 R2  WITHOUT ACTIVE DIRECTORY 
    >>2.  AFTER CREATE USER IN WINDOWS SERVER 2008 R2 BUT USER PROFILE NOT CREATE
    Creating an user account on the computer doesn't create a profile for that user. The profile is created the first time the user interactively logs on at the computer. After the user logs onto the computer for the first time, the user's local profile
    will be created in a folder with the name of the user under the systemroot/Users folder.
    Best regards,
    Frank Shen

  • How Make TS local User Profile After Install Windows 7 without Domain

    Hi,
    I make TS to install Windows 7 Is success But after finish install i cannot login
    If something need to add TS user local profile after install Windows 7 Without Join the Domain And make the user Administrator LocalGroup
    Thank for Help

    Let's start with the fact that you are missing a key element in your task sequence. You need to have the step
    Setup Windows and ConfigMgr to perform the transition from Windows PE to the new operating system. This task sequence step is a required part of any operating system deployment. It installs the Configuration Manager client into the new operating
    system and prepares for the task sequence to continue execution in the new operating system. See also for more information:
    http://technet.microsoft.com/en-us/library/hh846237.aspx#BKMK_SetupWindowsandConfigMgr
    About your screenshots:
    With the first screenshot you not enabling the local administrator. Is that what you want?
    With the second screenshot your only creating a user account and not adding it to the local administrators group. That would need an additional action like this
    cmd.exe /c net localgroup /add administrators User01.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Is it possible to delete a users blog list without having to delete the entire user profile?

    Hello,
    The problem I have is that a users blog entries have become corrupted, if you view his entries the page displayed is completely unrendered.
    I'm not able to add a screen shot, but imagine if you will a loaded page, with no formatting, basically a plain html page, if that makes any sense!
    If I or anyone else look at his blogs, the pages once again look unrendered, if he looks at another persons blog, it renders fine. So, it just looks like his (and his alone) blog list has some how or other been corrupted.
    Is there a way to just delete the blog without having to delete his entire profile and get him to start all over again? The user doesn't mind losing his blog entries but would rather not have his whole profile deleted.
    Thanks

    Hi,
    There will be a “Post” list in that user’s MySite storing all the blogs that below to that user, we can delete all the blogs in that list if with sufficient permission in that
    user’s MySite.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Terminal Server User Profile - Delete Permissions

    One frequent problem our help desk encounters is corrupted user profiles on the terminal servers.  Today those tickets are escalated to the server team to have the local user and roaming profiles deleted.  That team wishes to have this task moved
    to the desktop / help desk.
    I've built a script to perform this action, but desktop and help desk AD groups do not have sufficient rights on these servers to delete the user profiles.  NTFS permission changes will allow them the ability to delete the roaming profiles, but I don't
    beleive this would be sufficient to delete the local profiles from the terminal servers (properly).
    The script command I'm using to delete the local profiles is:
    takeown /f $LPath.FullName /r /d y
    I attempted using a service account to run the command within the script but I couldn't find a secure way to nest the password.  Can someone point me to the correct permissions needed for a regular user to properly delete a remote user profile?
    Thanks!
    There's no place like 127.0.0.1

    Hi,
    Thank you for posting in Windows Server Forum.
    What kind of permission is assigned to your help desk users?
    Firstly please check that your help desk users can delete the profile via “System Properties--Advanced tab--User Profiles--Settings button”. By deleting user profiles will delete the corresponding registry entries in addition to the folder under C:\Users
    Apart still if you want to check the registry setting, we can verify and delete under below mention path.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    Here need to find the respective SID for the users and the delete that SID and then again ask users to log back in which will create a new user profile.
    Else your help desk user can get the permission for running below script through which they can delete the user profile.
    Remove RDS Profiles
    http://gallery.technet.microsoft.com/scriptcenter/5146833f-dd54-47a8-9941-b0889a456571
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • "%userprofile%\appdata\local" is counted in the users profile

    Hello,
    In our environment we see some strange behavior on laptops. Users report that their user profile is becoming too large. We use the user Profile Management tool from Microsoft.(Limit profiles size - proquota.exe @ 100mb)
    So “%userprofile%\appdata\local” is counted in the users profile.
    After that userprofiles are inconsistant. Users log's on with a TEMP profile or cannot logon anymore.
    This seems just a symptom of a underlying problem. We can solve it by giving the user a new userprofile. But we have seen this problem too frequently now.
    How is it possible that de default variables %LOCALAPPDATA% en %APPDATA% suddenly are missing. The day before the user has no problem. It mostly happens on laptops after a VPN or WIFI connection. It looks like if the connection is lost before the local user
    profile is synchronised to the server profile.
    We also see Event 1530 frequently. Can this be a clue?
    Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
    ## user registry handles leaked from \Registry\User\S-1###
    Is the missing of these variables the cause or effect of a corrupt user profile?
    Should we think of leaving roaming profiles for laptops? And look to UE-V or another solution? 
    Giving the user a new user profile is a workarround but not a solution.
    We are using:
     We use Windows 7 x86, latest patches, Office 2010.
     A Windows 2003 domain functional level
     We have an OU in AD wich contains the users and computer in subfolders.
     We use Loopback processing for Group policy so the user policy is linked to the client OU and not to the user OU.
     We user folder redirection to the homeshare (DFS namespace)
     User profiles are on a DFSnamespace but single server.
     We user Offline files for the Homeschare.
    Regards,
    Peter

    Hi Laarse,
    Thanks for the reply.
    Please try enable “Do not forcefully unload the users registry at user logoff”
    policy to check if it works. The Category path is
    Computer Configuration\Administrative Templates\System\user Profiles\
    After that, if the issue still exist, please collect below information for further research.
    Information Collection
    ===============
    1. Enable gpsvc debug logging by below steps:
    In the Regedit Editor, expand HKLM\Software\Microsoft\Window NT\CurrentVersion
    Create a new key called “Diagnostics”
    Under the key, create a DWORD value “GPSvcDebugLevel” and set the value as
    0x30002.
    After making this change, restart the computer.
    When the issue happens again, please send me the gpsvc.txt under %systemroot%\debug\UserMode folder.
    Please let me know the time you experience this issue.
    2. Please help run
    gpresult /h c:\gpresult.html command on a problematic client, and send me the
    gpresult.html file.
    3. Please help collect profile trace on a problematic client by below steps:
    Logon to a client with local administrator account.
    Open a command prompt with ELEVATED.
    Run "logman -start profile -p {eb7428f5-ab1f-4322-a4cc-1f1a9b2c5e98} 255 3 -ets" (without the quotes, if we face error, please do not use copy, manually input this
    command)
    Switch user (do not log off the administrator account) and try to logon with the problematic user to reproduce the symptom.
    After you login, please logoff the domain user and back to local administrator account.
    Run command
    "logman -stop profile -ets" with administrator privilege.
    Then send me the profile.etl under
    %SystemRoot%\Debug\UserMode folder 
    Thanks.

  • What is the best way to automatically delete user profiles after x days of inactivity (school lab environment)?

    I work at a school where we have multiple Mac Carts that have 30 MacBooks per cart. We image the macs every summer to delete the older user profiles but we are looking for way to possible have this done automatically through out the year to help with HDD space. What is the best way to delete user profiles after...say 180 days.... of inactivity automatically? I am open to login hooks, bash scripts, etc. Anything to get the job done. Thanks for any help or advice.

    A search here turned up this post Deleting inactive users
    It appears that the script posted will do as advertised though I would test it out on your systems and under your conditions to see if it does do what you need.
    regards
    Message was edited by: Frank Caggiano - That script looks for users over 21 days. To look for ones over 180 days change the 21 to 180 in the find command.

  • User profile deleted

    Hi,
    I deleted a standard user profile this morning - one that I was allowing my student to use on my computer. My student has since informed me that he had a Word document in that profile that he needs.
    I didn't archive this profile. Is there anyway I can get back the word document?
    Cheers
    Tim

    Hi Tim,
    Nope, for Security when an account is removed, immediately every thing is really gone.

  • Is it possible to migrate local profiles to user profile disks?

    Hi guys, 
    Is there an easy way to migrate local user profiles on an remote desktop server to user profile disks? I am replacing a Server 2008 R2 and want to start using UPD's instead on a Server 2012 R2. 
    Best regards,
    Hasan

    Hi Hasan,
    Thanks for your posting in Windows Server Forum.
    As per my research, you can able to achieve your data by choosing the option “Store all user settings and data in the user profile disk” would obviously capture everything normally stored under C:\users\<username>
    and add that to the UPD. But please notice however that you can only select the roaming part of your user profile data.
    On UPD profile is stored in a .VHDX file specific to your account which is placed on a central share. Upon logon a mount path is created under
    C:\Users\<username> that points to that .VHDX file on the share. This makes the solution fully transparent to the Operating System and applications. If you’ve used UPD before you will have noticed that the filenames of the .VHDX files hold the
    users SID, not the account name.
    For more information, please refer below articles. (You can refer below article for Server 2012 R2)
    1.  Using User Profile Disks (UPD) in combination with predefining the Modern UI Start Screen on RDS 2012 (appsfolder.itemdata-ms)
    2.  Working with User Profile Disks on Session-Based Desktop Deployments
    Hope it helps!
    Thanks,
    Dharmesh

  • Server 2012 RDS - User Profile Disks

    Hello,
    I'm implementing Server 2012 RDS session-based.
    Can I increase the limit of User Profile Disk after it is initially set?
    Is it ok that my Admin user has a User Profile Disk i.e. no local profile on the server as they did previously.
    Are PSTs supported on User Profile Disks - previously PSTs were unsupported on network share - User Profile Disks are on network share.
    I had an issue where a UPD was created for a user - I then delete the UPD. I then logged in as the user (a domain admin) and expected a local profile to be created - this didn't happen. A temporary profile was created instead. This was unexpected.

    Hi Gary,
    You can try to change the size of User Profile Disk by mounting .Vhdx file. Please refer below thread for information.
    Resize User Profile Disks
    As per my research, i can suggest you to use admin local user profile on server.You can get more information for UPD on below listed article.
    1.  Easier User Data Management with User Profile Disks in Windows Server 2012
    2.  Using User Profile Disks (UPD) in combination with predefining the Modern UI Start Screen on RDS 2012 (appsfolder.itemdata-ms)
    Hope it helps!
    Thanks,
    Dharmesh

Maybe you are looking for