Mark Minasi's Tech Forum
Register Calendar Latest Topics Chat
 
 
 


Reply
  Author   Comment  
AevnsGrandpa

Still Checking the Forum Out
Registered:
Posts: 3
Reply with quote  #1 
I have a number of firewalled servers that cannot get to MS and I need to add some PSH modules. Is there a way or location (URL) that you can download them so they can then be file transferred to the servers and installed?

Specifically I need the module(s) for installing and monitoring Microsoft patches.

Thanks,

Jeff
0
donoli

Senior Member
Registered:
Posts: 505
Reply with quote  #2 
A similar question was asked in another forum.  One answer was to connect a laptop with a USB drive outside that network, maybe a hot spot such as Starbucks, a library or wherever.  Save it to the USB drive & transfer it later.
0
AevnsGrandpa

Still Checking the Forum Out
Registered:
Posts: 3
Reply with quote  #3 
That much I figured. What I need is the link to where you can just download them. Or do I need to actually import them on a computer on the internet and then copy them from where they are stored locally?

Jeff
0
donoli

Senior Member
Registered:
Posts: 505
Reply with quote  #4 
Do you know the exact name of the module?

https://social.technet.microsoft.com/wiki/contents/articles/4308.popular-powershell-modules.aspx

There is a list of modules. 
0
wobble_wobble

Avatar / Picture

Associate Troublemaker Apprentice
Registered:
Posts: 808
Reply with quote  #5 
You need to get the module files, download them and if you can't import them after downloading them, save them the normal location and use some code like this [This is for the ExoPowershell module for MFA in the ISE, which they say is not supported - Thanks Evgenij]

Locations
%ProgramFiles%\WindowsPowerShell\Modules
%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules

Code:


Import-Module $((Get-ChildItem -Path $($env:LOCALAPPDATA+"\Apps\2.0\") -Filter Microsoft.Exchange.Management.ExoPowershellModule.dll -Recurse ).FullName|?{$_ -notmatch "_none_"}|select -First 1)
$EXOSession = New-ExoPSSession
Import-PSSession $EXOSession


__________________
Have you tried turning it off and walking away? The next person can fix it!

New to the forum? Read this
0
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 226
Reply with quote  #6 
Hi,

if the modules you're after are on the PowerShell Gallery, you can use Save-Module or Save-Script cmdlets (EDIT: on an internet-connected computer) to just save the downloaded content to a local path.

You can then set up an internal repo for your local servers (https://msdn.microsoft.com/en-us/powershell/reference/5.1/powershellget/register-psrepository is your friend here) and just use Install-Module on those.

__________________
Evgenij Smirnov

My personal blog (German): http://www.it-pro-berlin.de/
My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
0
AevnsGrandpa

Still Checking the Forum Out
Registered:
Posts: 3
Reply with quote  #7 
Thanks for the replies. The module I need is;

PSWindowsUpdate

I will download it on my own laptop and then see if I can find in within the Powershell folders as you listed above.

Right now I am using a simple CMD batch file to run each patch in silent mode but it would be nice to have a better way of doing it as well as tracking what worked and what didn't.

Jeff
0
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 226
Reply with quote  #8 
Jeff,

you can just do a

Save-Module -Name PSWindowsUpdate -Path c:\temp

(path must exist) and then you'll find the module under c:\temp\PSWindowsUpdate.

__________________
Evgenij Smirnov

My personal blog (German): http://www.it-pro-berlin.de/
My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.