H
H
hardwellZero2015-05-24 21:54:06
Python
hardwellZero, 2015-05-24 21:54:06

How to run PowerShell via python script?

Good evening Toaster.
I'm looking for a way to run PowerShell through a Python script.
You need to run and execute a specific command.
What will be the settings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DENIS SHELESTOV, 2015-05-24
@djdeniro

import os
os.system("Any command")

Or via Subprocess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question