$bkpdate=get-date

$bkpdate.ToShortDateString()

[string]$strday=$bkpdate.Day

[string]$strmonth=$bkpdate.Month

[string]$stryear=$bkpdate.year

$strfolder=$strday+$strmonth+$stryear

Backup-DhcpServer -Path C:\dhcpbackup\$strfolder

Advertisements