techahold / rustdeskinstall

Easy install Script for Rustdesk
MIT License
330 stars 105 forks source link

Instsall with permanent password #48

Closed nierewa closed 11 months ago

nierewa commented 11 months 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 11 months 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 11 months 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 11 months ago

What if it uses 1.2.1 instead of 1.2?

nierewa commented 11 months ago

What if it uses 1.2.1 instead of 1.2?

Same problem. The password is ignored

dinger1986 commented 11 months ago

Ok

nierewa commented 11 months ago

Seems the --password argument doesn't exist

dinger1986 commented 11 months ago

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

nierewa commented 11 months 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 11 months 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 11 months ago

should be fixed now