<?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>Remote Administration For Windows &#187; Tools</title>
	<atom:link href="http://www.intelliadmin.com/index.php/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.intelliadmin.com</link>
	<description>Windows Network Administration Software</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:36:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Monitor Folders for Changes</title>
		<link>http://www.intelliadmin.com/index.php/2012/02/monitor-folders-for-changes/</link>
		<comments>http://www.intelliadmin.com/index.php/2012/02/monitor-folders-for-changes/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 13:36:18 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4767</guid>
		<description><![CDATA[In response to monitor your file sharing, Michael sent me a tip about a program that allows you to watch folders for changes: Thought this little freeware tool might be useful for your readers. I use it for monitoring changes on a shared documentation drive used for software installs. Now if someone modifies the documentation, [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2012/02/monitor-folders-for-changes/" title="Permanent link to Monitor Folders for Changes"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Utility.jpg" width="66" height="73" alt="Post image for Monitor Folders for Changes" /></a>
</p><p>In response to <a href="http://www.intelliadmin.com/index.php/2012/02/monitor-your-file-sharing/">monitor your file sharing</a>, Michael sent me a tip about a program that allows you to watch folders for changes:<br />
<i><br />
Thought this little freeware tool might be useful for your readers. I use it for monitoring changes on a shared documentation drive used for software installs.  Now if someone modifies the documentation, I can find out straight away &#038; confirm the changes are correct.</i></p>
<p>It is called DirectoryMonitor.</p>
<p>Once installed, you can easily add folders you want to watch:</p>
<p><img src="http://www.intelliadmin.com/images2/Directory%20Monitor.jpg" alt="Directory Monitor App"></p>
<p>You can determine what changes you want to watch for&#8230;such as a new file, delete, edit, or rename.</p>
<p>Once you register a folder for changes, the change is immediately logged in the main application window:</p>
<p><img src="http://www.intelliadmin.com/images2/Directory%20Monitor%20Changes.jpg" alt="Directory Monitor Changes"></p>
<p>You can even setup an application to execute when a change occurs:</p>
<p><img src="http://www.intelliadmin.com/images2/Execute%20Application%20Dir%20Monitor.jpg" alt="Execute Application On Change"></p>
<p>Some feature do require a donation of $10 or more to be activated&#8230;such as silent execution of apps when an action is triggered.</p>
<p>Otherwise it is free for personal or commercial use.</p>
<p>You can download it from here:</p>
<p><a href="http://www.brutaldev.com/page/Directory-Monitor.aspx">Directory Monitor Download Page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2012/02/monitor-folders-for-changes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Monitor your file sharing</title>
		<link>http://www.intelliadmin.com/index.php/2012/02/monitor-your-file-sharing/</link>
		<comments>http://www.intelliadmin.com/index.php/2012/02/monitor-your-file-sharing/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 18:19:32 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4733</guid>
		<description><![CDATA[I received an email from Jennifer this week: &#8220;Howdy Steve. I want to thank you for all the tips and ideas. I ran across this small utility that I think your readers might like. It is called Share Watch. It lets you keep track of what files and folders are being accessed by remote users&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2012/02/monitor-your-file-sharing/" title="Permanent link to Monitor your file sharing"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Folder.jpg" width="55" height="55" alt="Post image for Monitor your file sharing" /></a>
</p><p>I received an email from Jennifer this week:</p>
<p><em>&#8220;Howdy Steve. I want to thank you for all the tips and ideas. I ran across this small utility that I think your readers might like. It is called Share Watch. It lets you keep track of what files and folders are being accessed by remote users&#8221;<br />
</em></p>
<p>She is right. This little utility is great. </p>
<p>Yes, Windows has a built in share monitoring service:</p>
<p><img src="http://www.intelliadmin.com/images2/Windows%20Share%20Monitor.jpg" alt="Windows Share Monitor"/></p>
<p>But, it is kind of clunky and limited. It really has not changed much since Windows 2000.</p>
<p>What is nice about Share Monitor is that it puts all of the information in one spot:</p>
<p><img src="http://www.intelliadmin.com/images2/Share%20Monitor.jpg" alt="Share Monitor"/></p>
<p>Plus, unlike the windows share monitor&#8230;you can watch a bunch of computers at the same time:</p>
<p><img src="http://www.intelliadmin.com/images2/Share%20Watch%20Multiple.jpg" alt="Share Monitor Multiple Computers"/></p>
<p>It has easy access to information about the computers connecting to a share:</p>
<p><img src="http://www.intelliadmin.com/images2/Share%20Monitor%20Computer%20Properties.jpg" alt="Monitor Windows Share"/></p>
<p>And the files that are currently open across a share:</p>
<p><img src="http://www.intelliadmin.com/images2/Share%20Monitor%20File%20Folder%20Properties.jpg" alt="Share Monitor File Folder Properties"/></p>
<p>Plus, <a href="http://www.intelliadmin.com/index.php/downloads/">like a lot of our utilities</a> &#8211; No install is required. It is one small exe.</p>
<p>Best of all, it is free for personal or commercial use.</p>
<p>Get it from the Share Watch website:</p>
<p><a href="http://stevemiller.net/ShareWatch/">http://stevemiller.net/ShareWatch/</a></p>
<p>PS: If you run it under Vista, or Windows 7&#8230;make sure you right click and run it as administrator or you will get access denied.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2012/02/monitor-your-file-sharing/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Automatically disable wireless when Ethernet is available</title>
		<link>http://www.intelliadmin.com/index.php/2012/01/automatically-disable-wireless-when-ethernet-is-available/</link>
		<comments>http://www.intelliadmin.com/index.php/2012/01/automatically-disable-wireless-when-ethernet-is-available/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 15:53:02 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4641</guid>
		<description><![CDATA[Got a question from Enrico, &#8220;Good morning Steve, and Happy New Year!&#8230;I would like that when the user has a wired NIC up and running, the wireless NIC is automatically disabled, and as soon as the wired NIC disconnects, the wireless NIC activates. This prevents the user to have both NICs up and running at [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2012/01/automatically-disable-wireless-when-ethernet-is-available/" title="Permanent link to Automatically disable wireless when Ethernet is available"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Network.jpg" width="55" height="55" alt="Post image for Automatically disable wireless when Ethernet is available" /></a>
</p><p>Got a question from Enrico,</p>
<p><em>&#8220;Good morning Steve, and Happy New Year!&#8230;I would like that when the user has a wired NIC up and running, the wireless NIC is automatically disabled, and as soon as the wired NIC disconnects, the wireless NIC activates. </p>
<p>This prevents the user to have both NICs up and running at the same time and above all prevents wireless access points to collapse for too many unneeded simultaneous connections.&#8221;<br />
</em></p>
<p>Awesome question Enrico.</p>
<p>There are other reasons for wanting this too. If you have both connections running, things like file transfers, or anything that needs the extra speed of Ethernet&#8230;might end up going through the wireless instead.</p>
<p>For this question, I have created a VB Script that will receive the names of the two network cards in its command line parameters.</p>
<p>For example, if you look at your network connections:</p>
<p><img src="http://www.intelliadmin.com/images/Network%20Connections.jpg" alt="Network Connections"/></p>
<p>See the descriptions for them? That is what you will use to identify them.</p>
<p>If you wanted to watch the &#8220;Local Area Connection&#8221; adapter&#8230;and then switch the &#8220;Wireless Connection&#8221; Adapter, you would call the script like this:</p>
<p><img src="http://www.intelliadmin.com/images/Net%20Switch%20Example.jpg" alt="Watch Ethernet Example"/></p>
<p>The program will not display anything, but run in the background looking for the change. It will continue to run until the user logs out.</p>
<p>If the Local Area Connection is no longer connected, it will automatically enable the Wireless connection.</p>
<p>The reverse is true&#8230;if Local Area Connection becomes available, it will automatically disable the wireless connection.</p>
<p>The best place to run the script would be from a group policy computer configuration logon script (Not a user configuration) because it will run as local system and have the proper permission to enable and disable network cards.</p>
<p>You can get the script from here:</p>
<p>For 2003, Vista, Windows 7, and 2008:<br />
<a href="http://www.intelliadmin.com/NetSwitch.dat">NetSwitch.dat</a></p>
<p>For Windows XP:</p>
<p><a href="http://www.intelliadmin.com/NetSwitchXP.dat">NetSwitchXP.dat</a></p>
<p>Just rename to NetSwitch.vbs after downloading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2012/01/automatically-disable-wireless-when-ethernet-is-available/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Burn a folder to a DVD from the command line</title>
		<link>http://www.intelliadmin.com/index.php/2012/01/burn-to-a-folder-command-line/</link>
		<comments>http://www.intelliadmin.com/index.php/2012/01/burn-to-a-folder-command-line/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 04:33:44 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4592</guid>
		<description><![CDATA[This week we have a question from Melissa: &#8220;Hi Steve. Got a really quick question. Previously you had an article that showed how to burn an ISO from the command line. My question is, what about a folder? I want to simply burn a folders contents to a DVD once a week. Any simple way [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2012/01/burn-to-a-folder-command-line/" title="Permanent link to Burn a folder to a DVD from the command line"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/command.jpg" width="64" height="54" alt="Post image for Burn a folder to a DVD from the command line" /></a>
</p><p>This week we have a question from Melissa:</p>
<p><em>&#8220;Hi Steve. Got a really quick question. Previously you had <a href="http://www.intelliadmin.com/index.php/2009/08/burn-dvds-and-cds-from-the-command-line/">an article that showed how to burn an ISO from the command line</a>. My question is, what about a folder? I want to simply burn a folders contents to a DVD once a week. Any simple way to do this?&#8221;<br />
</em></p>
<p>Good question Melissa. I too have been looking for something like this. </p>
<p>Most of the DVD/CD burning software is not free. </p>
<p>That is not a big problem&#8230;but I would think that the simple process of copying a folder to a DVD or CD shouldn&#8217;t cost me $49!</p>
<p>So what to do? Have the IntelliAdmin team make one for you!</p>
<p>This first version we wanted to be as simple as possible, so it only does one thing: Burn a folder to a disk.</p>
<p>-You specify a drive, and a folder.</p>
<p>-It burns it and closes the session on the drive</p>
<p>-If it fails, the program will return 1</p>
<p>-If it succeeds the program will return 0</p>
<p>This means you can create conditional statements in a batch file too.</p>
<p>How do you use it?</p>
<p>Once you grab it from our <a href="http://www.intelliadmin.com/index.php/downloads/">downloads page</a> you can call it like this from the command line:</p>
<p><code>BurnDisk.exe E: C:\Backup</code></p>
<p>Where &#8216;E:&#8217; is the DVD/CD drive letter, and C:\Backup is the folder you want to back up.</p>
<p>It will automatically set the volume name to the current date. It will then zip through your specified folder and burn the contents to the CD or DVD:</p>
<p><img src="http://www.intelliadmin.com/images/Burn%20Disk%20Command%20Line.jpg" alt="Write CD DVD from the command line"/></p>
<p>You can use the ERRORLEVEL value for conditional statements in your batch file (Like send you an email if it fails)</p>
<p>Here is an example bat file that checks the result of the BurnDisk.exe output:<br />
<code><br />
@ECHO OFF</p>
<p>REM Backup our files to DVD or CD ROM</p>
<p>burndisk.exe e:\ c:\Backup</p>
<p>REM Check our result</p>
<p>IF %ERRORLEVEL%==0 goto COMPLETE</p>
<p>REM ERROR HANDLING HERE</p>
<p>:COMPLETE<br />
</code></p>
<p>This is version 1.0 so it is quite simple &#8211; but for many situations I think it will work perfect. </p>
<p>Let us know what &#8220;Must Have&#8221; features you want to see in 1.1</p>
<p>It has been tested on Windows Vista, 2008, and 7. It should work on 2003 and XP (With the latest patches) but we have not had a chance to try it on those platforms yet.</p>
<p>Get it from our <a href="http://www.intelliadmin.com/index.php/downloads/">downloads page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2012/01/burn-to-a-folder-command-line/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Reset the printer spooler remotely</title>
		<link>http://www.intelliadmin.com/index.php/2011/12/reset-the-printer-spooler-remotely/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/12/reset-the-printer-spooler-remotely/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 20:51:15 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Network Administrator]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4546</guid>
		<description><![CDATA[I got a question from Lewis this week: &#8220;I hope this email finds you well. I have a plotter here at my company, and the driver is really temperamental. At least twice a week the driver crashes, and then all of the jobs get stuck in the spooler. To fix it I need to stop [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/12/reset-the-printer-spooler-remotely/" title="Permanent link to Reset the printer spooler remotely"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Printer.jpg" width="112" height="99" alt="Post image for Reset the printer spooler remotely" /></a>
</p><p>I got a question from Lewis this week:</p>
<p><em>&#8220;I hope this email finds you well. I have a plotter here at my company, and the driver is really temperamental. At least twice a week the driver crashes, and then all of the jobs get stuck in the spooler. To fix it I need to stop the spooler service, delete all the jobs and start the service again. Is there any easy way to do this remotely with a script? Have a Merry Christmas Steve, and thanks for all the tips&#8221;</em></p>
<p>Good question. A script in this case won&#8217;t always work. This is because with Vista, Windows 7, and 2008 the print spooler folder is restricted. Only the system account can access it. </p>
<p>A way around this is to use our Network Administrator tool. It will remotely execute the script in the system account context.</p>
<p>This is how the script would look if we wanted to stop the print spooler, delete the files, and start it again:<br />
<code><br />
net stop spooler<br />
del %systemroot%\System32\spool\printers\*.shd /q<br />
del %systemroot%\System32\spool\printers\*.spl /q<br />
net start spooler<br />
</code></p>
<p>.shd, and .spl files are print job files. If you delete them, it will wipe away any pending jobs. </p>
<p>You could put this into a bat file, and simply use the remote execute option of Network Administrator. To make it a smoother experience, we created a plugin that will handle everything for you:</p>
<p><img src="http://www.intelliadmin.com/images/Printer%20Spooler%20Reset%20Option.jpg" alt="Reset Printer Remotely"/> </p>
<p>You can also tell it if you want to delete all the pending jobs:</p>
<p><img src="http://www.intelliadmin.com/images/Reset%20Printer%20Delete%20Option.jpg" alt="Reset Printer Delete Optio"/></p>
<p>This can be quite helpful if you have a huge backlog of print jobs:</p>
<p><img src="http://www.intelliadmin.com/images/Printer%20Queue%20Stuck.jpg" alt="Printer Queue Stuck"/></p>
<p>Using Network Administrator to do this is quicker than manually deleting the jobs since it does not have to talk back and forth with the printer driver to do it.</p>
<p>Get your free copy from our download page:</p>
<p><a href="http://www.intelliadmin.com/index.php/downloads/">http://www.intelliadmin.com/index.php/downloads/</a></p>
<p>The free version is free for commercial and personal use. No spyware or adware &#8211; only software goodness.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/12/reset-the-printer-spooler-remotely/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Get notified when an IP changes</title>
		<link>http://www.intelliadmin.com/index.php/2011/12/get-notified-when-an-ip-changes/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/12/get-notified-when-an-ip-changes/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 16:46:39 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Free]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4523</guid>
		<description><![CDATA[I got a question from John this week: &#8220;A few of my clients are using a broadband connection with DHCP addresses for the public interface. Do you know of a script or program that can be used to monitor the IP address and send a email if the IP address changes?&#8221; Good question. It is [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/12/get-notified-when-an-ip-changes/" title="Permanent link to Get notified when an IP changes"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Command.jpg" width="64" height="54" alt="Post image for Get notified when an IP changes" /></a>
</p><p>I got a question from John this week:</p>
<p>&#8220;A few of my clients are using a broadband connection with DHCP addresses for the public interface. Do you know of a script or program that can be used to monitor the IP address and send a email if the IP address changes?&#8221;</p>
<p>Good question. It is possible to get IP address lists from VB Script, but we happen to have a utility we have used internally for quite some time. It is called &#8220;MyIP.exe&#8221;</p>
<p>MyIP.exe has two options. You can get a current list of IP addresses like this:</p>
<p><CODE>MyIP.exe /list</code></p>
<p>It will return a list of your current IP addresses to the command line:</p>
<p><code>C:\temp>myip /list<br />
10.10.29.231<br />
192.168.68.1<br />
192.168.198.1</code></p>
<p>The second option is /wait. It will pause until it sees an IP change. When the change happens it will pause for 15 seconds to allow any DHCP addressing to settle down, and then finally return the result to the command line.</p>
<p>How do we set this up to email when we detect an IP change?</p>
<p>We can use <a href="http://www.blat.net/">blat</a>. Blat is a tool for sending email from the command line. </p>
<p>Here is how I would structure a bat file to use both programs:<br />
<code><br />
:Loop<br />
@ECHO OFF<br />
ECHO IP Address Change > status.log<br />
ECHO ========================= >> status.log<br />
ECHO The computer %COMPUTERNAME% has had an IP address change >> status.log<br />
ECHO This is the new IP list: >> status.log<br />
MyIP.exe /wait >> status.log<br />
blat.exe -f support@intelliadmin.com -to support@intelliadmin.com -server mysmtp.server.com -subject "IP Change" -bodyF status.log<br />
ECHO "Waiting for IP Change..."<br />
goto loop</code></p>
<p>What is going on in the code above?</p>
<p>First we build up a file called status.log. It is filled with the body of our email. It contains everything except our list of changed IP addresses. Then MyIP.exe will wait until a change happens - when it does, those IPs are written to the end of status.log</p>
<p>Finally, blat sends out the text file with the subject "IP Change". When that is done, it loops back around to wait for a change all over again.</p>
<p>One important thing to note about SMTP - Many internet providers are blocking send from port 25 by default, except to their own email servers. So make sure you test the script out before depending on it.</p>
<p>MyIP.exe can be found in our downloads section:</p>
<p><a href="http://www.intelliadmin.com/index.php/downloads/">http://www.intelliadmin.com/index.php/downloads/</a></p>
<p>Blat can be found here:</p>
<p><a href="http://www.blat.net/">http://www.blat.net/</a></p>
<p>One final note. Most likely you want this IP address information because you need to remote into their computer from time to time. Our <a href="http://www.intelliadmin.com/index.php/enterprise-remote-control/">Enterprise Remote control</a> has this functionality built in. It will automatically track all IP address changes on remote machines, and you only need a username to find their computer! - Might save you a lot of time and trouble:) </p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/12/get-notified-when-an-ip-changes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create a menu for your batch file</title>
		<link>http://www.intelliadmin.com/index.php/2011/11/create-a-menu-for-your-batch-file/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/11/create-a-menu-for-your-batch-file/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 16:46:14 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[BAT Files]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4494</guid>
		<description><![CDATA[I got a question from Justin this week: &#8220;Hi steve, Have a few scripts that I use for regular admin work. I want to combine them with a simple menu. I was wondering if there was an easy way to make a menu in a batch file.&#8221; Yes there is Justin, and it is actually [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/11/create-a-menu-for-your-batch-file/" title="Permanent link to Create a menu for your batch file"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/command.jpg" width="64" height="54" alt="Post image for Create a menu for your batch file" /></a>
</p><p>I got a question from Justin this week:</p>
<p><em>&#8220;Hi steve,</p>
<p>Have a few scripts that I use for regular admin work. I want to combine them with a simple menu. I was wondering if there was an easy way to make a menu in a batch file.&#8221;<br />
</em></p>
<p>Yes there is Justin, and it is actually quite simple.</p>
<p>The SET command is perfect for this. When you call SET /P from the command line it will take a line of input and set it to a variable.</p>
<p>So if you had three options in your batch file like this:<br />
<code><br />
echo Press 1 for Option1<br />
echo Press 2 for Option2<br />
echo Press 3 for Option3<br />
echo Press 4 to Exit<br />
</code></p>
<p>You could put the set command right after it:<br />
<code><br />
set /P OPT=Please make a selection and press enter</code></p>
<p>This would print the text &#8220;Please make a selection..&#8221; and then store the users input after they press enter &#8211; into the %OPT% variable.</p>
<p>Once that happens we can use a few if statements to conditionally execute. </p>
<p>Here is it all together:</p>
<p><code></p>
<p>@ECHO OFF<br />
CLS<br />
ECHO 1 - Option 1<br />
ECHO 2 - Option 2<br />
ECHO 3 - Option 4<br />
ECHO 4 - Exit</p>
<p>SET /P OPT=Please make a selection, and press enter:</p>
<p>if %OPT%==1 GOTO OPTION1<br />
if %OPT%==2 GOTO OPTION2<br />
if %OPT%==3 GOTO OPTION3</p>
<p>GOTO EXIT</p>
<p>:OPTION1</p>
<p>ECHO Executing option1!</p>
<p>GOTO EXIT</p>
<p>:OPTION2</p>
<p>ECHO Executing option2!</p>
<p>GOTO EXIT</p>
<p>:OPTION3</p>
<p>ECHO Executing option3!</p>
<p>GOTO EXIT</p>
<p>:EXIT<br />
</code></p>
<p>Save the file as menu.bat and run it</p>
<p>That is all there is to it.  </p>
<p>Just change the echo statements to the batch commands you want to execute for each option, and you have an easy to use menu from the command line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/11/create-a-menu-for-your-batch-file/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Admin shortcuts without the annoying prompt</title>
		<link>http://www.intelliadmin.com/index.php/2011/11/admin-shortcuts-without-the-annoying-prompt/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/11/admin-shortcuts-without-the-annoying-prompt/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 05:33:05 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4465</guid>
		<description><![CDATA[Don&#8217;t know about you, but I have a few programs that I use through the day that require administrator access. This means every time I launch, I get the annoying UAC prompt: There is a simple trick to create a shortuct that will launch with no prompts. You can do it by creating a task [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/11/admin-shortcuts-without-the-annoying-prompt/" title="Permanent link to Admin shortcuts without the annoying prompt"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Utility.jpg" width="66" height="73" alt="Post image for Admin shortcuts without the annoying prompt" /></a>
</p><p>Don&#8217;t know about you, but I have a few programs that I use through the day that require administrator access.</p>
<p>This means every time I launch, I get the annoying UAC prompt:</p>
<p><img src="http://www.intelliadmin.com/images/UAC%20Prompt%20CMD.jpg" alt="UAC Prompt"></p>
<p>There is a simple trick to create a shortuct that will launch with no prompts.</p>
<p>You can do it by creating a task that is never scheduled to run, but it is started by your shortcut.</p>
<p>To get started, go into the control panel, then administrative tools, and finally task scheduler.</p>
<p>On the right, pick the option to create a new task:</p>
<p><img src="http://www.intelliadmin.com/images/Create%20Task%20Admin%20With%20No%20UAC.jpg" alt=""/></p>
<p>Give it a name (Take note of this, you will need this later) and make sure you select the option that will run the program with the highest privileges.</p>
<p><img src="http://www.intelliadmin.com/images/Admin%20WIth%20No%20Prompt%20Page%201.jpg" alt=""/></p>
<p>Go to the actions tab, and add a new action:</p>
<p><img src="http://www.intelliadmin.com/images/Admin%20Cmd%20Path%20No%20Prompt.jpg" alt=""/></p>
<p>Point it at the program you want to launch with your shortcut.</p>
<p>Before closing it all out, take a peek at the conditions tab and uncheck any power options that are selected:</p>
<p><img src="http://www.intelliadmin.com/images/Prompt%20UAC%20Options.jpg" alt=""/></p>
<p>Now that we have our task, we just need to create our shortcut.</p>
<p>Right click on the desktop and select the option to create a new shortcut.</p>
<p>In the path put:</p>
<p><code>schtasks.exe /run /tn "[NAME]"</code></p>
<p>Where [NAME] is the name of your task</p>
<p><img src="http://www.intelliadmin.com/images/Admin%20No%20UAC%20Shortcut.jpg" alt=""/></p>
<p>Now when you launch your app, you don&#8217;t get the annoying prompt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/11/admin-shortcuts-without-the-annoying-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatically logoff inactive users</title>
		<link>http://www.intelliadmin.com/index.php/2011/11/automatically-logoff-inactive-users/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/11/automatically-logoff-inactive-users/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 18:09:14 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4439</guid>
		<description><![CDATA[I got a question from Tracy this week: &#8220;Hi Steve. Love all the tools and tips you keep sending our way. Got a question. Is there any easy way to logoff a user when they are not active for say, 15 Minutes?&#8221; I spoke with Tracy further to explain that forcing a logoff could cause [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/11/automatically-logoff-inactive-users/" title="Permanent link to Automatically logoff inactive users"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Command.jpg" width="64" height="54" alt="Post image for Automatically logoff inactive users" /></a>
</p><p>I got a question from Tracy this week:</p>
<p>&#8220;Hi Steve. Love all the tools and tips you keep sending our way. Got a question. Is there any easy way to logoff a user when they are not active for say, 15 Minutes?&#8221;</p>
<p>I spoke with Tracy further to explain that forcing a logoff could cause data loss.</p>
<p>For example, a user has a Word document open and they walk away. Then boom the forced logoff happens and their document is gone.</p>
<p><img src="http://www.intelliadmin.com/images/Word%20In%20The%20Trash.jpg" alt="MS Word in the trash"/></p>
<p>In her case she needs it for public facing kiosks. If one of the technicians walks away, it leaves the system wide open. </p>
<p>Locking the workstation for this situation is bad too &#8211; since it makes it so the customer cannot use the machine.</p>
<p>Did some googling and found some hacks that used chopped up screen savers that would activate, and then call some logoff code.</p>
<p>Didn&#8217;t like that. So I had the team build a little app that would just logoff or lock idle users.</p>
<p>Here is how it works, you call the program like this:</p>
<p><code>idlelogoff.exe [timeout] [action]</p>
<p><b>timeout</b> - The number of idle seconds before the action is taken</p>
<p><b>action</b> - [logoff / lock] You can lock the workstation or log the user off<br />
</code><br />
If you wanted a user to get booted off after 5 minutes (300 Seconds) of no activity, You would call it like this:</p>
<p><code>idlelogoff.exe 300 LOGOFF</code></p>
<p>Or, if you wanted it to lock the workstation after 30 seconds of no activity this would do the trick</p>
<p><code>idlelogoff.exe 30 LOCK</code></p>
<p>It has some sanity checking for the timeout. Anything less than 10 seconds is set to 10 seconds.</p>
<p>Call it from the users startup script to make sure it is active while they are logged in.</p>
<p>Get it from our downloads page:</p>
<p><a href="http://www.intelliadmin.com/index.php/downloads/">http://www.intelliadmin.com/index.php/downloads/</a></p>
<p>It is free for personal and commercial use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/11/automatically-logoff-inactive-users/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Cron Service for Windows</title>
		<link>http://www.intelliadmin.com/index.php/2011/11/cron-service-for-windows/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/11/cron-service-for-windows/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 17:49:48 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Windows 2000]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4392</guid>
		<description><![CDATA[If you spend any amount of time working with Unix, you will come across Cron and the CronTab file. What is it? Cron allows you to schedule programs to run at specified intervals, like every Sunday at 1AM. Now I can already hear it&#8230;&#8221;Steve, that is what the task scheduler is for in Windows&#8221; While [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/11/cron-service-for-windows/" title="Permanent link to Cron Service for Windows"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Utility.jpg" width="66" height="73" alt="Post image for Cron Service for Windows" /></a>
</p><p>If you spend any amount of time working with Unix, you will come across Cron and the CronTab file.</p>
<p>What is it? </p>
<p>Cron allows you to schedule programs to run at specified intervals, like every Sunday at 1AM.</p>
<p><img src="http://www.intelliadmin.com/images/Alarm%20Clock.jpg" alt="Alarm Clock"/></p>
<p>Now I can already hear it&#8230;&#8221;Steve, that is what the task scheduler is for in Windows&#8221;</p>
<p>While it is true you can schedule tasks in Windows, one big issue with task scheduler is how do you transfer scheduled tasks from one computer to another?</p>
<p>You could copy the folder c:\windows\tasks, but this is totally unsupported and it does not always work.</p>
<p>That is the beauty of Cron. Every bit of scheduling info is contained within the Crontab file. </p>
<p>If you want a group of servers to have the same scheduled jobs, you just need to sync this file. No registry hacks, no tricks. Just one file.</p>
<p>Not only that, since it is just a simple text file you can easily schedule jobs from PHP, PowerShell or VBScript&#8230;without any ActiveX or hooks into Windows. You just need to modify a simple text file.</p>
<p>There are a few Windows implementations out there&#8230;but most of them are quite old. We wanted something that would work on 2000 through 2008 x64 &#8211; so we built our own <img src='http://www.intelliadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To use it, download the setup file from our downloads page:</p>
<p><a href="http://www.intelliadmin.com/index.php/downloads/">http://www.intelliadmin.com/index.php/downloads/</a></p>
<p>The install does not create any icons, or shortcuts. It installs all the application files into <code>c:\program files\IntelliAdmin\Cron</code> by default, and automatically starts the cron service (Named icronsvr).</p>
<p><img src="http://www.intelliadmin.com/images/IntelliAdmin%20Cron%20Service.jpg" alt="IntelliAdmin Cron Service"/></p>
<p>There are two files for configuration, they are both in the same folder as the service.</p>
<p>The first to look at is the file config.cfg:<br />
<code><br />
[Configuration]<br />
status_enabled=true<br />
status_handler=<br />
path=<br />
</code></p>
<p>Here is what each option does:</p>
<p><b>status_enabled (true/false)</b> &#8211; If set to true, each time a program is executed it is logged to a file named status.log in the same folder as the service</p>
<p><b>status_handler</b> &#8211; If set to point to an executable file, it is executed each time a process is run. The first argument is the status text shown in status.log. (Example usage of this would be to send an email each time a process is executed by cron..using a bat file and a command like tool <a href="http://www.blat.net/">blat</a>)</p>
<p><b>path</b> &#8211; An alternative path for the crontab file. By default the service looks for the crontab in the same folder as the service. Setting this tells the service to look at the specified folder for the crontab file</p>
<p>The next is the actual crontab file. It roughly follows the same format as the <a href="http://en.wikipedia.org/wiki/Cron">Unix crontab</a></p>
<p>The file is formatted in this way:</p>
<p>[M] [H] [D] [M] [DOW] [Process Name] [Process Arguments]</p>
<p>M &#8211; The minute that the process should be executed (0-59)<br />
H &#8211; The hour that the process should be executed (0-23)<br />
D &#8211; The day that the process should be executed (1-31)<br />
M &#8211; The month that the process should be executed (1-12)<br />
DOW &#8211; The day of the week that the process should be executed (0-6 Sunday = 0, Monday = 1, Etc)</p>
<p><b>Note:</b> <i>Our format does not support names such as THU, or JAN&#8230;only numerical values</i></p>
<p>Each section can:</p>
<p>-Have a range of values like this: 12-24 (All items from 12 to 24)<br />
-Have a list of values like this: 12,13,14,15<br />
-Include all possible values like this: *<br />
-Skip values using the / like this: 0-59/5 (This would only include 0,5,10,15,20,etc)</p>
<p>Lets put it all together. If we wanted a process to run every 5 minutes we would create a line like this in our crontab file:</p>
<p><code>*/5 * * * * c:\process.bat</code></p>
<p>See how the skip value works? We specified the * for the minute section (All minutes), and then told it to skip 5. This means it will run at 0, 5, 10, 15, 20, etc.</p>
<p>If you wanted to run a process every Sunday at 1 pm:</p>
<p><code>00 01 * * 00 c:\process.bat</code></p>
<p>Or how about, only every Sunday from June to the end of the year:</p>
<p><code>00 01 * 06-12 00 c:\process.bat</code></p>
<p>At 15, and 30 minutes past every hour:</p>
<p><code>15,30 * * * * c:\process.bat</code></p>
<p>This might give you a clearer picture:</p>
<pre>
*     *     *   *    *     C:\SomeEXE.EXE ARG1 ARG2 ARG3
-     -     -   -    -
|     |     |   |    |
|     |     |   |    +----- day of week (0 - 6) (Sunday=0)
|     |     |   +------- month (1 - 12)
|     |     +--------- day of        month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
</pre>
<p>It takes a little time to get used to the format, but once you do it is a breeze to work with.</p>
<p>A few things to think about when using this:</p>
<p>-Make sure you secure the crontab file by only allowing &#8216;System&#8217; and Administrator write access. Otherwise a standard user could simply alter the crontab file and start running stuff as &#8216;System&#8217;</p>
<p>-The programs are run in the context of a service. By default the user account is &#8216;System&#8217;, and for security reasons it does not have network share access. If you want to allow access to network shares you would have to go into the settings of the IntelliAdmin Cron Service, and have it login as a user with the appropriate rights.</p>
<p>-Since it is a service, make sure your program does not pop up forms or message boxes&#8230;otherwise they will just get stuck and you will never see them. Test&#8230;test&#8230;test before you deploy.</p>
<p>If you have any other features you would like to add to this little tool, let us know and we will see what we can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/11/cron-service-for-windows/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

