<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; PS:Start-Process]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=14696</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14696&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «PS:Start-Process».]]></description>
		<lastBuildDate>Sun, 07 Apr 2019 06:58:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[PS:Start-Process]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=133381#p133381</link>
			<description><![CDATA[<p>Добрый день!! Shell имеет вид&nbsp; - &quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot; --kiosk --incognito --disable-restore-session-state --kiosk printing https://yandex.ru <br />На удалённых ПК сайты разные, возможно ли запустить на удалённой машине параметр shell? Заранее спасибо!</p><div class="codebox"><pre><code>
$computername = &#039;namecomp1&#039; , &#039;namecomp2&#039; 
foreach ($computer in $computername)
{
    $result = Invoke-Command -ComputerName $computer  { (Get-ItemProperty -Path &#039;HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon&#039;-Name Shell).Shell  } 
   $result = ([regex]&#039;(--kiosk.+)&#039;).Replace($result,&#039; &quot;$1&quot;&#039;)   
    Invoke-Command -ComputerName $computer {Start-Process $result}
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sun, 07 Apr 2019 06:58:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=133381#p133381</guid>
		</item>
	</channel>
</rss>
