File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 71
71
{
72
72
"file" : [
73
73
" msgraph-sdk-powershell\\ src\\ Identity.SignIns\\ beta\\ examples\\ Reset-MgBetaUserAuthenticationMethodPassword.md" ,
74
- " microsoftgraph\\ graph-powershell-beta\\ Microsoft.Graph.Beta.Identity.SignIns\\ Reset-MgBetaUserAuthenticationMethodPassword.md"
74
+ " microsoftgraph\\ graph-powershell-beta\\ Microsoft.Graph.Beta.Identity.SignIns\\ Reset-MgBetaUserAuthenticationMethodPassword.md" ,
75
+ " msgraph-sdk-powershell/src\\ Identity.SignIns\\ v1.0\\ examples\\ Reset-MgUserAuthenticationMethodPassword.md" ,
76
+ " microsoftgraph\\ graph-powershell-beta\\ Microsoft.Graph.Beta.Users.Actions\\ Reset-MgBetaUserAuthenticationMethodPassword.md"
75
77
],
76
78
"_justification" : " [Identity.SignIns] Examples contain random values recognized as secret"
77
79
},
Original file line number Diff line number Diff line change 5
5
targetType : ' inline'
6
6
pwsh : true
7
7
script : |
8
- Uninstall-Module Microsoft.Graph -Force -AllVersions
9
- Uninstall-Module Microsoft.Graph.Beta -Force -AllVersions
8
+ try{
9
+ # Try to uninstall the beta module first.
10
+ Uninstall-Module Microsoft.Graph.Beta -Force -AllVersions
11
+ Uninstall-Module Microsoft.Graph.Beta -Force -AllVersions
12
+ }catch{
13
+ # If the module is installed, uninstall it.
14
+ echo "Error when uninstalling Beta"
15
+ }
10
16
try{
11
17
# Try to update the V1 module first.
12
18
Install-Module Microsoft.Graph.Beta -Repository PSGallery -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber
You can’t perform that action at this time.
0 commit comments