About 210,000 results
Open links in new tab
  1. powershell - Difference between using module, Import-Module, and # ...

    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 running …

  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 module's cmdlets …

  3. 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 interactively. PowerShell …

  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:

  5. 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 …

  6. PowerShell: Import-Module or Add-Type for .NET assemblies?

    Aug 27, 2021 · Powershell has three main ways to import classes, not counting .net methods like reflection.assembly. In general, all of them will do what you need just fine, but have extra features: …

  7. How can I re-use/import script code in PowerShell scripts?

    Nov 26, 2014 · Import-Module ActiveDirectory In that case, you only need the name of the module because it's in a special directory. To write your own modules in Powershell, you name the module …

  8. 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 …

  9. 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-modules -all or get …

  10. How to import custom PowerShell module into the remote session?

    Jan 21, 2013 · To begin with, what I've initially asked for is not possible. I mean, if you go the module way, then the module should be physically present on a target machine to be able to Import-Module …