Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

not finding new-symlink cmdlet error

$
0
0

I have installed:

  • powershell 3.0 on my server 2008 R2 server
  • the corresponding v3.0 pscx community extension module which includes the new-symlink cmdlet

I'm running a powershell script under a service.  When the service runs the script, I get the message:

New-Symlink : The term 'New-Symlink' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

 

If I run the script through the PowerShell ISE it runs ok.  I'm assuming that the module sis not loading properly.  How do I get the module to load properly when the script runs as a service?


Viewing all articles
Browse latest Browse all 10624

Latest Images

Trending Articles



Latest Images