Answered by:
Automate disk cleanup on domain computers

-
Hi there,
I need to automate disk cleanup on all the machines available on our company's domain. I have been trying to do it by using sageset and sagerun commands. I also exported the registry keys of the machine on which I ran these commands. Actually I am stuck at importing these registry values into a GPO. I am trying to automate this process via GPO so that it gets applied on all the machines. Can anyone please help me with this?
Thanks,
Akshay
Question
Answers
-
Hi,
Thanks for your post.
In my opinion, you could create a new GP and add it as a logon script (go to User Configuration>Windows Settings>Scripts (Logon/Logoff), then link it to the OU where all the workstations are located at.
For scripting related question, I would like to suggest that you submit a new thread in our Scripting forum for better and accurate answer to the question. The community members and support professionals there are more familiar with Scripting and can help you in a more efficient way. Thank you for your understanding.
For your convenience, I have listed the Forum link below:
Scripting Forum
http://social.technet.microsoft.com/Forums/en-us/ITCG/threadsBest Regards,
Alvin Wang
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 Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by AlvwanMicrosoft contingent staff, Moderator Friday, September 30, 2016 9:11 AM
- Marked as answer by AlvwanMicrosoft contingent staff, Moderator Thursday, October 06, 2016 9:16 AM
All replies
-
Hi,
Thanks for your post.
In my opinion, you could create a new GP and add it as a logon script (go to User Configuration>Windows Settings>Scripts (Logon/Logoff), then link it to the OU where all the workstations are located at.
For scripting related question, I would like to suggest that you submit a new thread in our Scripting forum for better and accurate answer to the question. The community members and support professionals there are more familiar with Scripting and can help you in a more efficient way. Thank you for your understanding.
For your convenience, I have listed the Forum link below:
Scripting Forum
http://social.technet.microsoft.com/Forums/en-us/ITCG/threadsBest Regards,
Alvin Wang
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 Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by AlvwanMicrosoft contingent staff, Moderator Friday, September 30, 2016 9:11 AM
- Marked as answer by AlvwanMicrosoft contingent staff, Moderator Thursday, October 06, 2016 9:16 AM
-
Hi,
Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
Best Regards,
Alvin Wang
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 Subscriber Support, contact tnmff@microsoft.com. -
Hi Alvin,
Yes, it helped me till certain extent, but I guess scripting is the best option after considering my current options.
I didn't get time to work on this as this project was on hold, but now that it has been resumed I will the scripting and hopefully it works.
Thanks!