Return empty string
See original GitHub issueI have a question and maybe you can help.
I’m trying to remotely get the PowerShell version on the host, if i run the command locally in powershell it works. But if i run it remotely using pypsrp, I get an empty string. Any idea why ?
Locally : (Get-ItemProperty ‘HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine’).PowerShellVersion Returns : 5.1.14393.0
In Python :
ps.add_script("(Get-ItemProperty
‘HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine’).PowerShellVersion")
print(ps.invoke[0])`
Returns : “”
If i get the windows version instead of PowerShellVersion (different reg path) it works.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Returning an empty string : efficient way in c++ - Stack Overflow
Show activity on this post. I have 2 ways of returning an empty string from a function.
Read more >Return empty String for null string - Java java.lang - Java2s.com
Description. Return empty String for null string. Demo Code. public class Main { public static void main(String[] argv) { String s = "java2s.com"; ......
Read more >JavaScript Check Empty String – Checking Null or Empty in JS
We now know that an empty string is one that contains no characters. It is very simple to check if a string is...
Read more >How to Check if a String is Empty in Python - Datagy
In this section, you'll learn how to check if a string is both empty as well as blank, meaning that it only contains...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works like a charm adding “r” in front of all strings… Thx again
On Sun, Dec 13, 2020 at 6:06 PM leSourCil lesourcil@gmail.com wrote:
–
Sach
Yup That was the plan put r in front of all strings
On Dec. 13, 2020, 18:03, at 18:03, Jordan Borean notifications@github.com wrote: