Script delete user profiles vista




















Works fine Yes, I love the GUI You've got 2 scripts up there to test, they may well be good enough for your needs. It might not work properly depending on your system locale. To continue this discussion, please ask a new question. Get answers from your peers along with millions of IT pros who visit Spiceworks.

Hey folks, The IT department in my company borrows laptops Win 8. What do you think could work? Thanks a lot! Popular Topics in General Windows. Spiceworks Help Desk. The help desk software for IT. Track users' IT needs, easily, and with only the features you need. Learn More ». Battery Dec 21, at UTC.

To each his own hey Ghost Chili. M Boyle This person is a verified professional. Adam the Automator. Twitter Facebook LinkedIn. Windows system administrators have to deal with: corrupted user registry hives files that need shared across all user profiles figuring out how to recreate corrupt profiles …and more What was once a frustrating experience has gotten a little less frustrating with PowerShell.

Table of Contents. User Profiles. Subscribe to Adam the Automator for updates:. Check out all of the ATA recommended resources! Pipe the above result to this command, which will filter down to users who have not logged in within the given timescale 5 days shown here.

LastUseTime -lt Get-Date. This will then cause the user profile folder to be deleted, and the corresponding profilelist entry in the registry to be removed. Nice script, but this can be done rather easily by GPO. I tried this but something in Windows was changing the LastUseTime to todays date. So it didn't delete anything. Also why the Group Policy was not working.

LastDownloadTime -lt Get-Date. You can ignore this error. Thanks for this. Very useful since the Group Policy option doesn't work. Not everybody uses Group Policy either. Cerbere yes but you would need to restart the box for the GPO to run, script is useful where you can't regularly reboot.

Wonder if it is possible to just specify a command to delete a specific cached profile regardless of the duration? These scripts and another one i found work OK, however always files are left on the machine.

Usually in appdata and they are microsoft applications.



0コメント

  • 1000 / 1000