Hello guys,
i want to run this powershell scripblock with cmd script :
Get-ScheduledTask | foreach {Export-ScheduledTask -TaskName $.TaskName -TaskPath $.TaskPath | Out-File (Join-Path “D:\Testing\Sauv\SchTasks” “$($_.TaskName).xml”)}
Like :
powershell -command “Get-ScheduledTask | foreach {Export-ScheduledTask -TaskName $.TaskName -TaskPath $.TaskPath | Out-File (Join-Path “D:\Testing\Sauv\SchTasks” “$($_.TaskName).xml”)}”
but i can’t get the result, how can i espace the quotes ?
thanx for your help