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

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2