Spawn new Powershell window/process from within a .ps1 script
i running script requires me load vmm , dpm snapin. there known issue both of these snapins being loaded in same powershell session. work aroud execute .ps1 kickoff .ps1 file. during time second .ps1 script running first script needs wait.
start-job c:\scripts\dpmreports\exportprotectedvms.ps1 | wait-job
this not work because snapin loaded in job, hense getting same error bug:
Windows Server > Windows PowerShell
Comments
Post a Comment