You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this code to download two modules: Initialize-ModulePortable -Name 'ADEssentials' -Download -Path "$ScriptDirectory\Modules" Initialize-ModulePortable -Name 'PSWriteHTML' -Download -Path "$ScriptDirectory\Modules"
in the folder I get back this result
:
If i look inside the ADEssentials.ps1 I see that there are all modules added.
PSWriteHTML.psd1
PSEventViewer.pds1
ADEssentials.psd1
Why the PSWriteHTML.psd1 is also added?
When I change the download order, this has no effect. Every time it is addes to the ADEssentials.psd1 file.
Correct me if I'm wrong, but normaly in this file only the module should be addes for the provides module??
Thanks.
The text was updated successfully, but these errors were encountered:
If you do Install-Module ADEssentials -Force -Verbose you will see that what will actually happen is it first checks if PSEventViewer and PSWriteHTML exists and then it downloads them, and then finally it downloads ADEssentials.
This is because ADEssentials has required modules defined PSWriteHTML/PSEventViewer to work.
SO if you request Initialize-ModulePortable - it checks PSD1 and finds required modules and downloads them and builds a PS1 files to execute. If you then request just PSWriteHTML it's gonna just do the same thing again - but this time it's gonna need PSWriteHTML only.
I still would recommend using Save-Module to save files somewhere and just copy them to modules as it will be more straightforward.
PSWriteHTML is bundled in ADEssentials because it delivers 4-5 cmdlets that display HTML such as Show-WinADGroupMember and few others.
Hi,
thanks to clarify, now it makes sense.
After the first run all is downloaded and looks nice now. If i run it a second time (for later updates) I only get a message
"Initialze-ModulePortable - Modules to load not found in --Path to directory-- \modules"
Helllo,
I'm using this code to download two modules:
Initialize-ModulePortable -Name 'ADEssentials' -Download -Path "$ScriptDirectory\Modules" Initialize-ModulePortable -Name 'PSWriteHTML' -Download -Path "$ScriptDirectory\Modules"
in the folder I get back this result
:
If i look inside the ADEssentials.ps1 I see that there are all modules added.
PSWriteHTML.psd1
PSEventViewer.pds1
ADEssentials.psd1
Why the PSWriteHTML.psd1 is also added?
When I change the download order, this has no effect. Every time it is addes to the ADEssentials.psd1 file.
Correct me if I'm wrong, but normaly in this file only the module should be addes for the provides module??
Thanks.
The text was updated successfully, but these errors were encountered: