I have a python file contains a PowerShell script using subprocess library. So I import Active Directory module inside my PowerShell script, But it needs the module to be loaded and exists in my pc but after I build python file to be an exe file, and run the exe on another pc which doesn’t have the module installed it didn’t return data.
So how can I include the module correctly inside my python project ?
I tried to copy “ActiveDirectory” folder from this path “C:WindowsSystem32WindowsPowerShellv1.0Modules” but with nothing new.