I need some help please.
I only need the values in two Python variables from a simple Powershell query in Python with two results.
enter image description here
Variable 1: myPC
Variable 2: 28.05.2024
Can anyone help?
...
data = subprocess.run('get-adcomputer -identity myPC -properties * | select name, created', text=True, shell=True, check=True, capture_output=True, executable=powershell_path)
data = data.stdout.strip()
result1 = ????
result2 = ????
Thanks
i tried everything 🙂
New contributor
sodawell99 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1