Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

PowerTip: Import a PowerShell Module from a Shared Location

$
0
0

Summary: Learn how to import a Windows PowerShell module from a shared location.

Hey, Scripting Guy! Question I have a module that will run on multiple servers, and I want to be able to access it from a single location. How can I import a Windows PowerShell module from a central location?

                             Hey, Scripting Guy! Answer Use the Import-Module cmdlet and specify the complete path to the folder containing the module. You can then use cmdlets from the module as if it were installed locally. 

                                                    Import-Module \\dc1\Share\PSWindowsUpdate

 


Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>