I am running Server 2008R2 with windows 7 clients.
I need to run a script from a GPO to do the following:
Check if C:\update\alldone.txt exists if so script the end (using as a kind of runonce)
Change permissions on a folder located in C:\Users\Default\folder1 from everyone read to everyone full control
Delete a file called appk.ini contained in the folder
Create a text file called alldone.txt in C:\update
I have a basic knowledge of powershell and can do most of the above with a .bat file but really wanted to use powershell as I am trying to move away from bat files