Let’s say I have multiple folders with the same name in a specific location that I need to clean up, such as deleting all Documents folders in my H: drive on my Windows 10 computer. What’s the easiest way of achieving it?
Here you go, power of the PowerShell.
Get-ChildItem -Path $mainfolder -Include $folder -Recurse -Force | Remove-Item -Force -Recurse
Just one line and it gets the job done.
Just a quick note, the switch -force allows the cmdlet to get items that otherwise can’t be accessed by the user, such as hidden or system files. However, it doesn’t override the security setting, which means if you don’t have the access to that folder you won’t be able to delete it.
If using Copilot right from the Taskbar isn't your thing, you should disable it. Even…
In an environment where standardizing things does matter, setting default fonts in Microsoft Office apps…
Wake-On-LAN is a networking standard that lets you wake up a computer from either a…
First of all, this is not to bypass a PDF file that requires a password…
Microsoft has been lurking about the idea of placing the Outlook navigation bar to the…
One colleague came up to me the other day asking me to take look at…