<?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>Teh Tech &#187; Security</title>
	<atom:link href="http://tehtech.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://tehtech.com</link>
	<description>Being an Admin is Hard Enough</description>
	<lastBuildDate>Wed, 14 Jul 2010 16:14:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Scripted Enumeration of Accounts with Local Admin Rights</title>
		<link>http://tehtech.com/sripted-enumeration-of-accounts-with-local-admin-rights/</link>
		<comments>http://tehtech.com/sripted-enumeration-of-accounts-with-local-admin-rights/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 16:15:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Kaseya]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Local Admin]]></category>

		<guid isPermaLink="false">http://tehtech.com/?p=333</guid>
		<description><![CDATA[Beefing up security on networks keeps you from having issues in the long run. An hour today can save you three later. In a effort to improve network security and individual computer security I came up with this fancy little kaseya script.  It enumerates the local administrators on a computer and exports them to a [...]]]></description>
			<content:encoded><![CDATA[<p>Beefing up security on networks keeps you from having issues in the long run. An hour today can save you three later. In a effort to improve network security and individual computer security I came up with this fancy little kaseya script.  It enumerates the local administrators on a computer and exports them to a text file named whatever the target computer has been named. This can also be run through a batch login script. In the example below &#8220;g:&#8221; is a admin share on my local server, you can make this what ever you want or use a get file in kaseya to snatch the text file from the computer.</p>
<p><span id="more-333"></span><br />
[ad]</p>
<div class="box">Script Name: Get Local Administrators<br />
Script Description: Enumerates what users are members of the local admin group.<br />
IF True<br />
THEN<br />
Execute Shell Command<br />
Parameter 1 : net localgroup administrators &gt;&gt; <span style="color: #ff0000;">gadmin_audit</span>%computername%.txt<br />
Parameter 2 : 1<br />
OS Type : 0<br />
ELSE</div>
<p>Here is the same thing in a batch file with mapping a share:</p>
<div class="box">Net use g: <span style="color: #ff0000;">\server01admin_share</span><br />
net localgroup administrators &gt;&gt; <span style="color: #ff0000;">gadmin_audit</span>%computername%.txt<br />
net use g: /delete</div>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://tehtech.com/sripted-enumeration-of-accounts-with-local-admin-rights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding ‘Lock My Computer’ Shortcut to The Desktop</title>
		<link>http://tehtech.com/adding-lock-my-computer-shortcut-to-the-desktop/</link>
		<comments>http://tehtech.com/adding-lock-my-computer-shortcut-to-the-desktop/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 01:14:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Kaseya]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Lock]]></category>

		<guid isPermaLink="false">http://tehtech.com/?p=287</guid>
		<description><![CDATA[In a effort to increase security at one of my healthcare providers they requested a quick way their employees can lock their computers when they walk away from their computers.  I found Mklnk, it is a very tiny free utility that lets you make shortcuts from command line.  I decided to use this to accomplish this task.  I [...]]]></description>
			<content:encoded><![CDATA[<p>In a effort to increase security at one of my healthcare providers they requested a quick way their employees can lock their computers when they walk away from their computers.  I found <a title="mklnk" href="http://smithii.com/mklnk" target="_blank">Mklnk,</a> it is a very tiny free utility that lets you make shortcuts from command line.  I decided to use this to accomplish this task.  I did some research and found that the following command will lock your computer.</p>
<div class="box">rundll32.exe user32.dll,LockWorkStation</div>
<p><span id="more-287"></span><br />
So I used this with mklnk.exe to make a shortcut on the users desktop, with a lock icon.  Below is the batch file I used.  G: is a network share containing mklnk.exe.</p>
<div class="box">g:mklnk.exe -a user32.dll,LockWorkStation -i %SystemRoot%system32SHELL32.dll -n 47 %SystemRoot%system32rundll32.exe &#8220;%ALLUSERSPROFILE%DesktopLock&#8221;</div>
<p>What this does it it passes the arguments user32.dll,LockWorkStation to the rundll32.exe, and the result is a shortcut on the all user desktop called &#8220;lock&#8221; that uses shell icon 47 (a cute lock graphic).</p>
<p>To use this with kaseya you have to upload mklnk.exe to the kserver, and then import the following script.  Be sure to change the <span style="color: #ff0000;">red</span> to match the location you have uploaded mklnk.exe.</p>
<div class="box">Script Name: Lock Computer Icon on Desktop<br />
Script Description: Creates a Lock icon on the all user desktop silently </p>
<p>IF True<br />
THEN<br />
Execute Shell Command<br />
Parameter 1 : md c:temp<br />
Parameter 2 : 0<br />
OS Type : 0<br />
Write File<br />
Parameter 1 : c:tempmklnk.exe<br />
Parameter 2 : <span style="color: #ff0000;">adminutilmklnk.exe</span><br />
OS Type : 0<br />
Execute Shell Command<br />
Parameter 1 : c:tempmklnk.exe -a user32.dll,LockWorkStation -i %SystemRoot%system32SHELL32.dll -n 47 %SystemRoot%system32rundll32.exe &#8220;%ALLUSERSPROFILE%DesktopLock My Computer&#8221;<br />
Parameter 2 : 1<br />
OS Type : 0<br />
Delete File<br />
Parameter 1 : c:tempmklnk.exe<br />
OS Type : 0<br />
ELSE</div>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://tehtech.com/adding-lock-my-computer-shortcut-to-the-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
