Runas ошибка 1326

Здравствуйте.
Нужно запустить проводник от Имени Администратора, все перепробовал, надежда только на эту команду:

runas /user:%computername%administrator "explorer /separate"

Запускаю cmd от имени администратора, ввожу ее, нажимаю Enter, ввожу пароль от своей учетной записи (которая, как я полагаю и является записью Администратора), но пароль неверный, хотя я его вводил на стартовом окне при входе в своего пользователя в Windows 10

C:Windowssystem32>runas /user:%computername%administrator «explorer /separate»
Введите пароль для EGORPCadministrator:
Попытка запуска explorer /separate от имени пользователя «EGORPCadministrator» …
ОШИБКА RUNAS: Не удается запустить — explorer /separate
1326: Неверное имя пользователя или пароль.

Какой пароль нужно вводить, если пароль от единственного созданного аккаунта не подходит?
67491296_870431107a047056bc0d638ad5979f2

Добрый день.

Задача стоит следующая: пользователю с обычными правами необходимо установить 1С. Точнее у 1С есть модуль (1cestart.exe ), который запускается и проверяет наличие новой версии. Если новая версия есть, то она устанавливается. Но ждя
этого нужны права администратора.

Есть утилитка RUNAS. Но возникли проблемы с запуском установки с удаленного компьютера.

Есть одна машина с ОС Win7 64( типа сервер ). Там лежит файлик setup.exe ( установочный для 1С ) в папке D:1C1C_DIstrib<номер версии>.

Папка D:1C — расшарена.

Есть другая машинка( типа клиентская ), с которой нужно ЗАПУСТИТЬ этот setup.exe.

При запуске runas /user:ANDYAdmin \192.168.0.1001C1C_distrib8.2.17.143setup.exe Выдает следующее:

ОШИБКА RUNAS: Не удается запустить \192.168.0.1001C1C_distrib8.2.17.143setup.exe

1326: Вход в систему не произведен: имя пользователя и пароль не опознаны.

Запускаю \192.168.0.1001C1C_distrib8.2.17.143setup.exe. Установка начинает идти, но ругается на то, что нет прав администратора.

Если запускаю runas /user:ANDYAdmin S:1C_distrib8.2.17.143setup.exe Выдает следующее:

3: Системе не удается найти указанный путь.

Запускаю S:1C_distrib8.2.17.143setup.exe. Установка начинает идти, но ругается на то, что нет прав администратора. Путь находит.

Пароль Admin’а завожу правильно.

Не подскажетев чем может быть дело? Ключи /noprofile и /netonly пробовал. Не помогло.

Заранее благодарю за помощь.

I tried to execute notepad from cmd using the following command-

runas /noprofile /user:<username>@<ip> notepad

Then I got this output where I was asked to enter my password

Enter the password for <username>@<ip>:

After entering my password (which is correct), I got this output-

Attempting to start notepad as user "<username>@<ip>" ...
RUNAS ERROR: Unable to run - notepad
1326: Logon failure: unknown user name or bad password.

Any idea why I got the above output? I’m actually a dummy when it comes to programming and scripting in windows terminals. Also, is it possible for me to avoid the interaction part where I’m asked for password and enter it as part of the runas command itself?

fixer1234's user avatar

fixer1234

27k61 gold badges72 silver badges116 bronze badges

asked Aug 20, 2013 at 13:18

AlwaysALearner's user avatar

AlwaysALearnerAlwaysALearner

3934 gold badges6 silver badges12 bronze badges

The «user» parameter expects user credentials that consist of a user name and an (optional) domain name, you can’t use an IP address as you are attempting.

From runas /?:

<UserName> should be in form USER@DOMAIN or DOMAINUSER

If you have no domain, you can use the target computer’s name so that it knows to look there for the credential store to check against.

As to including the password so you don’t have to type it, no you can’t do that, as it is considered insecure.

Perhaps check out these SU questions related to dealing with that:

  • How to run the «runas» command without writing the password
  • Run program as different, password protected user in Win 7 wo/ PW prompt

Community's user avatar

answered Aug 20, 2013 at 15:45

Ƭᴇcʜιᴇ007's user avatar

Ƭᴇcʜιᴇ007Ƭᴇcʜιᴇ007

112k19 gold badges201 silver badges266 bronze badges

1

If you want to specify username and password on command-line you can try PsExec from Syinternals/Microsoft.

answered Aug 20, 2013 at 13:44

Robert's user avatar

As I am not allowed to comment yet…
Is this an Active Directory environment , or do you try to access a User or Group from an other computer.

If it’s an AD environment i suggest NOT to use an IP but the domain name (NetBios name is also OK)

I just tried this out on my own an it worked out. (result is german)

 C:Usersuser>runas /noprofile /user:testuser@foobar.com notepad
Geben Sie das Kennwort für "testuser@foobar.com" ein:
Es wird versucht, notepad als Benutzer "testuser@foobar.com" zu starten...

C:Usersuser>runas /noprofile /user:foo_bartestuser notepad
Geben Sie das Kennwort für "foo_bartestuser" ein:
Es wird versucht, notepad als Benutzer "foo_bartestuser" zu starten...

C:Usersuser>runas /noprofile /user:foobar.comtestuser notepad
Geben Sie das Kennwort für "foobar.comtestuser" ein:
Es wird versucht, notepad als Benutzer "foobar.comtestuser" zu starten...

answered Aug 20, 2013 at 13:44

Daywalker's user avatar

I also faced the same issue with the following command.
Command – tscon SessionID /dest:console /password:****

Resolution: I worked a lot and finally got to know the issue is with password. i.e. the password length should not be greater than 13 characters. But in this case password = 20 characters.

Later I changed the password to ****(12 characters) and issue got resolved.

answered Jul 10, 2020 at 7:31

user3815064's user avatar

1

Guest


  • #1

I have a WinXP Pro SP2 Notebook, in Workgroup mode, on a Domain network.
I’m trying to make the noteboom «part» of the domain network creating
batches to map drives and printers so the Notebook can be used on workgroup
mode, but accessing Domain resources

I’m trying to use the RUNAS, but the logon fails, with password/user
problem. The user-password is 100% correct but the error 1326 appears and
nothing in the Logs shows me the problem

In Security Settings, i’ve checked fo smb signing, NTLM and everything is OK
(Win2003 domain)

Advertisements

Andy White


  • #2

You say the user name is correct but have you put the domain name in front
of it.

it should be in the format domainnameusername

Advertisements

Guest


  • #3

Was done correctly. with UPN credentials, domainNetBIOSUsername,,
DOmainDNSUsername , with /profile, with /no profile

i´m trying to open a simple CMD.EXE on a XP Pro Workgroup, using a Domain
Credentials.

The users is doing now: typing \DCName, when propted, type user/password
and it works

Want to reply to this thread or ask your own question?

You’ll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.


Ask a Question

Перейти к контенту

Я пытаюсь запустить 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: невозможно получить пароль пользователя»

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

Ответ 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

Понравилась статья? Поделить с друзьями:
  • Runas ошибка 1058
  • Runtime error ошибка выполнения
  • Run ошибка на кондиционере
  • Runtime error внутренняя ошибка extract temporary file size
  • Run time error 3151 odbc ошибка подключения к