Runas ошибка 1327

  • Remove From My Forums

 none

Вы не можете пользоваться этим компьютером из-за ограничений учетной записи…

  • Вопрос

  • При попытке войти на доменный компютер выдает сообщение, что в учетной записи есть какие то  ограничения.

    Учетная запись делалась путем копирование из другой и допонительних ограничений не устанавливалось.

    Пробовал переподключать компютер в домен, но безуспешно. 

    С учетной записью администратора домена захожу без проблем…


    Volodya

Ответы

  • Добрый День.

    Это нормальное поведение при условии что в параметрах учетной записи пользователя активно ограничение, а именно активна опция «Вход На»: Установите переключатель на «All Computers» и будет вам счастье


    Я не волшебник, я только учусь
    MCP CCNA. Если Вам помог чей-либо ответ, пожалуйста, не забывайте жать на кнопку «Пометить как ответ» или проголосовать «полезное сообщение». Мнения, высказанные здесь, являются отражением моих личных взглядов,
    а не позиции работодателя. Вся информация предоставляется как есть без каких-либо гарантий.
    Блог IT Инженера,
    Twitter, YouTube,
    GitHub.

    • Помечено в качестве ответа

      15 декабря 2017 г. 14:24

I am trying start a service (MySQL80) [= localhost MySQL server] using a cmd command in C++.

My C++ code looks like this (Microsoft Visual Studio 2017)

system("runas /noprofile /user:Administrator "NET start MySQL80"");

I can then insert the correct admin password. However I get the following error:

RUNAS ERROR: Unable to run -NET start MySQL80 
1327:Logon failure: user account restriction. Possible reasons are blank passwords not allowed,
logon hour restrictions, or a policy restriction has been enforced.

Note that my admin password is not a blank password.

I truly hope someone can help me.

Thanks in advance!

Addition: running with «/user: domainAdministrator» or with «/env» does not affect the result.

На чтение 3 мин. Просмотров 3.4k. Опубликовано 03.09.2019

Содержание

  1. Действия по устранению ошибки 1327 Invalid Drive
  2. Почему ошибка 1327 Invalid Drive возникает в первую очередь?
  3. Как исправить ошибку 1327 неверного диска в Windows 10?
  4. Решение 1. Удалите букву диска с помощью командной строки
  5. Решение 2. Отключите сетевой диск.
  6. Решение 3. Повторно свяжите букву диска с временным местоположением
  7. Решение 4. Создайте новую учетную запись пользователя

Действия по устранению ошибки 1327 Invalid Drive

  1. Удалить букву диска с помощью командной строки
  2. Отключите сетевой диск
  3. Связать букву диска с временным местоположением
  4. Создать новую учетную запись пользователя

Если при попытке установить определенную программу или программное обеспечение появляется ошибка 1327, сообщающая, что у вас недействительный диск: P:/(или, возможно, какая-то другая буква), вы попали по адресу. В этой статье вы найдете несколько решений для этой ошибки и сможете нормально устанавливать свои программы.

Этот код ошибки может иметь различную форму и влиять на различные программы. Таким образом, пользователи могут столкнуться с одним из следующих вариантов ошибки 1327:

  • Ошибка 1327 неверный диск H:
  • Ошибка 1327 неверный диск U:
  • Ошибка 1327 неверный диск E:

Похоже, что эти инструменты подвержены ошибке 1327 чаще других:

  • Autocad
  • саман
  • ARCGIS
  • Kaspersky

Почему ошибка 1327 Invalid Drive возникает в первую очередь?

Эта проблема может возникнуть, если сопоставлена ​​системная папка с установленным флажком «Повторное подключение при входе в систему», или вы случайно изменили букву дисковода для некоторых из ваших дисководов CD или DVD. Это может помешать установке некоторых программ, таких как Adobe Photoshop или Microsoft Office. Итак, вот что вы должны сделать, чтобы решить эту проблему.

Как исправить ошибку 1327 неверного диска в Windows 10?

Решение 1. Удалите букву диска с помощью командной строки

Команда, которую вы будете выполнять, позволит вам подключать и отключать букву диска в виртуальном местоположении. Отключение письма должно позволить вашей программе установить без сообщения об ошибке. Итак, вот что вам нужно сделать:

  1. Перейти к поиску, введите cmd и откройте командную строку
  2. В командной строке введите следующую строку и нажмите Enter:

    • subst/P (письмо водителя)
  3. Закройте командную строку и попробуйте установить программу

Решение 2. Отключите сетевой диск .

Это решение будет работать только в том случае, если в этом компьютере появится сетевой диск, в противном случае придерживайтесь предыдущего решения. Выполните следующие действия, чтобы отключить сетевой диск для устранения ошибки 1327:

  1. Перейти к поиску, введите проводник и откройте проводник
  2. Перейти на этот компьютер
  3. Нажмите Ctrl + F1, чтобы открыть ленту с инструментами
  4. В разделе «Карта сетевого диска» перейдите к «Отключить сетевой диск».
  5. Попробуйте установить вашу программу снова
  • СВЯЗАННЫЕ: исправлено: внутренний жесткий диск не будет отображаться в Windows 10

