Snippet to help with installing the module #368
Sam Erde (SamErde)
started this conversation in
General
Replies: 5 comments 4 replies
|
What you need is |
1 reply
|
Bumping this up: Adam Edwards (@adamedx), Rodrigo Tintor (@rtintor), v-varshamane, Taofeek F. Obafemi-Babatunde (@FehintolaObafemi). |
0 replies
|
Note: this isnt what I'd consider production ready, as there are no checks regarding which files are being unblocked, etc. Could be a starting point for someone who has already downloaded the module or for further development if useful. |
0 replies
|
Adding beta modules per #377 and found in
|
0 replies
|
Sam Erde (@SamErde) Steve Mutungi (@SteveMutungi254) Not sure if this helps, but this is what I have done: #Import module manifest
$data = Import-PowerShellDataFile "$((Get-installedModule Microsoft.Graph.Entra).additionalMetadata.InstalledLocation)\Microsoft.Graph.Entra.psd1"
#Get required modules
$requiredModules = $data.RequiredModules.ModuleName
#Install dependent modules
if ($requiredModules) {
foreach ($module in $requiredModules) {
if (!(Get-Module -Name $module -ListAvailable)) {
Install-Module -Name $module -Scope CurrentUser
}
}
} |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I made this slightly expanded installation snippet to help in new test environments that might not have all of the pre-requisite modules installed yet:
All reactions