Меню

Ошибка программы runas не удалось получить пароль пользователя

Я пытаюсь запустить visual studio 2010 из командной строки с помощью «RUNAS», чтобы я мог запустить его как другой пользователь. Я выполнил следующую команду:

runas / профиль / пользователь: myPCName/SomeUserName «C:Program файлы (x86)Microsoft Visual Studio 10.0Common7IDEdevenv.EXE-файл»

моя проблема в том, что commandprompt говорит «введите пароль для myPCName/SomeUserName:», но я не могу ввести пароль. Я просто получаю ошибку » ошибка RUNAS: невозможно получить пользователя пароль»

я погуглил это некоторое время, и единственным ответом, который я нашел, было то, что я не вижу введенный пароль, но он все равно введен, и что я должен вводить неправильный пароль. Я уверен, что не ввел неверный пароль.

2 ответов


есть так много вещей, которые вы забыли документировать:

  • что ваш поставщик входа в систему? Вы привязаны к домену?
  • — ваши бежит из командной запроса UAC?
  • как выглядит настоящее имя пользователя? Это системная учетная запись?
  • существует ли учетная запись пользователя на код машины?
  • можете ли вы выйти из системы и войти в систему как этот пользователь с Вашего компьютера?
  • Это также работает когда вы отключаетесь от сети?
  • вы действительно вводите эту команду или она вызывается из a .bat или скрипт?
  • «ввод пароля», вы не можете ввести его или ему не нравится то, что вы набрали?

Serverfault.com это хорошее место, чтобы спросить об аутентификации пользователя.


На самом деле у меня была такая же проблема с W7 Enterprise (подключенным к домену, переключающимся на локально определенного пользователя администратора) без повышения UAC с командой:

runas /user:.admin cmd.exe

он попросил меня ввести пароль.

Он также работал, когда я явно изменил его на:

runas /user:%COMPUTERNAME%admin cmd.exe


Я пытаюсь запустить visual studio 2010 из командной строки с помощью «RUNAS», чтобы я мог запускать ее как другого пользователя. Я выполнил следующую команду:

runas/profile/user: myPCName/SomeUserName «C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEdevenv.exe»

Моя проблема в том, что commandprompt говорит «Введите пароль для myPCName/SomeUserName:», но я не могу ввести пароль. Я просто получаю сообщение об ошибке «RUNAS ERROR: невозможно получить пароль пользователя»

Я искал это некоторое время, и единственный найденный мной ответ заключался в том, что я не вижу введенный пароль, но он введен в любом случае и что я должен вводить неверный пароль. Я уверен, что не набираю неверный пароль.

4b9b3361

Ответ 1

Есть так много вещей, о которых вы забыли:

  • Каков ваш поставщик услуг входа в систему? Вы привязаны к домену?
  • выполняется ли это из командной строки UAC с повышенными правами?
  • Как выглядит настоящее имя пользователя? Это системная учетная запись?
  • действительно ли пользовательская учетная запись существует на вашем компьютере?
  • Вы можете выйти из системы и войти в систему как пользователь с вашего компьютера?
  • Это также работает при отключении от сети?
  • действительно ли вы набираете эту команду или вызывается из .bat или script?
  • «не может ввести пароль», вы не можете ввести его или ему не нравится, что вы набрали?

Serverfault.com — хорошее место, чтобы спросить об аутентификации пользователя.

Ответ 2

На самом деле, у меня была та же проблема с W7 Enterprise (подключался к домену, переключаясь на локально определенного пользователя-администратора) без повышения UAC с помощью команды:

runas /user:.admin cmd.exe

Он запросил меня для пароля.

Он также работал, когда я явно менял его на:

runas /user:%COMPUTERNAME%admin cmd.exe

Ответ 3

У меня только что была эта проблема.

runas/username:domain/user cmd не удалось

но

runas/username:domainuser cmd работал.

Так что проверь свои косые черты.

Добрый день. Проблема такая: По каой-то причине битомет не получает доступ к одному из дисков. При запусе от имени администратора всё в порядке.

По совету в дной из тем тут создал в автозагрузке батник с текстом: 

chcp 1251
runas /savecred /user:Администратор "C:Program FilesBitCometBitComet.exe"
TIMEOUT /T 100 

В итоге она спрашивает пароль, но никак не реагирует на ввод. То есть при вводе букв ничего не происходит, а если попытаться использовать вставку, то выдаёт сообщение о неверном пароле. При этом встроенную учётку админа я включил и запаролил.

ещё заметил, что при попытке сделать то же самое в виндовс павершелл после вставки пароля появляестя ошибка «неверный пароль» и тут же после этого кусок пароля без первых двух букв вставляется как следующая комманда 

PS C:WINDOWSsystem32> runas /savecred /user:Администратор "C:Program FilesBitCometBitComet.exe"