Решение 3. Повторно свяжите букву диска с временным местоположением

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

Примечание . Если временный путь не существует, его необходимо создать.

  1. Запустите командную строку от имени администратора
  2. Введите subst [Буква драйвера]: C: temp> нажмите Enter
    Закрыть командную строку> переустановить программное обеспечение.
  3. Снова запустите командную строку и введите команду: subst/D [Driver Letter]: чтобы удалить связь программного обеспечения с временным путем> нажмите Enter.

Решение 4. Создайте новую учетную запись пользователя

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

Некоторые из этих исправлений работали на вас? Расскажите нам больше о вашем опыте с этой проблемой в комментариях. Мы хотели бы узнать больше об этом и, возможно, предоставить вам некоторые дополнительные решения, если вышеупомянутых методов было недостаточно.

Ok, the reason this doesn’t work is the security model in Windows Vista and newer.
An account in the administrators group still runs everything not explicitly elevated as a limited user. The exception is the Administrator account, which runs everything elevated. For this reason, it is considered generally bad to use as your login account, and is normally disabled.

You could enable it and then runas to invoke as that account. That introduces a few problems — now you’re running with the environment of a different user, which could have different environment variables set.1

The better way to do this would be actually elevate as your current user via UAC. Unfortunately, the standard command prompt doesn’t include that capability — but both third party programs and the built-in PowerShell and WSHell (VBScript) can do so.


Borrowing from my other answer, you can invoke the PowerShell command directly with powershell -c:

powershell -c start -verb runas notepad C:WindowsSystem32driversetchosts

which basically tells PowerShell to run the following (start is aliased to Start-Process):

Start-Process -Verb "runas" notepad C:WindowsSystem32driversetchosts

The trick here is passing the verb runas, triggering UAC.

Neither Start-Process -Verb runas nor the standard cmd runas will pass the current working directory, so always use the full path in any commands you elevate in this fashion.

Also note that some arguments like -c may clash with Start-Process arguments, so the safest way is:

powershell "-c start -verb runas commandname -argumentlist 'arg1 arg2'"

1 Note: this only applies to the user‘s environment variables. Environment variables you set in a parent process are not passed on by UAC! This also applies to runas, and it’s even worse there because you won’t even get the correct user’s vars.

The Runas command enables a user to perform tasks such as running a specific program with different permissions than what is currently available. Admins commonly use it to quickly perform administrative tasks while logged in to a non-admin account.

We’ve detailed how to use the Runas command, common use cases and examples, parameters, and related errors in the article below.

Note: When using the runas command, the admin account you’re trying to access must be secured with a password. If it doesn’t have a password, you’ll encounter an error as shown below.

runas error 1327

How to Use Runas Command as an Administrator

The Runas Command is commonly used with the /user parameter to perform tasks as an administrator. We’ve listed some useful Runas command examples below.

  • First, let’s look at the syntax. You can copy either of the following formats and replace the device and account name with your own credentials:
    Runas /user:AdminAccountName@DeviceName
    Runas /user:DeviceNameAdminAccountName
  • If you’re trying to access a domain administrator account, you should use the DomainName instead, as shown below:
    Runas /user:AdminAccountName@DomainName
    Runas /user:DomainNameDomainAdminName

You can use the runas command to open .exe files, .msc files, Control Panel items, and shortcuts to programs and saved MMC consoles. We’ve listed the syntax to do so and a few examples below.

Note: When prompted for the password, you can enter it freely as it won’t show up on the screen.

Runas Command Parameters

In addition to /user, there are a few other switches that can come in handy. We’ve concisely explained their functions below.

/noprofile – The user’s profile is loaded by default, but this option specifies it shouldn’t be loaded.
/env – This option specifies to use the current network environment instead of the user’s local environment.
/netonly – This option indicates that the specified credentials are for remote access only.
/savecred – This option specifies to use credentials previously saved by the user.
/trustlevel – This option specifies the authorization level to run the program at.
/showtrustlevel – This option lists the trust levels that can be used as arguments to /trustlevel.

We recommend checking Microsoft’s Runas documentation for the full list of parameters.

How to Fix ‘The Requested Operation Requires Elevation’ Error When Using Runas Command?

First, you could use the /showtrustlevel parameter to check if you can elevate the trust level, and if it’s possible, you can do so with the /trustlevel parameter.

In cases where you’re unable to elevate the trust level any higher, you can apply a workaround. You can enable the default admin account with the following command:
net user administrator /active:yes

This account has higher privileges than a user-created admin account, so you’ll be able to use the runas command without any issues.

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer.
His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself.
Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he’s worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader’s problems efficiently.
You can contact him at anup@technewstoday.com

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