Powershell मदद से:
-Scope <String>
Imports the module only into the specified scope.
Valid values are:
-- Global: Available to all commands in the session. Equivalent to the
Global parameter.
-- Local: Available only in the current scope.
By default, the module is imported into the current scope, which could be
a script or module.
This parameter is introduced in Windows PowerShell 3.0.
Required? false
Position? named
Default value Current scope
Accept pipeline input? false
Accept wildcard characters? false
नोट:: उपरोक्त मदद के टुकड़े v3 से हैं
-Global [<SwitchParameter>]
Imports modules into the global session state so they are available to all commands in the session. By
default, the commands in a module, including commands from nested modules, are imported into the
caller's session state. To restrict the commands that a module exports, use an Export-ModuleMember
command in the script module.
The Global parameter is equivalent to the Scope parameter with a value of Global.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
v3 भी -Scope पैरामीटर है, जो एक छोटे से अधिक सामान्य है कहते हैं। 0 जो मैंने अपने सिस्टम पर स्थापित किया है। V2.0 सहायता http://msdn.microsoft.com/en-us/library/windows/desktop/dd819454.aspx पर उपलब्ध है। यदि आप केवल नए आईएसई के कारण ही कर सकते हैं, तो मैं पावरशेल v3.0 प्राप्त करने की सलाह देता हूं।
क्या आपने 'आयात-मॉड्यूल -स्कोप ग्लोबल' की कोशिश की है? – JohnL
'स्लैप-फोरहेड' नहीं। नहीं, मैंने नहीं किया है। शायद मुझे मदद पूरी तरह से पढ़नी चाहिए थी। वास्तविक पैरामीटर सिर्फ '-Global' है। यदि आप इसे एक उत्तर के रूप में डालते हैं तो मैं जवाब के रूप में उभारा और चिह्नित करूंगा। – Phil
हो गया! '-स्कोप ग्लोबल 'चीज v3.0 है, मुझे लगता है। – JohnL