I have a network drive that contains files that are created daily. they are two types of files... .txt .xml
I need to copy the newest .txt file and place it in a folder on my pc.
z:\ is the mapped drive that goes directly to the folder with the files.
c:\files is my local drive and folder where i want the newest text file placed.
Can someone write this powershell command for me.
bonus question. i set the execution policy to unrestricted
how do i make it so i can keep it restricted but allow certain saved ps scripts to run using "right click ->run" while keeping the global policy to restricted.