我有打印机RDS 2012问题,并使用组策略创建网络打印机,因为在RDS 2012上打印可靠性很差,并且是终端服务框网络假脱机程序停止和启动我希望能够使用Powershell重新创建打印机Get-Printer | remove-printer get rid of them o.k
但我该如何重建打印机。
我想从python脚本中打开一个powershell,然后在这个新创建的powershell中启动另一个python脚本。System32\\WindowsPowerShell\\v1.0", shell=True)
# Here, I would like to write this in the new opened powershell我尝试了subprocess.Popen +通信,但是在我的新powershell中没有写任何东西