BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Handihusen
Obsidian | Level 7
Please help me,
I work from home,
I have a PC at my office (windows 10, locked for remote destop),
I used to using windows task scheduler to running some reguler codes,

Now I want to emptying the Recycle Bin at that pc,
Is there any codes to do:"emptying recycle bin" ?

Thanks in advance 🙏
1 ACCEPTED SOLUTION

Accepted Solutions
japelin
Rhodochrosite | Level 12

It is not a SAS issue.

 

x "powershell Clear-RecycleBin -Force";

 

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/clear-recyclebin?...

 

I have not tried to see if the code can be executed remote desktop.

 

View solution in original post

4 REPLIES 4
japelin
Rhodochrosite | Level 12

It is not a SAS issue.

 

x "powershell Clear-RecycleBin -Force";

 

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/clear-recyclebin?...

 

I have not tried to see if the code can be executed remote desktop.

 

Handihusen
Obsidian | Level 7
Thank you 🙏 👍
Handihusen
Obsidian | Level 7
Its works at my pc/laptop if the code like this:
x "powershell Clear-RecycleBin";

If i using "-Force" then nothing happen.. 🤔

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1891 views
  • 1 like
  • 2 in conversation