Skip to content

Commit 37803ab

Browse files
committed
Update ShortcutStartup.ps1
1 parent dcdce37 commit 37803ab

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/ServiceManagement/Services/Commands.Utilities/ShortcutStartup.ps1

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,9 @@
1212
# limitations under the License.
1313
# ----------------------------------------------------------------------------------
1414

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-
$resourceModulePath = Join-Path $(Split-Path (Get-ScriptDirectory)) "..\..\ResourceManager\AzureResourceManager\AzureResourceManager.psd1"
23-
Import-Module $modulePath
24-
25-
if(Test-Path $resourceModulePath)
26-
{
27-
Import-Module $resourceModulePath
28-
}
29-
3015
cd c:\
3116
$welcomeMessage = @"
3217
For a list of all Azure cmdlets type 'get-help azure'.
3318
For a list of Windows Azure Pack cmdlets type 'Get-Command *wapack*'.
3419
"@
3520
Write-Output $welcomeMessage
36-
37-
Set-ExecutionPolicy -Scope Process Undefined -Force
38-
if ($(Get-ExecutionPolicy) -eq "Restricted")
39-
{
40-
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
41-
}

0 commit comments

Comments
 (0)