Author Posts

December 14, 2016 at 1:51 pm

Dear people,

I need to create a logoff script that moves all data from a specific folder to recyclebin.

this is what i have so far:

$sh = new-object -comobject "Shell.Application"
$ns = $sh.Namespace(0).ParseName("C:\test\*")
$ns.InvokeVerb("delete")

I hope someone can help me

Kind regards, Jeremy Smit

December 14, 2016 at 4:34 pm

What is or is not working?