Friday, July 26, 2013

Essential Free Server and Network Tools for the Windows Admin

I don't like spending money but I like getting stuff.  What computer admin doesn't fit into this category?  When I take on a server I find that just a few tools (aside from the hardware vendors monitoring tools) end up living on its desktop.

Sequoiaview

Ever want to see what's hogging up all your valuable server hard disk space?  Ever want a quick way to see just what a drive contains?  Sequoiaview is useful for all kinds of auditing through the representation of the data on your hard drive using a "tree map."  The size of the box represents the relative size of the file and the colors are indicative of filetype.  Files are then bundled together in their respective folders.  Moving your mouse over the files and folders yields additional information and offers a way to fly over your hard disks data and visualize usage in a very intuitive and insightful manner.  Right clicking offers a way to open an Explorer window in that location so you may further interact with your files.

Roadkil's Unstoppable Copier

This classic tool is useful for both recovery scenarios and for everyday file copies and moves.  Unstoppable Copier is a fast and reliable way to shuffle data around on your hard drives and network.  It seems to move files faster than Explorer and it will attempt to read files with data residing in bad sectors.  Did I mention that it's fast?  If there is an error copying a file it notes the error and moves on - unlike Explorer which, partway through the copy, errors then quits.  Unstoppable Copier can also be batched or scripted, resulting in a flexible fast backup utility if you're not afraid to write a batch file.

Angry IP Scanner


The Angry IP Scanner is my goto for quickly finding out what's connected to the server's LAN. Certainly there are better network IP port scanners available (like NMap) but they can't match Angry's simplicity - often a quick and dirty ping scan is all you need.  It can do port scans as well as gather banners and report NetBIOS information such as the logged in user.  It's not as intrusive as NMap can be and it's very portable.  It doesn't do everything NMap and ZenMap can, but that's OK because it gets the job done.

Putty

I like the command line.  When dealing with *nix and Cisco services and devices you can't beat the Zen-like simplicity of a simple flashing curser and the world of possibilities behind it.  Putty brings some of this power to Windows, but the true power lies in the fact that does SSH Port Forwarding - a way to get secure access to your network without a VPN.  See my classic article here for details on the process of using SSH Tunneling to secure Windows Remote Desktop.

Wednesday, July 10, 2013

Outlook 2010 on Windows 7 Repeatedly Prompts for Credentials

This was on Windows 7 with Outlook 2010.  The user had migrated from Exchange on an SBS 2003 to Exchange on Office365.  My coworker Heather did all the dirty work and eventually came up with this solution:


In order to fix this issue, I deleted the Outlook profile and did the following:

Go to Start> Control Panel> User Accounts, click "Manage your credentials", scroll down to "Generic Credentials" and remove from the vault any that start with "MS.Outlook:"

Delete the auto-discover configuration file and restart the outlook.
C:\Users\\AppData\Local\Microsoft\Outlook\xxxxx - Autodiscover.xml

I tried all of these steps minus deleting the outlook profile and it didn’t work for me. However,  I recommend trying it before deleting the profile, to save time if by chance it does work.

Monday, June 10, 2013

Windows 7 - USB Devices Won't Install

I beat myself against this for six hours straight.

The reported symptom was that no new USB devices would install.  During troubleshooting SFC /scannow yielded "Windows Resource Protection could not start the repair service." I received the following error message when I tried to start the Windows Modules Installer service (TrustedInstaller): "System Error 126: The specific module could not be found".  The Installed Updates in Add/Remove Programs was blank.

I Googled this until my fingers bled.  http://support.microsoft.com/kb/959077 seemed like it should help, but it didn't.

Finally, desperate, I called Microsoft.  They said someone would call me back within 4 hours.  Oh well...  So I tried another desperate move:  I copied the "c:\windows\servicing\trustedinstaller.exe" and the four "c:\windows\winsxs\amd64_microsoft-windows-servicingstack…" folders from a known working system to a CD then replaced the files on the affected system with those copied files after taking ownership from trustedinstaller and giving the administrator full control of the required files and folders in the affected system.

It worked!

Monday, April 22, 2013

Reduce Spam Using Exchange 2008

OK, a little further into the 21st Century we were gifted with Exchange 2007 - unfortunately the Spammers don't care what we're running nor how much better we might like it than we did Exchange 2003, so, we start by visiting http://technet.microsoft.com/en-us/library/bb124696(v=exchg.80).aspx and get the info straight from Microsoft.

