janikvonrotz
4/15/2014 - 9:06 AM

PowerShell: New filename with timestamp #PowerShell

PowerShell: New filename with timestamp #PowerShell

# based on ISO 8601
# http://technet.microsoft.com/en-us/library/ee692801.aspx

$Filename = $Name + "#" + $((Get-Date -Format s) -replace ":","-") + ".bak"