Answer the question
In order to leave comments, you need to log in
How to get a list of all window titles on a remote PC?
There is a task to receive the list of all title of a window on the remote PC in an array.
I was able to get the list of windows into an array on my local computer as follows:
[array]$Titles = Get-Process | Where-Object {$_.mainWindowTItle} |Foreach-Object {$_.mainwindowtitle}
Invoke-Command -ComputerName "PCName" {
[array]$Titles = Get-Process | Where-Object {$_.mainWindowTItle} |Foreach-Object {$_.mainwindowtitle}
}
Answer the question
In order to leave comments, you need to log in
doesn't work even if you crack - get-process does not transfer mainwindowtitle from remote machines! sort of like it's not supported by microsoftware. I'm looking for how else I can ...
UPD: nope, it doesn't work. and through get-ciminstance and get-wmiobject I couldn't get the window names from the remote machine either. It doesn't seem to be a bug, but a feature. so safer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question