Well, that wasn't very helpful - first off I'm running Exchange 2008 without the Edge Transport role - don't ask me why, I didn't set it up, a subcontractor did, and he did a lot of things that might be questionable.  I'm not sure if this is even one of them, but I digress. . .

You can access the Antispam settings by installing them in your Hub Transport role by going into the Exchange Shell and entering (replace c:\ with whatever the appropriate drive is):

c:\program files\microsoft\exchange server\scripts\install-antispamagents.ps1

then restart your Exchange Transport with:

restart-service msexchangetransport

You may then open your Exchange Management Console, go under Organization Configuration, click Hub Transport, and find your Anti-Spam Tab.

For more details, see http://www.msexchange.org/articles-tutorials/exchange-server-2007/security-message-hygiene/exchange-server-2007-spam-filtering-features-without-using-exchange-server-2007-edge-server.html



Wednesday, March 27, 2013

Reduce Spam Using Exchange 2003

I understand that this may be six or seven years too late, but many old 2003 servers are still chugging along just fine.  The volume of junk mail, however, continues to increase, and that old server may be unhappy with the ever increasing volume of traffic.  I certainly know that your users aren't happy with it!

Microsoft has made an excellent toolset for reducing the spam (get your No Spam T-Shirt (Google Affiliate Ad) here!) sent through your Exchange 2003 server.  In a future article I will address similar measures for Exchange 2007 and 2010 - the Exchange 2003 just happens to be what I worked on today and noted the steps for tonights blog entry.


  1. If you haven't already ( I won't judge, I promise) download and install Exchange 2003 Service Pack 2.  I'll wait.  Don't know which one you're on?  On your server open the Exchange System Manager, go to Servers, then expand the fifth column, it will tell you there.
  2. Enable filtering based on free Real-Time Black Lists (free RBL?  Wow!) following the instructions at http://support.microsoft.com/kb/823866/en-us and using the following servers:

    Spamhaus        zen.spamhaus.org* (this one gives a return code, see http://www.spamhaus.org/zen/)
    SpamCop        bl.spamcop.net
    Surriel        psbt.surriel.com
    SORBS        dnsbl.sorbs.net
  3. Expand Global Settings then right click Message Delivery then select Properties.  Click the Recipient tab then make certain the "Filter Recipients who are not in the Directory" box is checked.  This prevents your server from bouncing non-deliverable  reports to senders and places the burden of saying "sorry, noone here by that name" on the senders e-mail server where it belongs.
  4. Click the Intelligent Message Filter then change the Block SCL to 8 and set the action to "Reject" - after a few weeks of testing you can set this to "Block".  The difference is that "Reject" sends a non-deliverable report back to the sender, allowing you to diagnose incorrect rejections.  "Block" silently drops the message.
    Set your store and Move to Junk Mail to 6.  Later on you may tweak these if too many messages are marked as spam or you are receiving too much junk.
  5. Now you need to enable your new filters.  In the Exchange System Manager expand Servers, , Protocols, SMTP, then right-click the Default SMTP Virtual Server and select Properties.  Click the Advanced button on the first page, click Edit . . . the select the boxes next to Apply Recipient Filter, Apply Connection Filter, and Apply Intelligent Message Filter.  Save these settings.
  6. Restart your Exchange Store Service (if you've come this far you probably know how. . .)
Now you should send some messages from the outside world to an internal user.  Use Gmail or Outlook.com or whatever you like.

Now that you're sending and receiving like you were before you may not be aware of whether this is really working.  To see some metrics that reveal what's going on behind the scenes you will use the Performance Monitor.

  1. Go to Start, Administrative Tools, and open Performance Monitor.
  2. Delete the default counters then add the following:
    SMTP Server -> Messages Delivered Total
    MS Exchange Transport Filter Sink -> Connections rejected by Block List Providers
    Intelligent Message Filter -> Total Messages Scanned for UCE
    Intelligent Message Filter -> Total Messages Assigned an SCL Rating of 0-9 (add all ten!)
  3. Click OK then change your report type to Histogram or Report.
After a few days you will notice a line at the higher end of the Total Messages Assigned an SCL Rating that is taller than the rest (normally 7 or 8).  This should be what you set your Block SCL to - everything which receives that rating is typically junk and the junk volume often exceeds the volume of legitimate messages.


Wednesday, December 05, 2012

Configuring Server 2008 to use the NTP Pool

Excellent article by Luka Manojlovic at http://luka.manojlovic.net/2011/06/24/windows-server-2008-2008-r2-ad-sync-with-external-ntp-server/ about configuring your Server 2008 to use the NTP Pool.  If you are in the us you may use us.pool.ntp.org.

Thanks, Luka!

Wednesday, October 31, 2012

pfSense: Remote Network Point to Point Link to VPN Over DSL Failover


The scenario: 

You have two locations with Internet connections and a dedicated point-to-point connection between the two and two pfSense systems performing all routing at both sites.  You desire the two sites remain connected should the dedicated connection fail.

The solution:

Create a pfSense configuration with failover from the point-to-point connection to a site-to-site VPN utilizing the existing Internet connections at each site.

Steps:

1.  Create an OpenVPN Server on the main pfSense and Client setup on the remote pfSense (I used pre-shared keys).  DO NOT set a route option in the Advanced box as most instructions for configuring OpenVPN will suggest nor should you have a static route to your remote network defined under System -> Routes.  Also note that  IPSec can not be used in this scenario as it doesn't create a new adapter that we can work with in the firewall rules and gateways.

2.  Check and see that the VPN turns on and connects via Status -> OpenVPN before proceeding.  If it does not then troubleshoot your Internet connectivity and OpenVPN settings.

2.  Go to Interfaces -> Assign and add Interface OPT3 with Network port ovpns1 on both the server and the client pfSense systems.

3.  On both your local and remote pfSense add a new Firewall Rule allowing all protocols from any source to to any destination under both OPT3 and OpenVPN.

4.  On both your local and remote pfSense add OPT3 as a Gateway under System -> Routing -> Gateways leaving the Gateway and other options blank.

5.  On both your local and remote pfSense create a new Group under System -> Routing -> Groups.  The group will define your dedicated connection as Tier 1 and OPT3 as Tier 2.  My trigger level is set to Member Down.

6.  On both your local and remote pfSense create a new Firewall Rule under LAN which has all traffic from all sources bound for the remote network use the new Gateway Group (under Advanced) you created in Step 5.

7.  Test - unplug the point-to-point connection, monitor things under Status -> Gateways, wait a minute or so, and hopefully you will still be passing traffic albeit through the VPN.

Please Note:  Upgrading from pfSense 2.0.x to 2.1.x breaks this configuration - I am working to resolve the issue.  The issue I am running into is that the OpenVPN connection gets established but the routing and gateway monitoring for that link fails and never shows as UP in the Gateway groups.  Deleting the OPT3 interface and its gateway then recreating them fixed the issue.

Friday, September 14, 2012

IPiphony and pfSense

Got this working on a single-WAN pfSense this past week, quick rundown of my pfSense settings:

NAT forward TCP/UDP ports 10,000-20,000 to the internal IP of the IPiphony, and NAT forward port 5060 to the same internal IP.

Go to Firewall -> NAT -> Outbound and set it to Manual Outbound Rule Generation.  Edit the "Auto created rule for LAN to WAN" and make certain the Static Port box is selected.  Save and reboot then feel the joy!

Anybody get this working with multiwan failover?  My failover works but we have to reset the state table or (easier for the end user) reboot the pfSense computer to bring the VOIP system back up.

Update 18-Sep-12

The system had been having issues with disconnects on forward and I'm not certain if they're with the VoIP provider, the PBX, or the pfSense firewall.  The vendor who is in charge of the PBX tested it with a Cisco firewall and found the behavior continued, but I'm still not certain as its possible the Cisco device is subject to the same failure.

If the undesired behavior continues I will be running through the troubleshooting steps at http://doc.pfsense.org/index.php/VoIP_Configuration.

Tuesday, August 21, 2012

Windows 7 Kiosk Lockdown

Why oh why won't Microsoft make a Steady State for Windows 7?  Even when users don't have administrative access to a Windows 7 desktop there are still a multitude of ways to waste time or foul things up.  My biggest concern is time wasting - I've seen staff try their hand at ASCII art, figure out how to invoke supposedly hidden applications, and do anything but get their work done using the computer.

If you've been itching to make your Windows 7 computer into a system that may only perform just a few tasks consider Inteset Secure Lockdown V2 - it's not free, but it will more than pay for itself in reduced headaches and increased productivity!

Check it out at http://shop.inteset.com/Category/14-lock-down-windows-7-and-internet-explorer-for-kiosks.aspx

IT's Kris Haynes: Scan to Email - Exchange 2007

This one had stumped me for quite some time.  Even after reading numerous blogs and expert advice sites I couldn't make this work to my satisfaction - I could get it working internally but not externally.  Today I found IT's Kris Haynes: Scan to Email - Exchange 2007 - Thank you Kris, you rock!