Answered by:
CMD remote registry key removal

Question
-
Hi,
Im trying to figure out if its possible to remove registry keys over the network with administrator rights. It would simplify our daily routine. Now we have to remove user profiles by hand and the registry part isn't working as i thought it would be. At the moment iam tasting this little script at home. I got this far : reg delete \\COMPUTER NAME\hklm\software\microsoft\windowsnt\profilelist\<profile ID> /p
I get the error that key cannot be found at the end.
I appreciate any help.
Thanks
- Moved by Just Karl Monday, December 7, 2015 3:14 PM Looking for the correct forum.
Sunday, December 6, 2015 8:47 PM
Answers
-
Hello,
I'd use PowerShell for this.
I'd look in the script center, and ask for help in the Windows PowerShell forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})- Proposed as answer by Mike Laughlin Monday, December 7, 2015 3:26 PM
- Marked as answer by Dave PatrickMVP Monday, December 14, 2015 12:18 AM
Monday, December 7, 2015 3:14 PM -
Or use this:
https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
If you decide to go the PowerShell route, make sure you post your current script and your errors when you create a thread there. If you don't, you won't get much help.
- Marked as answer by Dave PatrickMVP Monday, December 14, 2015 12:18 AM
Monday, December 7, 2015 3:27 PM
All replies
-
Hello,
The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.Please note that this forum exists to discuss TechNet Wiki as a technology/application.
As it's off-topic here, I am moving the question to the Where is the forum for... forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})Monday, December 7, 2015 3:12 PM -
Hello,
I'd use PowerShell for this.
I'd look in the script center, and ask for help in the Windows PowerShell forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})- Proposed as answer by Mike Laughlin Monday, December 7, 2015 3:26 PM
- Marked as answer by Dave PatrickMVP Monday, December 14, 2015 12:18 AM
Monday, December 7, 2015 3:14 PM -
Or use this:
https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
If you decide to go the PowerShell route, make sure you post your current script and your errors when you create a thread there. If you don't, you won't get much help.
- Marked as answer by Dave PatrickMVP Monday, December 14, 2015 12:18 AM
Monday, December 7, 2015 3:27 PM