Sign in to follow this  
Followers 0
sanni

Regedit connect to Remote Computer

6 posts in this topic

#1 ·  Posted (edited)

Hi ,

ive made a autoit script which starts regedit and connects it to a remote computer. The Adress have to be entered with an inputbox.

$return = InputBox("Regedit","PC Name:","")

if @error = 0 Then
run("regedit.exe",@SystemDir)
WinWaitActive("Registrierungs-Editor")
send("!d")
send("{m}")
WinWaitActive("Computer wählen","Geben Sie die zu verwendenden")
send($return)
send("{enter}")
WinActivate("Registrierungs-Editor")    ;regedit offen und auf pc verbunden
Elseif @error = 1 Then
EndIfoÝ÷ ØÒr$Äà­¢+wØ­¢»azÇ"¦Ü(®KºØÊ&¦)^Ûhjw±yË­i¹^¶¢­nZ¦®Æ§v'âz{^­§(­z¹Úæ§uÉbrJ$¶¬r*mël¥«¬yÖ§jz-êâ­nZ¦®Ä¨Â«z+-竮ȧ^jz-êìr¸©µú+E騵àÞ²Kh§­Ø^±©>ºéºÚ"µÍÌÍÜ]H[]Þ
    ][ÝÔ[[ÝHÚÝÜÛÛÛÛI][ÝË    ][ÝÔÈ[YN][ÝÊBYÜH[[    ][ÝÛÝØË^HØÛÛÛÛI][ÝËÞÝ[QBÚ[ØZ]]][ÝÔ[[ÝYÚÝÜ[[É][ÝÊBÙ[
    ÌÍÜ][
    ][ÝÞÙ[I][ÝÊB[ÙZYÜHH[[Y

Has anyone a similar problem or a solution?

Edited by sanni

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

do
$return = InputBox("Remote Desktop Console","PC Name:")
until $return<>""

if @error = 0 Then
run("mstsc.exe /console",@SystemDir)
WinWaitActive("Remotedesktopverbindung")
send($return)
send("{enter}")
Elseif @error = 1 Then
exit
EndIf

Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

do
$return = InputBox("Remote Desktop Console","PC Name:")
until $return<>""

if @error = 0 Then
run("mstsc.exe /console",@SystemDir)
WinWaitActive("Remotedesktopverbindung")
send($return)
send("{enter}")
Elseif @error = 1 Then
exit
EndIf
i tried it but it didn't work. ive still the problem that the script works in the editor and as soon as it is compiled it fails.

i have tested the exe file on several PCs but the Problem is the same.

Edited by sanni

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Not sure, but why don't you just use /v to connect right to the pc instead of "send()"-ing?

do
$return = InputBox("Remote Desktop Console","PC Name:")
until $return<>""

if @error = 0 And $return <> "" Then
run("mstsc.exe /console /v:" & $return,@SystemDir)
Else
exit
EndIf
Edited by spudw2k

Share this post


Link to post
Share on other sites

Not sure, but why don't you just use /v to connect right to the pc instead of "send()"-ing?

do
$return = InputBox("Remote Desktop Console","PC Name:")
until $return<>""

if @error = 0 And $return <> "" Then
run("mstsc.exe /console /v:" & $return,@SystemDir)
Else
exit
EndIf
yes this also works.

But i got the Problem. If i create the au3 file on mapped network drive and compile it, it don't works. Even if i copy the au3 file to my desktop. But ich i copy just the content of the script

and create a new one on my desktop, paste the content and compile it, it works.

thanks for your help

mfg

sanni

Share this post


Link to post
Share on other sites

yes this also works.

But i got the Problem. If i create the au3 file on mapped network drive and compile it, it don't works. Even if i copy the au3 file to my desktop. But ich i copy just the content of the script

and create a new one on my desktop, paste the content and compile it, it works.

thanks for your help

mfg

sanni

OK that was not the problem, it is much more simple. I named the script mstsc.au3 and in the script i run mstsc.exe, and when it is compiled there is another mstsc.exe in that directory.

So this file will be executed, and thats why there is a loop :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0