<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Run as admin and comspec]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10012</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10012&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Run as admin and comspec».]]></description>
		<lastBuildDate>Mon, 13 Oct 2014 07:32:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87298#p87298</link>
			<description><![CDATA[<p>Может продублировать либо пренести эту тему в раздел:<br />&quot;Прочие скриптовые технологии и близкие к ним&quot;?<br />А то обидно - написал скрипт для проверки не полетело ли виндовское зеркало, а он не пашет при залогиненом пользователе - не админе. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" />(((</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 13 Oct 2014 07:32:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87298#p87298</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87141#p87141</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Раз не подходит, лучшее что могу предложить - запускать скомпилированный скрипт с правами администратора.</p></blockquote></div><p> Сам скрипт запускается, а вот в нем прописанный </p><div class="codebox"><pre><code>objExec := objShell.Exec(ComSpec &quot; /C echo list volume | C:\Windows\System32\diskpart.exe&quot;)</code></pre></div><p> уже нет. Что сделать?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 10 Oct 2014 17:14:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87141#p87141</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86926#p86926</link>
			<description><![CDATA[<p>Да, наверное, остановлюсь на этом варианте.<br />Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 01 Oct 2014 11:07:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86926#p86926</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86925#p86925</link>
			<description><![CDATA[<p>Я в Windows XP давно пробовал.<br />В первый раз запросил у меня пароль, а потом перестал запрашивать. Видимо, куда-то сохранил.</p><p>Раз не подходит, лучшее что могу предложить - запускать скомпилированный скрипт с правами администратора.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 01 Oct 2014 09:54:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86925#p86925</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86924#p86924</link>
			<description><![CDATA[<p>Так мне надо, чтоб пароль сразу можно было вписать, а не по запросу.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 01 Oct 2014 08:55:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86924#p86924</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86923#p86923</link>
			<description><![CDATA[<p>Тогда попробуйте RunAs внутри командной строки</p><div class="quotebox"><blockquote><p>RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]<br />&nbsp; &nbsp; &nbsp; &nbsp; /user:&lt;имя пользователя&gt; &lt;программа&gt;</p><p>RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]<br />&nbsp; &nbsp; &nbsp; &nbsp; /smartcard [/user:&lt;имя пользователя&gt;] &lt;программа&gt;</p><p>&nbsp; &nbsp;/noprofile&nbsp; &nbsp; &nbsp; &nbsp; Не загружать профиль пользователя. Это приводит<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;быстрой загрузке приложения, но может стать при<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;неправильной работы некоторых приложений.<br />&nbsp; &nbsp;/profile&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Загружать профиль пользователя.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Этот параметр установлен по умолчанию.<br />&nbsp; &nbsp;/env&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Использовать текущие параметры среды.<br />&nbsp; &nbsp;/netonly&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Учетные данные предназначены только для удаленн<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;доступа.<br />&nbsp; &nbsp;/savecred&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Использовать учетные данные, сохраненные пользо<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Этот параметр не доступен в Windows XP Home Edi<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;и будет проигнорирован.<br />&nbsp; &nbsp;/smartcard&nbsp; &nbsp; &nbsp; &nbsp; Для указания учетных данных используется<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;смарт-карта.<br />&nbsp; &nbsp;/user&nbsp; &nbsp;&lt;имя пользователя&gt; должно быть в виде USER@DOMAIN или DOM<br />&nbsp; &nbsp;&lt;программа&gt;&nbsp; &nbsp; &nbsp; &nbsp;Командная строка для EXE. См. примеры ниже.</p><p>Примеры:<br />&gt; runas /profile /user:mymachine\administrator cmd<br />&gt; runas /profile /env /user:mydomain\admin &quot;mmc %windir%\system32\ds<br />&gt; runas /env /user:user@domain.microsoft.com &quot;notepad \&quot;Мой файл.txt</p><p>Примечание: вводите пароль пользователя только тогда, когда он запра<br />Примечание: формат записи USER@DOMAIN несовместим с параметром /neto<br />Примечание: параметр /profile несовместим с параметром /netonly.</p></blockquote></div><p>В Win7 может отличаться.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 01 Oct 2014 08:32:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86923#p86923</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86922#p86922</link>
			<description><![CDATA[<div class="codebox"><pre><code>RunAs, domainadmin, password
Run, C:\Windows\System32\diskpart.exe</code></pre></div><p>Выдает: </p><div class="quotebox"><blockquote><p>Error Launch error (possibly related to RunAs)<br />Specifically: The requested operation requires elevation.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 01 Oct 2014 08:23:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86922#p86922</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86921#p86921</link>
			<description><![CDATA[<p>Пробовали команду <em>RunAs</em> в AutoHotkey и в самой командной строке?</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 01 Oct 2014 08:00:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86921#p86921</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86920#p86920</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Если нужны права админа, то вы это не решите избавлением от таблички. Права-то всё равно нужны.</p></blockquote></div><p>Вот меня и интересует, возможно ли в скрипте их прописать?<br /></p><div class="quotebox"><blockquote><p>Решить проблему можно с помощью планировщика.</p></blockquote></div><p>Спасибо! Попробую разобраться.<br />А просто в скрипте нельзя прописать, по типу RunAS?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 01 Oct 2014 07:57:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86920#p86920</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86919#p86919</link>
			<description><![CDATA[<p>Решить проблему можно с помощью планировщика. Пароль таки вводить придется, но лишь один раз, при создании задачи. Подробности <a href="http://www.oszone.net/10594#400">тут</a>, способ #4.</p>]]></description>
			<author><![CDATA[null@example.com (Irbis)]]></author>
			<pubDate>Wed, 01 Oct 2014 06:02:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86919#p86919</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86915#p86915</link>
			<description><![CDATA[<p>Если нужны права админа, то вы это не решите избавлением от таблички. Права-то всё равно нужны.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 01 Oct 2014 03:09:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86915#p86915</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Run as admin and comspec]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86914#p86914</link>
			<description><![CDATA[<p>При запуске этого кода в win7 при залогиненом пользователе - не админе выскакивает табличка UAC ввести пароль администратора.<br />Как бы от нее избавиться?<br /></p><div class="codebox"><pre><code>objShell := ComObjCreate(&quot;WScript.Shell&quot;)
objExec := objShell.Exec(ComSpec &quot; /C echo list volume | C:\Windows\System32\diskpart.exe&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 01 Oct 2014 01:54:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86914#p86914</guid>
		</item>
	</channel>
</rss>
