-
I've been updating the module to the 1.1.129 version because it fixes some features needed. But since then, any execution that use the module takes like 3 more times to complete. And I found out that it's the import-module what now takes more time. In addition if I import just the functions I need (4 functions), it takes the same time. Btw I also tried the last version and still happening the same. Do you know how could I solve this? Could be fixed in some next version? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I haven't noticed this issue @Daniel891 :/ What was the last version that was fast for you? Yeah, I'm not really sure what the benefits of the specific command imports are. It's never sped things up for me either. Execution policies have an impact on import time, perhaps yours changed? Set it to Bypass and see what happens? Also, I'd try Verbose to see where the slowdown happens. |
Beta Was this translation helpful? Give feedback.
-
Okey finally I found what is happening. I don't know if this is usual or why works like that but at least solve my problem. Anyway thank you @potatoqualitee for your trying. |
Beta Was this translation helpful? Give feedback.
Okey finally I found what is happening.
For some reason the result is different depending how you install de module. I thought that the method was irrelevant and didn't try another one until now. At first I was downloading the zip from the web page and then just unzip on the path.
But I tried with "install-module dbatools" and now the import-module just take 7s.
I don't know if this is usual or why works like that but at least solve my problem.
Anyway thank you @potatoqualitee for your trying.