About 99,000 results
Open links in new tab
  1. powershell - Difference between using module, Import-Module, …

    Jul 20, 2021 · Import-Module is the original, introduced in PowerShell 2.0 to support module development. #Requires -Modules was introduced in PowerShell 3.0 to prevent scripts from …

  2. Powershell import-module doesn't find modules - Stack Overflow

    To load it, I have to Import-Module C:\MyModules\ExampleModule Interestingly, in both cases, doing Get-Module -ListAvailable, shows the modules, but it won't import. Although, the …

  3. import module - Powershell Operation Blocked By Execution Policy ...

    Jun 18, 2020 · Import-Module PowerShellGet Gives the following error: The file was skipped because of the following validation exception: File C:\program …

  4. powershell - relative path in Import-Module - Stack Overflow

    2 You can add on the top of any PowerShell script file. The path is always relative to the script you put the using statement in. NOTE: Always use backslashes as the path separator. Even in Linux.

  5. How do I force powershell to reload a custom module?

    Sep 10, 2016 · I've found I basically need to restart my powershell terminal to clear it. If classes are not involved use import-module OR install-module. In both cases you can do a get …

  6. PowerShell runtime exception - "could not load file or assembly"

    Dec 10, 2012 · Import-Module : Could not load file or assembly 'file:/// *dll path*' or one of its dependencies. An attempt was made to load a program with an incorrect format. At *script …

  7. powershell - Import-Module : The specified module …

    I am having trouble doing an import-module ActiveDirectory on a Server 2008 SP2 (64 bit). NET Framework 3.5 SP1 is installed I download the Windows6.0-KB968934-x86.msu (for ADWS) …

  8. PowerShell Import-Module vs Dot Sourcing - Stack Overflow

    Feb 15, 2013 · In PowerShell V3 one does not have to call Import-Module in order to use module's exported commands. This is especially useful when commands are used …

  9. powershell failing to import module - Stack Overflow

    Oct 29, 2014 · I am working with powershell on a server and want to use it to stop and start a task in the task scheduler. I run this command "Import-Module TaskScheduler" but get an error: …

  10. powershell - Editing an already imported module - Stack Overflow

    Nov 15, 2018 · Then when you do Import-Module MyModule or Import-Module .\mymodule.psd1, PowerShell will find & load the associated MyModule.psm1 file. I wonder if that is causing you …