Skip to content

Commit fac8152

Browse files
authored
Merge pull request #140 from microsoftgraph/Sample-Update
Update installmodule.ps1 sample
2 parents a31bdc5 + 8ef45fa commit fac8152

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

samples/0-InstallModule.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ Install-module Microsoft.Graph
66
# Uninstalling the old preview version, before installing the new
77

88
# Remove the main meta module
9-
Uninstall-Module Microsoft.Graph.Beta
9+
Uninstall-Module Microsoft.Graph
1010

1111
# Remove all the dependent modules
12-
Get-InstalledModule Microsoft.Graph.Beta.* | uninstall-module
12+
Get-InstalledModule Microsoft.Graph.* | %{ if($_.Name -ne "Microsoft.Graph.Authentication"){ Uninstall-Module $_.Name } }
1313

14-
# Update the authentication module from 0.1.4 to 0.1.5
14+
# Update the authentication module from 0.1.5 to 0.2.0
1515
Install-Module Microsoft.Graph.Authentication -Repository PSGallery -force
1616

17+
# Or uninstall the authentication module
18+
Uninstall-Module Microsoft.Graph.Authentication
19+

0 commit comments

Comments
 (0)