Powershell Script Quest One Snap-in Slow When Not Logged Into Domain
i have powershell script uses quest 1 activeroles management shell active directory snap-in.
scenario 1
when i'm in office, script runs (1 min). no errors.
scenario 2
when take laptop home, , log laptop using same account (although i'm not connected domain), script takes 20 minutes complete. no errors.
i have internet access both @ work , @ home.
script code:
function testimport($a) { get-date write-host "importing crl" $q_crl = import-qadcertificaterevocationlist -filename $a write-host "import complete" $crl_thisupdate = $q_crl.effectivedate $crl_nextpublish = $q_crl.nextpublish $crl_nextupdate = $q_crl.nextupdate write-host "crl effective date/time: $crl_thisupdate" write-host "crl next publish date/time: $crl_nextpublish" write-host "crl next update date/time: $crl_nextupdate" get-date } testimport "c:\temp\my.crl"
the slowness occurs when script starts import using snap-in.
get-pssnapin returns following:
name : microsoft.powershell.corepsversion : 3.0
description : windows powershell snap-in contains cmdlets used manage components of windows powershell.
name : quest.activeroles.admanagement
psversion : 1.0
description : windows powershell snap-in contains cmdlets manage active directory , quest 1 activeroles.
get-executionpolicy shows: remotesigned
does have ideas why snap-in running slowly? all other parts of script seem run fine; no slowness. any appreciated.
-m
hi,
this issue should network issue, maybe wifi connection not fast lan.
regards,
yan li
cataleya li
technet community support
Windows Server > Windows PowerShell
Comments
Post a Comment