I’ve been trying to make a small code for a project I have on windows server 2008. The person who uses this script has 3 options: 1 – Search for a user (Working) 2 – Activate ‘Password never expires’ 3 – Return basic user info. Number 1 is completely working, but I ran into a ..
I’m trying to work with active directory from Rust by following the c++ examples Microsoft posts for the ADSI API and the Windows-RS crate. I’m not understanding quite what is going on here: https://docs.microsoft.com/en-us/windows/win32/api/adshlp/nf-adshlp-adsopenobject They create an uninitialized pointer to IADs (drawing from my c# knowledge, it looks like an interface) then, when it comes ..
I’m attempting to check the RelayForAuth setting for my Windows SMTP Server using the below commands. Powershell appears to display the correct result ‘False’ but when running the same command via command prompt, it generates an error: Powershell Example: ([ADSI]"IIS://localhost/smtpsvc/1".RelayForAuth -like "*0*") Output: False Command Prompt Example: powershell -command "([ADSI]"IIS://localhost/smtpsvc/1".RelayForAuth -like "*0*")" Output: At line:1 ..