Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Re: use of date command_powercli

$
0
0

When you use double quotes, you can use variable/expression substitution in a string.

Something like this for example

 

$path="C:\Users\user1\Desktop\scriptfolder\report-$(Get-Date-Format 'yyyyMMdd-HHmm').txt"

Get-Cluster|Out-File-FilePath $path


Viewing all articles
Browse latest Browse all 49146


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>