System Policies for the restriction of MS-DOS

Системные политики для ограничения MS-DOS

The article is dedicated to the System Policies destined for the restriction of MS-DOS.
When developing the operating system, the Microsoft Corporation encounters all the time the next dilemma. On the one hand the need to provide with the backward compatibility with the previous operating systems and programs, developed for them, including MS-DOS. On the other hand, the urgent demand to get rid of the very MS-DOS to provide secure and stable functioning, to design operating system with genuine multitasking and correct resource sharing. The literal reading of the abbreviation, which gives the name to system registry key storing the policies destined for the MS-DOS restriction: "WinOldApp" - Old Windows Applications. Корпорация Microsoft при разработке операционных систем все время сталкивается со следующей дилеммой. С одной стороны, это потребность в обеспечении совместимости с предшествовавшими операционными системами и программами разработанными под них, в том числе совместимостью с MS-DOS. С другой стороны, с настоятельной потребностью избавиться от той же MS-DOS для обеспечения безопасной и стабильной работы, для построения подлинно многозадачной системы и корректного разделения в ней ресурсов. Об этом же говорит расшифровка аббревиатуры, дающей название ключа системного реестра, который хранит политики предназначенные для ограничения MS-DOS: "WinOldApp" -"устаревшие приложения Windows".
Time by time, the administrator faces the need to forbid the users to launch the MS-DOS applications or reboot the computer to the single MS-DOS mode, while conducting the administration of either net client or servers. При администрировании как сетевых клиентов Windows, так и серверов время от времени у администратора возникает необходимость запрета для пользователей запуска DOS-приложений или перезагрузки компьютера в монопольном режиме MS-DOS.
I deliver few thoughts to ensure the benefits of the policies, which are resorted to for MS-DOS restriction in Windows systems. Для обоснования полезности политик, к которым прибегают для ограничения использования MS-DOS в Windows системах, приведу несколько соображений.
The 16-bit Windows applications are unsecured for the safety and stability of the working under Windows systems. While the most of the MS-DOS applications are finely performed simultaneously in the 32-bit Windows environment, some MS-DOS applications demand the monopoly access to the system resources for the performance. The Virtual Machine Manager (VMM) creates the system environment with the exclusive rights, so-called the Single MS-DOS mode. When MS-DOS application is launched in the MS-DOS mode, it is gained the exclusive rights for the system resources and no other applications or processes have any rights to access the system resources. Therefore the MS-DOS applications are also the threat because of the possible capture of the control over the system resources. Besides, the MS-DOS prohibition disables execution of the game programs, designed for MS-DOS, which distract from job, and are often, like other computer games, potential virus containers. Для безопасности и стабильности систем работающих под Windows, опасны 16-битные Windows приложения. В то время как большинство MS-DOS- приложений могут прекрасно работают в среде 32-битных Windows вместе с другими 16-битными и 32-битными Windows-приложениями, отдельные MS-DOS-приложения требуют для работы монопольного доступа к системным ресурсам. Для такого приложения Менеджер виртуальных машин (VMM) создает системное окружение с исключительными правами, так называемый режим MS-DOS. Когда DOS приложение запущено в монопольном режиме MS-DOS, оно получает исключительные права на системные ресурсы и никакие другие приложения или процессы не имеют права доступа к системным ресурсам. Поэтому DOS-приложения также представляют угрозу из-за возможного захвата контроля над системными ресурсами. Кроме этого запрет MS-DOS не даст запускать игровые программы, разработанные под MS-DOS, которые отвлекают от работы и, часто как, впрочем, и все игрушки являются носителями вирусов.
To tell the truth, all above-given argumentation, like the system policies, developed by Microsoft for the MS-DOS restriction are no more than palliation. Хотя вся аргументация, приведенная выше, как и системные политики, разработанные Microsoft для ограничения MS-DOS всего лишь полумера.

Disable MS-DOS Command Prompt

Запрет командной строки MS-DOS

This policy prohibits the MS-DOS Command Prompt usage in Windows or launch of the MS-DOS applications from within the Windows shell. Эта политика запрещает использование командной строки MS-DOS в Windows или запуск DOS-приложений из оболочки Windows.
The state of this system policy is stored in the numeric value "NoRealMode", which is located in the same system registry branch as above-described value: "Software\Microsoft\Windows\ CurrentVersion\ Policies\WinOldApp" in the hive HKEY_CURRENT_USER. The value equals to "1" stands for the prohibition of the MS-DOS launch in the Single mode. The value "0", which is default state, or its absence removes the prohibition of the Single MS-DOS mode. За состояние этой системной политики отвечает целочисленный параметр "Disabled" хранящийся в разделе HKEY_CURRENT_USER системного реестра в ветви "Software\Microsoft\Windows\ CurrentVersion\ Policies\WinOldApp". Значение параметра равное "1" вводит ограничение на запуск MS-DOS приложений, значение "0" или отсутствие параметра есть состояние "по умолчанию" и снимает этот запрет.
While attempting the DOS application launch or "MS-DOS Command Prompt" activation using the icon containing the link to the command interpreter "COMMAND.COM", Windows gives out the message that the administrator prohibits the launch. I do not deliver the literal message text, which is varied depending on the Windows version. При попытке запуска DOS-приложения или активизации "командной строки MS-DOS" через иконку содержащую ссылку на командный интерпретатор (процессор) "COMMAND.COM", Windows выдает сообщение, о запрете запуска администратором. Я не привожу буквальное содержание сообщения, которое варьируется в зависимости от версии Windows.

