0

In the powershell ISE we can run the cmdlets which are loaded from the modules defined in the script . But the same script is not working from the powershell console.

Please let me know how to make it work in console same as ISE.

Thanks,

2
  • Have you set the console to run as Administrator? I've found the ISE has a load of problems when run as Admin so I typically run it as a user. Perhaps that is affecting your modules? Otherwise please elaborate on "not working" - are you getting an error? Is it just not loading? Nov 17, 2015 at 15:50
  • Could you be needing to use the Import-Module cmdlet to load them in the shell? What modules are you talking about?
    – Colyn1337
    Nov 17, 2015 at 20:26

1 Answer 1

1

One thing to check out is your profile script. The ISE and the Console use different filespecs for the profile script. You can edit the profile script using your favorite editor, like this:

> notepad $profile

If your ISE $profile defines some things that your Console $profile does not, then that may be the reason for the different behavior.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .