Hello all ^^
I'would like to do a script with ScheduleTask cmdlet on a server who do not have the cmdlet, so i would to Import the module , but i don't know how....
It is easy to do if the server have the Net but if not, i really don't know how to download a module, i don't find any site, even Microsoft.
If you know, pls help 😉
Thx for replay 😉
If the module is available in PowerShell Gallery, you could use Install-Module on a connected computer, and simply file copy the module to the non-connected computer.
If the module is not available on PowerShell Gallery, then you would need to manually install the module. For example, the RSAT can be used to install many Windows Server modules on a client computer.
If you were more specific about the module you're writing about, it would be easier to provide a more specific answer.
To see all modules from the MS powershell gallery
Find-Module -Name * (Find-Module -Name *).Count # Results 3222 # Use a GUI to select to save and install one or more modules. Find-Module -Name * | Out-GridView -Title 'Select a module to download and install. Use Shift + Right Click to choose one or more' -PassThru | Save-Module -Path "$env:USERPROFILE\Documents\WindowsPowerShell\Modules" -Verbose
To save a module to your local system
Save-Module -Name SomeModuleName -Path $env:USERPROFILE\Documents\WindowsPowerShell\Modules
Once you save the module, you can just copy that entire module folder to any other computer you want.
To install a module
Install-Module -Name SomeModuleName
Outside of module to leverage, there is a second feature to PowerShell package management via this.
Find-Package -Name * (Find-Package -Name *).Count # Results 3206
Hello you ^^,
Oh i don't know the RSAT have some modules, thx Jones 😉
Wouaw what an amazing replay so nice Postanote 😉
Thx i will try that and come back to you .
One further thing bears mention.
You can download a module without installing it locally using Save-Module, should you need to save it to a network share or some such and want to copy from there to install it on subsequent machines.
You must be logged in to reply to this topic.