Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Import-Module SqlPS running too slowly

$
0
0
Hi All,I have the following installed on a machineWindows Server 2008 R2SQL Server 2012 PowerShell 3Microsoft SQL Server 2012 Feature Pack Powershell toolsMy problem is that whenever i run a script that uses the invoke-sql scmdlet, it takes an huge amount of time. I believe this is because it is importing the module automatically each time (i.e. import module sqlps).Is there any way to install the invoke-sql cmdlet as an inbuilt feature of powershell? This would make my scripts run almost immediately instead of taking minutes as they do now.

Viewing all articles
Browse latest Browse all 467

Trending Articles