I have a local Windows network with a Windows Server 2008 whose purpose is to act as a file server. I'm the administrator.
I want to grant user full access to all the files on a certain directory i.e.
D:\. This "super power" period should only last for a day and then return to the original permission status.
How can I do this with PowerShell (or the old VBScript)? Or what would a Windows administrator typically do (with scripting and not GUI)?