是否可以从 cPython 运行 PowerShell 和 Active Directory 命令?
我有 2 个关于 cPython(但不是 IronPython)的问题:
- 是否可以从 cPython 运行 PowerShell 命令?
- 是否可以从 cPython 运行 Active Directory 命令?
I have 2 questions about cPython (but not IronPython):
- Is it possible to run PowerShell commands from cPython?
- Is it possible to run Active Directory commands from cPython?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于“运行命令”的含义。
Active Directory 可以通过 LDAP(使用像 python-ldap 这样的包)进行交互,或者,如果必须的话,您可以随时使用 Python 的许多过程控制库中的一个直接调用第三方“命令”(例如 subprocess)
我希望这会有所帮助。
Depends what you mean by "run commands".
Active directory can be interfaced with via LDAP (with a package like python-ldap) or, if you must, you can always call third party "commands" directly using on of the many process control libs for python (like subprocess)
I hope this helps.