Disable Single Mode MS-DOS Applications

Запрет запуска в монопольном режиме MS-DOS приложений

This policy is intended for the prohibition of the Windows reboot to the Single MS-DOS mode. Its state does not affect the usage of MS-DOS Command Prompt in Windows or the MS-DOS applications launch from within the Windows shell. Эта политика нацелена на запрет перегрузки из Windows в монопольный режим MS-DOS ("Single Mode"). Состояние этой политики не влияет на использование командной строки MS-DOS в Windows или запуск приложений MS-DOS из оболочки Windows.
The state of this system policy is stored in the numeric value "NoRealMode", which is located in the same system registry branch as above-described value: "Software\Microsoft\Windows\ CurrentVersion\ Policies\WinOldApp" in the hive HKEY_CURRENT_USER. The value equals to "1" stands for the prohibition of the MS-DOS launch in the Single mode. The value "0", which is default state, or its absence removes the prohibition of the Single MS-DOS mode. Состояние этой системной политики хранится в целочисленном параметре "NoRealMode", который находится в той же ветви системного реестра, что и описанный выше: "Software\Microsoft\Windows\ CurrentVersion\ Policies\WinOldApp" в разделе HKEY_CURRENT_USER. Значение параметра равное "1" отвечает за запрет на запуск MS-DOS в монопольном режиме ("Single Mode"). Значение параметра "0" являющееся "значением по умолчанию" или его отсутствие снимает запрет монопольного режима MS-DOS.
When this policy is enabled in Windows 95/98 the menu item "Restart in MS-DOS mode" is removed from the "Shut Down" dialog box. However, it must be noted here, that this does not prohibit entirely the MS-DOS launch in the Single mode. The Single MS-DOS mode can be entered, while Windows booting by clicking F8 key and than selecting any item, which contains the "Command Prompt". При активизации этой системной политики в Windows 95/98 из диалога "Завершение работы" ("Shut Down") убирается пункт меню "Перезагрузить компьютер в режиме MS-DOS" ("Restart in MS DOS mode"). Однако, здесь же стоит отметить, что это не запрещает полностью запуск монопольного режима MS-DOS. В него можно зайти, нажав при первоначальной загрузке Windows клавишу F8 и выбрав далее один из пунктов содержащих запуск в "командной строке".
In Windows ME and later this value can be stored in the system registry in two hives: HKEY_CURRENT_USER and in HKEY_LOCAL_MACHINE hive, and spreads the scope either on the Local Machine or Current User respectively. There is no conflict between the policies having the different scopes: any policy disables the Single MS-DOS mode. В Windows версии ME и поздних этот параметр может храниться в реестре в двух разделах: в разделе HKEY_CURRENT_USER и в разделе HKEY_LOCAL_MACHINE и распространять область действия либо на весь "Компьютер" (Local Machine), либо на "Текущего пользователя" (Current User) соответственно. Конфликта между политиками, имеющими разную область действия, не возникает: любая политика отменяет монопольный режим MS-DOS.
Another attempt to get rid of MS-DOS was undertaken in Windows ME - the menu item "Restart in MS-DOS mode" was removed from the "Shut Down" dialog box in a difference from the Windows 9.x. However, it inherits a lot o interface from the previous versions. That is why, the policy "Disable Single Mode MS-DOS Applications" applied on the Local Machine is used to remove some unnecessary elements. If deleting the value from the system registry has disabled this policy, there will be an interesting effect: the menu item "Restart in MS-DOS mode" will appear in the "Shut Down" dialog box. But an attempt to reboot to MS-DOS gives nothing; there will be the message explaining that this version of Windows does not support the MS-DOS mode. В Windows ME предпринята еще одна попытка покончить c MS-DOS - в диалоге "Завершение работы" ("Shut Down"), в отличие от Windows 9.x, убран пункт "Перезагрузить компьютер в режиме MS-DOS". Однако она унаследовала значительную часть интерфейса от предыдущих версий. Поэтому политика для запрета запуска в монопольном режиме MS-DOS , примененная на весь "Компьютер" (Local Machine), используется для того, чтобы убрать часть ненужных элементов. Получается интересный эффект: если деактивировать эту системную политику путем удаления параметра из системного реестра, то в диалоге "Завершение работы" ("Shut Down") появляется пункт меню "Перезагрузить компьютер в режиме MS-DOS". Но, попытка перезагрузки в MS-DOS ничего не дает, выдается сообщение о том, что эта версия Windows не поддерживает монопольный режим MS-DOS.
Valient Newman

Publications Top Page Projects