The GoTo Community is currently experiencing some technical issues affecting new posts and comments. You may need to reload the page you are on before you can post a comment. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
CS_HelpDesk
3 years agoGoTo Contributor
Remote Execution - PowerShell Script Repository
Welcome to the Remote Execution - Powershell Script Repository!
What is it? A library of scripts to help you execute automated tasks and manage your Central computers without having to access t...
CS_HelpDesk
3 years agoGoTo Contributor
To delete a folder at a given destination.
---
Delete
$folderPath = $null
if (Test-Path -Path $folderPath -PathType Container)
{
Remove-Item -Path $folderPath -Force -Recurse
}
else
{
Write-error -Message "$folderPath doesn't exist" -Category InvalidArgument
}