Попытка запуска C:Program FilesBitCometBitComet.exe от имени пользователя "DESKTOP-123Администратор" ...

Введите пароль для Администратор:
Попытка запуска C:Program FilesBitCometBitComet.exe от имени пользователя "DESKTOP-123Администратор" ...

ОШИБКА RUNAS: Не удается запустить - C:Program FilesBitCometBitComet.exe
1326: Неверное имя пользователя или пароль.

PS C:WINDOWSsystem32> 345

При том, что пароль в буфере «12345»

I’m trying to start visual studio 2010 from command prompt using ‘RUNAS’ so that I can run it as a different user. I ran the following command:

runas /profile /user:myPCName/SomeUserName «C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEdevenv.exe»

My problem is that the commandprompt says «Enter the password for myPCName/SomeUserName:» but I cannot enter the password. I just get the error «RUNAS ERROR: Unable to acquire user password»

I googled this for a while and the only answer I found was that I cannot see the password entered, but it is entered anyways, and that I must be typing the wrong password. I’m certain I’m not typing the wrong password.

asked May 18, 2010 at 16:42

John Fischer's user avatar

John FischerJohn Fischer

1,1053 gold badges13 silver badges24 bronze badges

Actually, I had the same problem with W7 Enterprise (connected to a domain, switching to a locally defined admin user) without UAC elevation with the command:

runas /user:.admin cmd.exe

It did prompt me for the password.

It also worked when I changed it explicitly to:

runas /user:%COMPUTERNAME%admin cmd.exe

Jesse's user avatar

Jesse

8,4957 gold badges46 silver badges57 bronze badges

answered Apr 13, 2013 at 23:44

Eelco L.'s user avatar

2

There are so many things your forgot to document:

  • what is your logon provider? Are you attached to a domain?
  • are your running this from a UAC elevated command prompt?
  • what does the real user name look like? Is it a system account?
  • does the user account actually exist on your machine?
  • can you logout and logon as that user from your machine?
  • does that also work when you disconnect from the network?
  • do you actually type this command or is it called from a .bat or script?
  • «cannot enter the password», you can’t type it or it doesn’t like what you typed?

Serverfault.com is a good place to ask about user authentication.

answered May 18, 2010 at 18:33

Hans Passant's user avatar

Hans PassantHans Passant

912k145 gold badges1670 silver badges2507 bronze badges

3

I just had this issue.

runas /username:domain/user cmd failed

but

runas /username:domainuser cmd worked.

So give your slashes a check.

jkdev's user avatar

jkdev

11k15 gold badges55 silver badges77 bronze badges

answered Jul 22, 2019 at 0:12

Douganater's user avatar

DouganaterDouganater

511 silver badge3 bronze badges

I have tried using the «runas» command from Windows to run a program with lowered credentials than those of the currently active account (in order to «sandbox» that program to be only able to access certain directories and files).
It works fine, for the most part, but I am getting a strange error.
The command that works without any issues is:

runas /noprofile /user:<Username> <program.exe>

But when I try to remove the /noprofile and instead write runas /user:<Username> <program.exe> or alternatively runas /user:<Username> /profile <program.exe> I get an error saying (roughly translated) this:

RUNAS-ERROR: <Path-To-My-Program> cannot be executed
299: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.

I tried researching the error but the only thing I could come across was some people that encountered this error trying to work with CDs, USBs and external hard drives, and setting some registry values for those worked for them.
I did not attempt to modify the registry myself, because I am not using any of these, and thus I concluded that the error had to be something else on my end.

I am really confused as to what is causing this behaviour, and am hoping that someone who is more experienced with this can help me out 🙂

Thanks in advance
Best Regards

I have tried using the «runas» command from Windows to run a program with lowered credentials than those of the currently active account (in order to «sandbox» that program to be only able to access certain directories and files).
It works fine, for the most part, but I am getting a strange error.
The command that works without any issues is:

runas /noprofile /user:<Username> <program.exe>

But when I try to remove the /noprofile and instead write runas /user:<Username> <program.exe> or alternatively runas /user:<Username> /profile <program.exe> I get an error saying (roughly translated) this:

RUNAS-ERROR: <Path-To-My-Program> cannot be executed
299: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.

I tried researching the error but the only thing I could come across was some people that encountered this error trying to work with CDs, USBs and external hard drives, and setting some registry values for those worked for them.
I did not attempt to modify the registry myself, because I am not using any of these, and thus I concluded that the error had to be something else on my end.

I am really confused as to what is causing this behaviour, and am hoping that someone who is more experienced with this can help me out 🙂

Thanks in advance
Best Regards

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Ошибка прокси сервера как исправить windows 10
  • Ошибка программный доступ к проекту visual basic не является доверенным