diff --git a/UnitTests/PInvoke/Security/AdvApi32/LsaTests.cs b/UnitTests/PInvoke/Security/AdvApi32/LsaTests.cs index 88b8c6bb..45cb98bd 100644 --- a/UnitTests/PInvoke/Security/AdvApi32/LsaTests.cs +++ b/UnitTests/PInvoke/Security/AdvApi32/LsaTests.cs @@ -158,6 +158,14 @@ namespace Vanara.PInvoke.Tests } } + [Test] + public void LsaOpenPolicyRemoteTest() + { + var stat = LsaOpenPolicy(TestCaseSources.GetValueOrDefault("RemoteComputer"), LSA_OBJECT_ATTRIBUTES.Empty, LsaPolicyRights.POLICY_ALL_ACCESS, out var h); + Assert.That(stat, ResultIs.Successful); + h.Dispose(); + } + [Test] public void LsaOpenTrustedDomainByNameTest() {