A
A
Alexey Sudnikovich2015-08-04 18:16:06
Yii
Alexey Sudnikovich, 2015-08-04 18:16:06

How to auto-connect via rdp to a 2012r2 server with one caveat?

The mstsc parameters do not transfer the login and password through the console. The Powershell cmdkey is not suitable due to the fact that the server has a policy that prohibits connection with saved passwords. I myself am the administrator of this server, and since the entire screw is encrypted with true crypt, I decided to save myself from unnecessary gestures, but have not yet found a solution to the issue. Cancel the policy is not an option =)
Only wild crutches in the form of autoit come to mind, but I hope that the experts will nevertheless suggest a simpler solution.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dmitry Bay, 2019-01-12
@ZaurK

if ($user->save()) {
            echo 'good';
        }else{
           var_dump($user->getFirstErrors(); 
die;
            }

A
Access Denied, 2019-01-13
@AccessDenied80

Validation fails in User. Read the documentation for the framework.
Most likely password is at least 6 characters.

S
Sergey Kovalev, 2015-08-04
@Sergey-S-Kovalev

Start using Remote Desktop Connection Manager 2.7 already

A
athacker, 2015-08-05
@athacker

Try wFreeRDP. There you can set a password on the command line. Perhaps it will roll.

A
Andrey Ermachenok, 2015-08-04
@eapeap

due to the fact that the server has a policy that prohibits connection with saved passwords.

What server is this enabled on?
There was such - on a computer in the domain the password of access to the non-domain server was not saved. It is reset in the settings of the local computer (Google for help) and everything is remarkably preserved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question