I have a powershell script that gets Exchange calendar permissions and saves it to csv. I'm working on creating an automated report that will email the changes in permissions on a daily basis. One of the components I need assistance with is having the output saved to include the date in the file name in the form of YYYYMMDDcalpermissions.csv
Presently the script saves it as a static name, but when I run an automated daily comparison, I need a way to differentiate between yesterday's export and today.
How do I change the output to be named on variable based on the computer's date?
Open in new window
then substitute the variable for the path parameterOpen in new window