DSInternals missing dependency
See original GitHub issueHi, having issues with an install within a test environment, any help would be appreciated.
Running into this issue when attempting to import the module, I’m under the belief that any dependencies are included with the installer and would not need to be installed additionally.
Setup: Sandbox environment created for testing LPP prior to implementation:
- DC1: LPP installed and working as expected (including this Module)
- DC2: LPP installed, Module not working
- The Store is hosted on DC1: \DC1\lithnet$\Store which is reachable from DC2
- Both DCs have the ADDS role and have been promoted within the ‘LITHNET’ domain
Output from command execution / module import:
PS C:\Users\administrator.LITHNET> Test-IsCompromisedPassword
Test-IsCompromisedPassword : The 'Test-IsCompromisedPassword' command was found in the module
'LithnetPasswordProtection', but the module could not be loaded. For more information, run 'Import-Module
LithnetPasswordProtection'.
At line:1 char:1
+ Test-IsCompromisedPassword
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Test-IsCompromisedPassword:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
PS C:\Users\administrator.LITHNET> Import-Module LithnetPasswordProtection -verb
VERBOSE: Loading module from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\LithnetPasswordProtection.psd1'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\lithnetpasswordprotection\DSInternals.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\lithnetpasswordprotection\DSInternals.Common.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\lithnetpasswordprotection\DSInternals.Replication.Model.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\lithnetpasswordprotection\DSInternals.Replication.Model.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\DSInternals.Replication.Interop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\DSInternals.Replication.Interop.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\NDceRpc.Microsoft.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\NDceRpc.Microsoft.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\DSInternals.Replication.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\LithnetPasswordProtection\DSInternals.Replication.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Windows\Microsoft.Net\assembly\GAC_64\Lithnet.ActiveDirectory.PasswordProtection\v4.0_1.0.7242.0__55c528617c953ff5\
Lithnet.ActiveDirectory.PasswordProtection.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Windows\Microsoft.Net\assembly\GAC_64\Lithnet.ActiveDirectory.PasswordProtection\v4.0_1.0.7242.0__55c528617c953ff5\
Lithnet.ActiveDirectory.PasswordProtection.dll'.
Import-Module : Could not load file or assembly 'DSInternals.Replication.Interop.dll' or one of its dependencies. The
specified module could not be found.
At line:1 char:1
+ Import-Module LithnetPasswordProtection -verb
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
Issue Analytics
- State:
- Created 7 months ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Can't import DSInternals · Issue #41 · MichaelGrafnetter ...
one of its dependencies. An attempt was made to load a program with an incorrect format. At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\ ...
Read more >Directory Services Internals PowerShell Module and ...
The DSInternals PowerShell Module provides easy-to-use cmdlets that are built on top of the Framework. These are the main features: Azure Active Directory...
Read more >DSInternals: Blog
A post at the Active Directory Team Blog hints that the Password Sync agent retrieves pre-existing password hashes from AD and secures them...
Read more >DSInternals PowerShell Module 4.9
Active Directory password auditing that discovers accounts sharing the same passwords or having passwords in a public database like HaveIBeenPwned or in a ......
Read more >DSInternals 4.9
The DSInternals PowerShell Module exposes several internal features of Active Directory and Azure Active Directory.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JordanPu Not best practice, but no known issues with the relatively recent versions we are talking about here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.