<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>108.bz &#187; OS Internals</title>
	<atom:link href="http://www.108.bz/posts/tag/os-internals/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.108.bz</link>
	<description>Wandering futilities...</description>
	<lastBuildDate>Fri, 27 May 2011 09:08:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Executing processes as the SYSTEM user</title>
		<link>http://www.108.bz/posts/it/executing-processes-as-the-system-user/</link>
		<comments>http://www.108.bz/posts/it/executing-processes-as-the-system-user/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 22:05:08 +0000</pubDate>
		<dc:creator>Giuliano</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[OS Internals]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.108.bz/?p=179</guid>
		<description><![CDATA[On MS Windows operating systems, many processes run under the NT AUTHORITY\SYSTEM account, be them scheduled tasks or services. Sometimes it&#8217;s useful to run cmd.exe as the SYSTEM user and see what&#8217;s going on. Here&#8217;s a nifty trick to do it. C:\Documents and Settings\giuliano&#62;time /t 17:10 C:\Documents and Settings\giuliano&#62;at 17:11 /interactive cmd.exe Added a new [...]]]></description>
			<content:encoded><![CDATA[<p>On MS Windows operating systems, many processes run under the <em>NT AUTHORITY\SYSTEM</em> account, be them scheduled tasks or services.<br />
Sometimes it&#8217;s useful to run <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">cmd.exe</span> as the <em>SYSTEM</em> user and see what&#8217;s going on. Here&#8217;s a nifty trick to do it.</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C:\Documents and Settings\giuliano&gt;time /t<br />
17:10<br />
<br />
C:\Documents and Settings\giuliano&gt;at 17:11 /interactive cmd.exe<br />
Added a new job with job ID = 1<br />
<br />
C:\Documents and Settings\giuliano&gt;</div></div>
<p>Basically you check what time it is and schedule <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">cmd.exe</span> to run on the next minute. You do that by means of the <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;"><a href="http://technet.microsoft.com/en-us/library/bb490866.aspx">at.exe</a></span> OS command.</p>
<p>When the time comes, a Command Prompt window should pop-up. It runs under the <em>SYSTEM</em> account:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Microsoft Windows [Version 5.2.3790]<br />
(C) Copyright 1985-2003 Microsoft Corp.<br />
<br />
C:\WINDOWS\system32&gt;whoami<br />
nt authority\system<br />
<br />
C:\WINDOWS\system32&gt;</div></div>
<p>Each process you run from there, also runs as <em>SYSTEM</em>. If you run <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">regedit.exe</span>, for instance, you can import registry data into the <em>SYSTEM</em> user&#8217;s hive. Today I used this tecnique to export/import Putty&#8217;s settings (they are stored in the registry) in order to make <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;"><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">plink.exe</a></span>, as run from a UPS monitoring Agent, see a pre-configured SSH &#8220;Session&#8221; (hostname, login username, private key, &#8230;). I needed the Agent to shut down a bunch of Linux servers when the battery charge was running low: <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">plink.exe</span> on Windows side and <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">sudo</span> on the Linux one, did the job.</p>
<p>For completness sake, <a href="http://verbalprocessor.com/2007/12/05/running-a-cmd-prompt-as-local-system/">here</a>&#8216;s a post on the same subject. It also deals about Vista/Windows Server 2008 and how to achieve our goal using <a href="http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx">PsExec</a>.</p>
 <img src="http://www.108.bz/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=179" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.108.bz/posts/it/executing-processes-as-the-system-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

