out, err := exec.Command("powershell", scriptwithparameter).Output()
I have added the powershell.exe location (C:\Windows\System32\WindowsPowerShell\v1.0\) to the path environmental variable as well.Thanks
Arul
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
script file cannot be loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at