I'm trying to write a powershell script to take a snapshot of select Vm's daily using Task Scheduler. For the name of the snapshot I would like the name to include the date. So I craeted a variable to looked something like this:
$Snapshotname ="Daily Snapsho (get-date)" the only this the vaible does is echo the word get-date.
What am i doing wrong..