File tree Expand file tree Collapse file tree 1 file changed +7
-18
lines changed
setup-powershellget/Setup Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change 11
11
# See the License for the specific language governing permissions and
12
12
# limitations under the License.
13
13
# ----------------------------------------------------------------------------------
14
+ [CmdletBinding ()]
15
+ Param (
16
+ [Parameter (Mandatory = $False , HelpMessage = " Use Install parameter to install Azure modules from PowerShell Gallery." )]
17
+ [switch ]$Install
18
+ )
14
19
15
- function Get-ScriptDirectory
16
- {
17
- $Invocation = (Get-Variable MyInvocation - Scope 1 ).Value
18
- Split-Path $Invocation.MyCommand.Path
19
- }
20
-
21
- $modulePath = Join-Path $ (Split-Path (Get-ScriptDirectory )) " Azure.psd1"
22
- Import-Module $modulePath
23
20
cd c:\
24
21
$welcomeMessage = @"
25
22
For a list of all Azure cmdlets type 'help azure'.
26
- For a list of Windows Azure Pack cmdlets type 'Get-Command *wapack*'.
27
- For Node.js cmdlets type 'help node-dev'.
28
- For PHP cmdlets type 'help php-dev'.
23
+ For a list of Azure Pack cmdlets type 'Get-Command *wapack*'.
29
24
"@
30
25
Write-Output $welcomeMessage
31
26
32
- Set-ExecutionPolicy - Scope Process Undefined - Force
33
- if ($ (Get-ExecutionPolicy ) -eq " Restricted" )
34
- {
35
- Set-ExecutionPolicy - Scope Process - ExecutionPolicy RemoteSigned - Force
36
- }
37
-
38
- $VerbosePreference = " Continue"
27
+ $VerbosePreference = " Continue"
You can’t perform that action at this time.
0 commit comments