Creating a filename with the current date


I’m new to using power shell, and trying to do any scripting in it. I have 2 questions.

  1. Where can I find a good primer on doing scripting in power shell, and where can I locate a command list for power shell that would be good for a beginner.

  2. I would like to use the Compress-Archive command, and for the name creation have it pull the system date when the file was being created and add it to the file name (ex: test_file 07052022).

Thanks for any help.


  1. Mostly google, Powershell Tutorial
  2. e.g TimeStamp on file name using PowerShell - Stack Overflow

Thank you for the answers. I’ve been using google, but since I’ve pretty much yesterday started looking a lot still doesn’t make sense yet. I’m guessing things will make more sense as I use it more.

The time stamp is exactly what I was looking for, thank you again.