question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DSInternals missing dependency

See original GitHub issue

Hi, 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:closed
  • Created 7 months ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ryannewingtoncommented, Mar 6, 2023

@JordanPu Not best practice, but no known issues with the relatively recent versions we are talking about here.

0reactions
stale[bot]commented, Mar 13, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found