That would be the reason, we started talking about your raiders script some how...
so this script " spring cleaning script"
you run it like this?
Remove
-OrphanedData
-Datastore
<datastore-name>
Since I do NOT want to delete anything it finds, I do NOT put in the "-delete" switch?
If I want to check all datastores, do I need to populate $ds as you have as an example:
But then I read this in your post:
When you combine the Delete switch with the WhatIf switch, not files or folders will be deleted. But the function will show what actions will be taken without
I do not understand where to add the whatif switch?