techahold / rustdeskinstall

Easy install Script for Rustdesk
MIT License
397 stars 117 forks source link

Instsall with permanent password #48

Closed nierewa closed 1 year ago

nierewa commented 1 year ago

Hi.

I use the WindowsAgentAIOInstall.ps1 script to silent install Rustdesk on some PC in LAN. How can I set a permanent password for all?

I've changed this lines:

`old: $randompass = (-join ((65..90) + (97..122) | Get-Random -Count 8 | % {[char]$})) new: $random_pass = NewPassword

and

old: $rustdeskpw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$})) new: $rustdesk_pw = NewPassword`

but this doesn't work.

Is there a way to install client with set permanent password?

Thanks a lot ;-)

dinger1986 commented 1 year ago

Does it work directly?

As in if you run the commands line by line or groups of lines through powershell to install does it work?

Is the service running when that's done?

nierewa commented 1 year ago

Yes, it works. Service is running when it's done. But the Powershell windows doesn't close automatically. So I have to close it manually.

As in if you run the commands line by line or groups of lines through powershell to install does it work? Don't know how to do this. I'm very unfamiliar with powershell.

dinger1986 commented 1 year ago

What if it uses 1.2.1 instead of 1.2?

nierewa commented 1 year ago

What if it uses 1.2.1 instead of 1.2?

Same problem. The password is ignored

dinger1986 commented 1 year ago

Ok

nierewa commented 1 year ago

Seems the --password argument doesn't exist

dinger1986 commented 1 year ago

are you running as admin? works fine for me using cmd and powershell run as admin

nierewa commented 1 year ago

Ok. It works now. Powershell windows doesn't close automatically so the script doesn't end well.

Use this workaround https://github.com/techahold/rustdeskinstall/issues/47

dinger1986 commented 1 year ago

can you give the steps you ran? my problem is Im away from home with only a linux laptop so no way to test powershell

dinger1986 commented 1 year ago

should be fixed now