I'm writing powershell queries using WASP.
But every time I want to use WASP I have to do :
c:\Windows\System32\WindowsPowerShell\v1.0>powershell.exe Install.ps1 -Force
Then I get this result :
And as they say : I run this in Powershell_ise.exe :
Add-PSSnapin WASP
Now - I can write queries using WASP.
Question
The next time I start Powershell_ise.exe and try to invoke the script :
I get this error :
- I don't want to install it every time in order to use WASP. What can I do in order for Powershell_ise.exe to recognize WASP automatically ?
NB
Maybe the answer is in the last console result line : You can also add that line to your Profile script to load it automatically.
But I didn't find how to do it.
You should use
import-module
in your profile and you can look at your profile file using$profile
var :