<?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; Command Line</title>
	<atom:link href="http://www.intelliadmin.com/index.php/category/command-line/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>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>Get Windows to Remember Network Share Passwords</title>
		<link>http://www.intelliadmin.com/index.php/2011/07/get-windows-to-remember-network-share-passwords/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/07/get-windows-to-remember-network-share-passwords/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 21:13:43 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4061</guid>
		<description><![CDATA[We have a fax server here that drops all of its incoming faxes to a shared folder. Unfortunately, because of the way it was designed it cannot be joined to our local domain. This means it has its own local account, and every time I reboot a username and password has to be entered to [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/07/get-windows-to-remember-network-share-passwords/" title="Permanent link to Get Windows to Remember Network Share Passwords"><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 Windows to Remember Network Share Passwords" /></a>
</p><p>We have a fax server here that drops all of its incoming faxes to a shared folder. Unfortunately, because of the way it was designed it cannot be joined to our local domain.</p>
<p>This means it has its own local account, and every time I reboot a username and password has to be entered to access it.</p>
<p><img src="http://www.intelliadmin.com/images/Cache%20Windows%20Share%20Passwords.jpg" alt="Cache Windows Share Passwords"/></p>
<p>I wanted to find a way to allow me to access the drive without having to enter a username and password.</p>
<p>After some searching, I found a command line tool built into Windows that will do this:</p>
<p><code>cmdkey</code></p>
<p>This will allow you to store multiple username and password combinations for different network resources, while keeping them encrypted in the registry.</p>
<p>So, in my case I have a fax server on 10.10.27.231, and its username is fax, the password is fax.</p>
<p>To add it to Windows simply type this at the command line:</p>
<p><code>cmdkey /add:10.10.27.231 /user:fax /pass:fax<br />
</code></p>
<p>If you wanted to remove it from the cache, you would call it like this:</p>
<p><code>cmdkey /delete:10.10.27.231<br />
</code></p>
<p>Also, you can get a list of the currently remembered ones like this:</p>
<p><code>cmdkey /list<br />
</code></p>
<p>A simple command line tool, but saves you the aggravation of typing that in every time you reboot &#8211; Nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/07/get-windows-to-remember-network-share-passwords/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Create a conditional batch file &#8211; Based on OS, or Computer Name</title>
		<link>http://www.intelliadmin.com/index.php/2011/07/create-a-conditional-batch-file-based-on-os-or-computer-name/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/07/create-a-conditional-batch-file-based-on-os-or-computer-name/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 17:03:40 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[BAT Files]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Free]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=4048</guid>
		<description><![CDATA[I got a question from one of our customers this week, &#8220;Is there a way to run profile generator based on its workstation name? We want cached mode activated for laptops but not desktops. Or can you advise how this can be determined with the batch file?&#8221; Actually we have had a tool internally that [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/07/create-a-conditional-batch-file-based-on-os-or-computer-name/" title="Permanent link to Create a conditional batch file &#8211; Based on OS, or Computer Name"><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 conditional batch file &#8211; Based on OS, or Computer Name" /></a>
</p><p>I got a question from one of our customers this week,</p>
<p><i>&#8220;Is there a way to run <a href="http://www.intelliadmin.com/index.php/profile-generator/">profile generator</a> based on its workstation name? We want cached mode activated for laptops but not desktops. Or can you advise how this can be determined with the batch file?&#8221;</i></p>
<p>Actually we have had a tool internally that we have used for a long time. I decided to clean it up, and add it to our free tools.</p>
<p>It is called &#8220;IsComputer.exe&#8221; and you can get it from our <a href="http://www.intelliadmin.com/index.php/downloads/">downloads page</a></p>
<p>Here is how it works. You can give it two conditions &#8211; The version of Windows, or the name of the computer. </p>
<p>Lets say I want part of my script to only run on computers that are not Vista and above (Windows 2003, XP, and 2000) and start with the name LAPTOP:</p>
<p><code>IsComputer /name:LAPTOP* /os:CLASSIC</code></p>
<p>Or, I want it to only run on Windows 2003 computers:</p>
<p><code>IsComputer /OS:Windows2003</code></p>
<p>Or, maybe just computers that have &#8216;server&#8217; in their name:</p>
<p><code>IsComputer /Name:*server*</code></p>
<p>Those are just a few options &#8211; a complete list of options can be viewed by running it from the command line. </p>
<p>How do we get it to work with our batch file?</p>
<p>If a condition matches, the program will return 1. If it does not match it will return 0. Here is how we can create a simple script that will output &#8216;hello&#8217; if we have a match:</p>
<p><code>@echo off<br />
IsComputer /OS:Classic /quiet /name:rack*<br />
if ERRORLEVEL 1 goto RUN_SCRIPT<br />
if ERRORLEVEL 0 goto EXIT_SCRIPT</p>
<p>:RUN_SCRIPT</p>
<p>REM Your conditional batch statements would go here</p>
<p>echo Hello</p>
<p>:EXIT_SCRIPT<br />
</code></p>
<p>This example script will output &#8216;hello&#8217; if the computer is running Windows 2003, and the name of the computer starts with &#8216;rack&#8217;. </p>
<p>You could put the batch file commands you want to execute right where the &#8220;echo hello&#8221; statement is. </p>
<p>Got a question, or an idea for a free tool? Let me know by mailing <a href="mailto:support@intelliadmin.com">support@intelliadmin.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/07/create-a-conditional-batch-file-based-on-os-or-computer-name/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Backup up IIS from the command line</title>
		<link>http://www.intelliadmin.com/index.php/2011/06/backup-up-iis-from-the-command-line/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/06/backup-up-iis-from-the-command-line/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 13:00:23 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=3835</guid>
		<description><![CDATA[Trying something new this week &#8211; got a video version of this weeks tip: Got a question from Linda this week, &#8220;Steve. We have quite a few IIS based web servers and each of them has their own custom configuration. I know how to backup all the files, but is there any way to backup [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/06/backup-up-iis-from-the-command-line/" title="Permanent link to Backup up IIS 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 Backup up IIS from the command line" /></a>
</p><p>Trying something new this week &#8211; got a video version of this weeks tip:</p>
<p><iframe width="425" height="349" src="http://www.youtube.com/embed/sUbLCL5h9Yg" frameborder="0" allowfullscreen></iframe></p>
<p>Got a question from Linda this week,</p>
<p>&#8220;Steve. We have quite a few IIS based web servers and each of them has their own custom configuration. I know how to backup all the files, but is there any way to backup and restore IIS settings from the command line? &#8221;</p>
<p>Great question. When using IIS, you eventually get lots of custom settings hiding in there:</p>
<p><img src="http://www.intelliadmin.com/images/IIS%20Main%20View%20201106.jpg" alt="IIS Main View"/></p>
<p>IIS Stores all of these settings in what as known as the metabase. It keeps track of the home directory, ISAPI filters, what type of files it will process, etc. How to we back this up?</p>
<p>You can back it up manually from the IIS manager:</p>
<p><img src="http://www.intelliadmin.com/images/IIS%20Backup%20Manual%20201106.jpg" alt="Manual Backup"/></p>
<p>But this has a major flaw. It just backs it up to a hidden file on your hard drive. Sure you can find this, and pull it off &#8211; but that takes some digging. That won&#8217;t help you much when the server is smoking and you want to get another one in its place right away.</p>
<p>How can we automate this process, and be able to grab the file and do what we want with it?</p>
<p>By using a little known VBS file that is included with Windows</p>
<p>It is called IISCnfg.vbs</p>
<p>Before we can use it, get to a command line and type IISCnfg and then enter.</p>
<p>It will give you an error, and then ask if you want to default to use CScript.exe instead of VBScript.exe for your VB Scripts.</p>
<p><img src="http://www.intelliadmin.com/images/CScript%20Required%20201106.jpg" alt="CScript Required"/></p>
<p>Once you say yes, you can start calling it from your batch files or the command line.</p>
<p>There are many options to iiscnfg, but there are a few things that we will require:</p>
<p>-We want to export the settings<br />
-We want all the settings, so we will start at the root and include the children<br />
-We need to set a password on the exported file, or it won&#8217;t work on another server (Feature or bug &#8211; you decide)<br />
-We want to export the file to a specific location, not the metabase storage area</p>
<p>So here are those requirements translated into arguments:</p>
<p><code>iiscnfg /export /sp /lm /children /inherited /d [password] /f c:\backup\IISMetabase.bak</code></p>
<p>The [password] is the password the file will be encrypted with. You will need this to restore it, so don&#8217;t forget it!</p>
<p>/sp (Source Path) indicates where in the IIS structure you want to start the backup /lm is at the top of this (I believe lm stands for local machine&#8230;someone please write a comment below if I am wrong)</p>
<p>So the above code will take our entire structure and back it up to c:\backup\IISMetabase.bak and then encrypt that file with the password [password] </p>
<p>Put that in your batch file used for backups and you can pull that config any time you want. Keep in mind this only backs up your configuration. Not the files that make up your website or ftp sites.</p>
<p>Later, a new VP of IT walks in and starts plunking around on your web servers</p>
<p><img src="http://www.intelliadmin.com/images/VP%20Messing%20With%20IIS.jpg" alt="VP Messing with IIS"/></p>
<p>After he &#8220;improved&#8221; the system, how do you restore the settings?</p>
<p>You get that metabase file from your backups, and import it using a very similar command line:</p>
<p><code>iiscnfg /import /dp /lm /sp /lm /children /inherited /d [password] /f c:\backup\IISMetabase.bak</code></p>
<p>Note the /dp (Destination Path) and /sp (Source path). In my example they point to the same place &#8211; the top of the IIS settings tree. </p>
<p>Notice the password &#8211; it must be the same as the one used to back it up. If you forgot it your hosed. If you forgot to even set a password you might be OK&#8230;as long as it is the same system. Otherwise again, your hosed.</p>
<p>That is all there is to it. One line to backup, and one line to restore. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/06/backup-up-iis-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Notify users when their password expires</title>
		<link>http://www.intelliadmin.com/index.php/2011/05/notify-users-when-their-password-expires/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/05/notify-users-when-their-password-expires/#comments</comments>
		<pubDate>Fri, 06 May 2011 16:33:57 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[BAT Files]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=3282</guid>
		<description><![CDATA[I have been getting lots of questions from everyone, and that is great This week I got a question from Charles, &#8220;Hello Steve, I have a problem, I need to run a VB Script that will tell users that their password needs to be changed in x days. The Windows 7 balloon is not effective, [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/05/notify-users-when-their-password-expires/" title="Permanent link to Notify users when their password expires"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Command.jpg" width="64" height="54" alt="Post image for Notify users when their password expires" /></a>
</p><p>I have been getting lots of questions from everyone, and that is great</p>
<p>This week I got a question from Charles,</p>
<p><i>&#8220;Hello Steve, </p>
<p>I have a problem, I need to run a VB Script that will tell users that their password needs to be changed in x days. The Windows 7 balloon is not effective, and users miss it. Also, I do not want it to slow down the login.  So what options do I have left?&#8221;<br />
</i></p>
<p>This is an excellent question. Other versions of windows might not even tell you. </p>
<p>For example: A user could leave their system on for days and days, and then cross the threshold of the password expiration date &#8211; suddenly nothing works for them.</p>
<p>You know what that means &#8211; another call to the help desk!</p>
<p><img src="http://www.intelliadmin.com/images/Help%20Desk%20Call%20201105.jpg" alt="Help Desk Call"/></p>
<p>I have a good trick to filling all of your requirements. I have translated them to:</p>
<p>1. Make sure the users logon is swift, and not interrupted by a password expiration notice (Especially because windows just told them about it!)</p>
<p>2. While they are using windows, make it clear that their password expired. Don&#8217;t depend on Windows to properly notify them.</p>
<p>3. Do all of this from a script, no extra programs required</p>
<p>I think we can make that happen. First, we need a script to see if and when the users password expires. I found one <a href="http://msdn.microsoft.com/en-us/library/ms974598.aspx">that Microsoft has provided</a>, and I have modified it to suit our needs. </p>
<p>The script has one function &#8211; PasswordDaysLeft. You call it, and it returns the number of days left before the password expires. If the function returns 99999 then the password never expires.</p>
<p>For example, if we wanted to know that in 10 days or less the password would expire, we would call it like this:<br />
<code><br />
if (PasswordDaysLeft() <= 10) then<br />
&nbsp;MsgBox("Your password will expire in " &#038; PasswordDaysLeft() &#038; " days!")<br />
end if<br />
</code></p>
<p>So now we have the ability to check for password expiration. But what about the original request? We don't want it to pop up at startup, but later. </p>
<p>Here is how we can get our script to do that:</p>
<p>We will loop in our script, and only check every 5 minutes. In addition, we will only start checking 20 minutes after the user logs in:<br />
<code><br />
'Sleep for 20 minutes<br />
WScript.Sleep(20 * 1000 * 60)</p>
<p>bRunning = TRUE<br />
'20 minutes is up, check every 5 min to see if password is too old<br />
while (bRunning)<br />
&nbsp;if (PasswordDaysLeft() <= 10) then<br />
&nbsp;MsgBox("Your password is about to expire. Please log off right now and change it")<br />
&nbsp;bRunning = FALSE<br />
&nbsp;end if<br />
&nbsp;WScript.Sleep(5 * 1000 * 60)<br />
wend<br />
</code></p>
<p>This will stay running until the password expires, or the user shuts down or logs off. Once the user is notified, it will exit and not bother them again.</p>
<p>Now we have most of what we need:</p>
<p>-A function that tells us how many days before a password expires<br />
-A script to check it. </p>
<p>How do we get it to run in the background?</p>
<p>That is easy. From the users logon bat file we call our VB Script like this:</p>
<p><code>start wscript \\server\share\PasswordExpires.vbs</code></p>
<p>This tells the BAT file to fire up our script, but not to wait for it.</p>
<p>So here is what happens:</p>
<p>The user logs in, the script is launched into the background. It silently waits for 20 minutes, and then on 5 minute intervals it checks if the password expired. If it did, then the user gets a notification and it quits.</p>
<p>It think that covers everything. The logon is quick, since it launches our script in the background and lets the user get right to their business. </p>
<p>You can download the zip file with the VBS file, and an example BAT logon script here:</p>
<p><a href="http://www.intelliadmin.com/PasswordExpires.zip">http://www.intelliadmin.com/PasswordExpires.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/05/notify-users-when-their-password-expires/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Backup Outlook from the command line</title>
		<link>http://www.intelliadmin.com/index.php/2011/04/backup-outlook-from-the-command-line/</link>
		<comments>http://www.intelliadmin.com/index.php/2011/04/backup-outlook-from-the-command-line/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 13:54:48 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[BAT Files]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2003]]></category>
		<category><![CDATA[Exchange 2007]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/?p=3256</guid>
		<description><![CDATA[Jennifer, sent me a question last week: Steve, Got a question for you. I have a small network of about 10 laptops. All of my users store their email in PST files in Outlook. I want to have an icon on their desktop that they can click to backup Outlook before they leave for the [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2011/04/backup-outlook-from-the-command-line/" title="Permanent link to Backup Outlook from the command line"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/Email.jpg" width="55" height="55" alt="Post image for Backup Outlook from the command line" /></a>
</p><p>Jennifer, sent me a question last week:</p>
<p><i>Steve, </p>
<p>Got a question for you. I have a small network of about 10 laptops. All of my users store their email in PST files in Outlook. I want to have an icon on their desktop that they can click to backup Outlook before they leave for the weekend. Is there any easy way to do this?</p>
<p>Thanks,</p>
<p>Jen<br />
</i><br />
Yes, There is a way to do this. Now it is not foolproof, but it will work most of the time.</p>
<p><img src="http://www.intelliadmin.com/images/Outlook%20Backup%20Command%20Line.jpg"/></p>
<p>First, we need our script to close Outlook, that way the PST files will not be in use. </p>
<p>We will accomplish this with a little bit of VB Script:<br />
<code><br />
Set Outlook = CreateObject("Outlook.Application")<br />
Outlook.Quit<br />
Set Outlook = Nothing<br />
</code></p>
<p>Save this as &#8220;CloseOutlook.vbs&#8221;</p>
<p>Now, we will use this script, in combination with a bat file. The bat file will run CloseOutlook.vbs, and then copy the PST files.</p>
<p>Most of the time PST files are located in the users AppData folder. We can use an environment variable to find this. </p>
<p>It is called %LOCALAPPDATA%. For our backup, we will copy it to a share named backup, and we will copy it to a folder matching the users name.</p>
<p>The copy command will look like this:<br />
<code><br />
COPY %LOCALAPPDATA%\Microsoft\Outlook\*.pst \\server\backup\%USERNAME% /y<br />
</code><br />
/y &#8211; This allows us to overwrite without being prompted.</p>
<p>So, we have both things that we need. The ability to close Outlook (So the user does not have to remember to do this), and a way to find and copy our PST files.</p>
<p>Here is what the final bat file would look like</p>
<p><code><br />
cscript.exe CloseOutlook.vbs<br />
COPY %LOCALAPPDATA%\Microsoft\Outlook\*.pst \\server\backup\%USERNAME% /y<br />
@if errorlevel 1 goto ERROR_HANDLER<br />
@goto SUCCESS<br />
:ERROR_HANDLER<br />
@echo "==================="<br />
@echo "=  Backup Failed  =<br />
@echo "==================="</p>
<p>@goto exit<br />
:SUCCESS<br />
@echo "==================="<br />
@echo "= Backup Complete =<br />
@echo "==================="</p>
<p>:EXIT<br />
pause<br />
</code><br />
I added an error handler, so the user will be notified if the copy could not complete.</p>
<p>Save it as BackupOutlook.bat and throw it on their desktop. </p>
<p>Now your users can backup their PST files &#8211; If they remember to do it <img src='http://www.intelliadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2011/04/backup-outlook-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create a bootable flash drive</title>
		<link>http://www.intelliadmin.com/index.php/2010/10/create-a-bootable-flash-drive/</link>
		<comments>http://www.intelliadmin.com/index.php/2010/10/create-a-bootable-flash-drive/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 16:35:27 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Boot]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/index.php?p=2736</guid>
		<description><![CDATA[I came across an interesting utility called UNetbootin. It allows you to create bootable USB drives for many flavors of linux &#8211; but the part that interested me was the additional utilities you could write to a flash drive: Parted Magic &#8211; a partition manager that can resize, repair, backup, and restore partitions. SystemRescueCD &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.intelliadmin.com/index.php/2010/10/create-a-bootable-flash-drive/" title="Permanent link to Create a bootable flash drive"><img class="post_image alignleft remove_bottom_margin" src="http://www.intelliadmin.com/icons/FlashDrive.jpg" width="55" height="53" alt="Post image for Create a bootable flash drive" /></a>
</p><p>I came across an interesting utility called UNetbootin. It allows you to create bootable USB drives for many flavors of linux &#8211; but the part that interested me was the additional utilities you could write to a flash drive:</p>
<p><b>Parted Magic</b> &#8211; a partition manager that can resize, repair, backup, and restore partitions.</p>
<p><b>SystemRescueCD</b> &#8211; a system repair, backup and recovery tool.<br />
Super Grub Disk &#8211; a boot utility that can restore and repair overwritten and misconfigured GRUB installs or directly boot various operating systems</p>
<p><b>Dr.Web Antivirus, F-Secure Rescue CD, and Kaspersky Rescue Disk</b> &#8211; which remove malware from Windows installs.<br />
Backtrack, a utility used for network analysis and penetration testing.</p>
<p><b>Ophcrack</b> &#8211; a utility which can recover Windows passwords.</p>
<p><b>NTPasswd</b> &#8211; a utility which can reset Windows passwords and edit the registry.</p>
<p><b>Gujin</b> &#8211; a graphical bootloader that can also be used to boot various operating systems and media.</p>
<p><b>Smart Boot Manager (SBM)</b> &#8211; which can boot off CD-ROM and floppy drives on computers with a faulty BIOS.</p>
<p><b>FreeDOS</b> &#8211; which can run BIOS flash and other legacy DOS utilities.</p>
<p>There are many utilities like this. This one stood out because it automatically downloads all the files needed &#8211; no need to dig around and find the ISO. </p>
<p>Simply download the app, and run it:</p>
<p><img src="http://www.intelliadmin.com/images/Boot%20Flash%20Drive%20Application.jpg" alt="Boot Flash Drive"/></p>
<p>Make your selection:</p>
<p><img src="http://www.intelliadmin.com/images/Boot%20Flash%20Drive%20Application%20Selection.jpg" alt="Boot Flash Drive Application List"/></p>
<p>Click OK, and it will build your flash drive:</p>
<p><img src="http://www.intelliadmin.com/images/Boot%20Flash%20Drive%20Progress.jpg" alt="Boot Flash Drive Progress"/></p>
<p>Once it is complete, you can boot from it.</p>
<p>Awesome little utility &#8211; perfect for making a rescue flash drive that you can bring with you to family events&#8230;when you get that &#8220;Could you look at my computer&#8230;&#8221; question.</p>
<p>Check it out at:</p>
<p><a href="http://unetbootin.sourceforge.net/">http://unetbootin.sourceforge.net/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2010/10/create-a-bootable-flash-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Windows Update on a DVD</title>
		<link>http://www.intelliadmin.com/index.php/2009/09/get-windows-update-on-a-dvd/</link>
		<comments>http://www.intelliadmin.com/index.php/2009/09/get-windows-update-on-a-dvd/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 15:00:41 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Patches]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/blog/?p=940</guid>
		<description><![CDATA[I was reading an article at PCMag about PatchMateXP. They have had all the patches for XP on one convenient CD. Unfortunately for PatchMateXP, this breaks a license with Microsoft and they shut themselves down before they got into legal trouble. This got me thinking &#8211; is there a way to get MS Updates on [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I was reading an <a href="http://blogs.pcmag.com/securitywatch/2009/09/microsoft_says_no_again_to_win.php">article</a> at PCMag about <a href="http://www.patchmate.net/">PatchMateXP.</a> They <del datetime="2009-09-16T14:43:17+00:00">have</del> had all the patches for XP on one convenient CD.</p>
<p>Unfortunately for PatchMateXP, this breaks a license with Microsoft and they shut themselves down before they got into legal trouble.</p>
<p>This got me thinking &#8211; is there a way to get MS Updates on DVD or CD?</p>
<p>My findings were quite interesting.</p>
<p>After tons of digging, I found this Microsoft Knowledge base article: <a href="http://support.microsoft.com/kb/913086">913086</a></p>
<p>At that link, Microsoft provides ISO files that contain all of the security updates by month. They update it regularly.</p>
<p>This works fine if you are already patched up, and just need a few months. What if you need all of the patches for Vista, XP, or 2003? That won&#8217;t really help.</p>
<p>I dug some more, and I came across a free utility called Offline Update. You can <a href="http://www.h-online.com/security/Offline-Update--/features/112953">download it from here</a>.</p>
<p>It allows you to create an ISO file with patches for a specific version of Windows. It gets around those pesky legal issues by having you download the patches to generate the ISO file.</p>
<p>To use it, download the package from the above website, and extract it into a folder. In the root directory you will find a program named UpdateGenerator.exe</p>
<p>Launch it, and you will see that it has a simple, but effective interface:</p>
<p><a href="http://www.intelliadmin.com/images/Offline%20Update%206.jpg"><img border=0 src="http://www.intelliadmin.com/images/Offline%20Update%206%20Small.jpg" alt="Offline Update 6"></a></p>
<p>It even includes patches for Office &#8211; a nice bonus.</p>
<p>Select the patches you want, and click start.</p>
<p>A command line window will popup and it will download for hours or days, but eventually it will finish.</p>
<p>When it completes, you will find the completed ISO file in the folder named ISO under the root:</p>
<p><img src="http://www.intelliadmin.com/images/Offline%20Update%20ISO.jpg" alt="Offline Update ISO"></p>
<p>In my case it was the 64 bit version of 2003/XP patches.</p>
<p>Want to know the coolest part?</p>
<p>The ISO it builds is more than a collection of patches, it includes a custom program that will automatically install all of them in one shot.</p>
<p>Simply pop your burned DVD into the drive, and a window will show up:</p>
<p><img src="http://www.intelliadmin.com/images/Offline%20Update%20Program.jpg" alt="Offline Update Program"></p>
<p>Don&#8217;t be confused by the list of options, it is just giving you a choice on non-patch items included in the ISO.</p>
<p>If you just want the patches, simply select nothing and click start. It will only install the patches that have not been installed on your system:</p>
<p><a href="http://www.intelliadmin.com/images/Offline%20Install%20Patches.jpg"><img src="http://www.intelliadmin.com/images/Offline%20Install%20Patches%20Small.jpg" alt="Offline Install Patches" border=0></a></p>
<p>That is all there is to it. The program will install all of the patches, reboot, and the system is up to date.</p>
<p>Now, I can burn that ISO, and give it to my friend Brett, since he lives in an Internet dead zone.</p>
<p>This little utility can be a huge time saver. I highly recommend it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2009/09/get-windows-update-on-a-dvd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monitor Network Traffic</title>
		<link>http://www.intelliadmin.com/index.php/2009/07/monitor-network-traffic/</link>
		<comments>http://www.intelliadmin.com/index.php/2009/07/monitor-network-traffic/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 21:34:03 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.intelliadmin.com/blog/?p=827</guid>
		<description><![CDATA[Last week I wrote about a free tool from Microsoft for synchronizing files. I asked you if you had any tools that made your life easier &#8211; my inbox was filled with suggestions. One of the free tools that really caught my eye was Microsoft Network Monitor. I have been using Ethereal for a long [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Last week I wrote about a <a href="http://www.intelliadmin.com/blog/index.php/2009/07/free-file-sync-tool-from-microsoft/">free tool from Microsoft</a> for synchronizing files. I asked you if you had any tools that made your life easier &#8211; my inbox was filled with suggestions.</p>
<p>One of the free tools that really caught my eye was Microsoft Network Monitor. I have been using <a href="http://www.Ethereal.com">Ethereal</a> for a long time. It too is a great tool for monitoring network traffic.</p>
<p>Microsoft network Monitor 3.3 gives it a run for its money. Some quick points that make me like it:</p>
<p>It identifies processes that are generating the traffic:</p>
<p><img src="http://www.intelliadmin.com/images/Microsoft%20Network%20Monitor%20Tree%20View.jpg" alt="Process View"></p>
<p>It includes a ton of parsers that can pull out common protocols like HTTP, SMB, FTP, etc. These make it much easier to read what you are looking it:</p>
<p><img src="http://www.intelliadmin.com/images/Microsoft%20Network%20Monitor%20Parsers.jpg" alt="Network Monitor Parsers"></p>
<p>Easy selection of network cards to monitor:</p>
<p><img src="http://www.intelliadmin.com/images/Microsoft%20Network%20Monitor%20Select%20Networks.jpg" alt="Select Network Cards"></p>
<p>It has an extensive filtering system to weed out packets you are not interested in:</p>
<p><img src="http://www.intelliadmin.com/images/Microsoft%20Network%20Monitor%20Filter.jpg" alt="Network Filters"></p>
<p>In addition, it has many command line options to automate it without any interaction.</p>
<p>Check it out at:</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=983b941d-06cb-4658-b7f6-3088333d062f&#038;displaylang=en">Microsoft Network Monitor 3.3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2009/07/monitor-network-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete files securely</title>
		<link>http://www.intelliadmin.com/index.php/2009/05/delete-files-securely/</link>
		<comments>http://www.intelliadmin.com/index.php/2009/05/delete-files-securely/#comments</comments>
		<pubDate>Thu, 14 May 2009 03:38:02 +0000</pubDate>
		<dc:creator>Steve Wiseman</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysinternals]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 2000]]></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/blog/?p=651</guid>
		<description><![CDATA[Since 2000 every version of Windows uses object reuse protection. When you create a file, the space on the hard drive for that file will be zeroed out. Another way of looking at this is when a file is created, Windows will make it impossible to see what was there before. But what about right [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Since 2000 every version of Windows uses object reuse protection. When you create a file, the space on the hard drive for that file will be zeroed out.</p>
<p>Another way of looking at this is when a file is created, Windows will make it impossible to see what was there before.</p>
<p>But what about right after you delete a file? Nothing has been written to that space yet. What is on the physical hard drive? The entire file of course. Not good if the file is highly confidential.</p>
<p>What if you wanted to delete a file securely?</p>
<p>There are plenty of tools out there that can do this, and most of them cost quite a bit of money. But there is a free alternative.</p>
<p>It is called SDelete and it is from Microsoft:</p>
<p><a href="http://download.sysinternals.com/Files/SDelete.zip">http://download.sysinternals.com/Files/SDelete.zip</a></p>
<p>How does it work?</p>
<p>Simply download the program and run it from the command line. By default it will only complete 1 pass when erasing a file. I would suggest overriding that with a higher number &#8211; the higher the better, but it will be slower.</p>
<p>Lets delete a file with it, using 25 passes:<br />
<font style="font-family: Courier New, Courier, monospace; color: blue"><br />
sdelete.exe -p 25 FileToDelete.zip</font></p>
<p>This will securely delete FileToDelete.zip</p>
<p>SDelete implements the Department of Defense clearing and sanitizing standard DOD 5220.22-M. This will give you confidence that once deleted with this tool, your file is gone forever. Note that it does delete the file, but the file name is still recoverable from the file system (Make sure the file name itself does not have any revealing information).</p>
<p>The full list of possible commands for SDelete are:<br />
<font style="font-family: Courier New, Courier, monospace; color: blue"><br />
usage: sdelete [-p passes] [-s] [-q] <file or directory><br />
       sdelete [-p passes] [-z|-c] [drive letter]<br />
   -c         Zero free space (good for virtual disk optimization)<br />
   -p passes  Specifies number of overwrite passes (default is 1)<br />
   -q         Don&#8217;t print errors (Quiet)<br />
   -s         Recurse subdirectories<br />
   -z         Clean free space<br />
</font></p>
<p>It supports wildcards too. So if you wanted to securely delete an entire folder you can call it like this:<br />
<font style="font-family: Courier New, Courier, monospace; color: blue"><br />
C:\>sdelete c:\temp\*.*</p>
<p>SDelete &#8211; Secure Delete v1.51<br />
Copyright (C) 1999-2005 Mark Russinovich<br />
Sysinternals &#8211; www.sysinternals.com</p>
<p>SDelete is set for 1 pass.<br />
c:\temp\Eula.txt&#8230;deleted.<br />
c:\temp\Import.csv&#8230;deleted.<br />
c:\temp\readme.txt&#8230;deleted.<br />
c:\temp\sdelete.exe&#8230;deleted.<br />
c:\temp\VCdControlTool.exe&#8230;deleted.<br />
c:\temp\VCdRom.sys&#8230;deleted.<br />
</font></p>
<p>If you have files that need to remain secure, SDelete is a great way to make sure they are removed from your hard drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelliadmin.com/index.php/2009/05/delete-files-securely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

