I currently have a script that will delete a profile, or multiple off a local or remote PC. What I use at the moment to do so is Remove-CimInstance
against the win32_userprofile class for a specific user. So the question is…
Is there a way to see the actual deletion stream of the actual deletion in progress?
I would ultimately want to add the stream to the progress bar, as a sub-progress_bar for deleting multiple profiles, if that makes sense.
Something like:
*Username profile deleting*
[===1/4. ] #Profile it's on.
[===========84%. ] #deletion progress for that profile.
Anyone familiar on how to do this? I currently have the profile deletion script posted here.
Wanted to keep the post relevant to the question, but the script works to delete local, or remote profiles of the system. Feel free to give it a try (it's based off a domain environment though).
current of total
info.