@@ -88,6 +88,7 @@ function Disable-StrongSignValidation
88
88
reg DELETE " HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" / f > $null
89
89
reg ADD " HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" / f > $null
90
90
}
91
+ Restart-Service msiserver
91
92
}
92
93
93
94
function Enable-StrongSignValidation
@@ -99,6 +100,7 @@ function Enable-StrongSignValidation
99
100
reg DELETE " HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" / f > $null
100
101
reg ADD " HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" / f > $null
101
102
}
103
+ Restart-Service msiserver
102
104
}
103
105
104
106
function Find-CompleterAttribute
@@ -117,9 +119,7 @@ function Find-CompleterAttribute
117
119
$AllCmdlets = @ ()
118
120
$nestedModules | ForEach-Object {
119
121
$dllPath = Join-Path - Path $ModulePath - ChildPath $_
120
- Disable-StrongSignValidation
121
122
$Assembly = [Reflection.Assembly ]::LoadFrom($dllPath )
122
- Enable-StrongSignValidation
123
123
$dllCmdlets = $Assembly.GetTypes () | Where-Object {$_.CustomAttributes.AttributeType.Name -contains " CmdletAttribute" }
124
124
$AllCmdlets += $dllCmdlets
125
125
}
@@ -188,9 +188,7 @@ function Find-DefaultResourceGroupCmdlets
188
188
$AllCmdlets = @ ()
189
189
$nestedModules | ForEach-Object {
190
190
$dllPath = Join-Path - Path $ModulePath - ChildPath $_
191
- Disable-StrongSignValidation
192
191
$Assembly = [Reflection.Assembly ]::LoadFrom($dllPath )
193
- Enable-StrongSignValidation
194
192
$dllCmdlets = $Assembly.GetTypes () | Where-Object {$_.CustomAttributes.AttributeType.Name -contains " CmdletAttribute" }
195
193
$AllCmdlets += $dllCmdlets
196
194
}
@@ -291,7 +289,7 @@ if ($Profile -eq "Stack")
291
289
}
292
290
293
291
294
-
292
+ Disable-StrongSignValidation
295
293
$resourceManagerRootFolder = " $packageFolder \$buildConfig \ResourceManager\AzureResourceManager"
296
294
$publishToLocal = test-path $repositoryLocation
297
295
$templateLocation = " $PSScriptRoot \AzureRM.Example.psm1"
@@ -358,4 +356,6 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
358
356
Create- ModulePsm1 - ModulePath $modulePath - TemplatePath $templateLocation - IsRMModule $false
359
357
Write-Host " Updated Azure module"
360
358
}
361
- }
359
+ }
360
+
361
+ Enable-StrongSignValidation
0 commit comments