<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8219534833881920127</id><updated>2012-02-16T01:47:25.225-08:00</updated><category term='VPN'/><category term='delprof auto shutdown cron linux'/><title type='text'>Home &amp; Small Business Techs LLC</title><subtitle type='html'>These are the trends we are seeing and think are interesting enough to publish.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hasbtech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://hasbtech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>HaSBTech Technical Team</name><uri>http://www.blogger.com/profile/06420132505909576457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8219534833881920127.post-573479409740273520</id><published>2009-07-03T20:28:00.001-07:00</published><updated>2009-07-03T20:30:07.650-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='delprof auto shutdown cron linux'/><title type='text'>delprof.exe is your friend</title><content type='html'>Imagine you have a domain full of computers at a school that has not been maintained for ages. Now you have a week to clean up 100 computers and you really don't want to go sit down at each one, figure out who uses it regularly and then clean up the cruft.&lt;br /&gt;&lt;br /&gt;Enter delprof from the windows 2003 resource kit. Thanks MS.&lt;br /&gt;&lt;br /&gt;It has its quirks. Case sentitive flags (for windows?!?!?!?) and MS resolution has to work. Otherwise Wooot. It just works.&lt;br /&gt;&lt;br /&gt;Cygwin or a cronjob on my linux box give me all the systems, er victims, I need. This is one I use to shut down the school (with exceptions) at 7PM.&lt;br /&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;&lt;br /&gt;# Gather the DHCP leases&lt;br /&gt;rm /tmp/shutdown-ips&lt;br /&gt;touch /tmp/shutdown-ips&lt;br /&gt;for DHCPSERV in ADS-prime ADS-second&lt;br /&gt; do&lt;br /&gt;   winexe --user DOMAIN\\admin --password=password --uninstall //${DHCPSERV} \&lt;br /&gt;     "netsh dhcp server \\\\${DHCPSERV} scope 10.10.10.0 show clients" \&lt;br /&gt;     | grep 10.10.10 | grep D | grep -v INAC | awk '{print $1}' &gt;&gt; /tmp/shutdown-ips&lt;br /&gt; done&lt;br /&gt;&lt;br /&gt;# Get the names of our victims&lt;br /&gt;rm /tmp/shutdown-hosts&lt;br /&gt;touch /tmp/shutdown-hosts&lt;br /&gt;for IPADDR in `cat /tmp/shutdown-ips`&lt;br /&gt; do&lt;br /&gt;   nslookup $IPADDR&lt;br /&gt; done \&lt;br /&gt;   | grep name | awk '{print $4}' | cut -f 1 -d . | sort -u \&lt;br /&gt;   | egrep -iv 'savin|clr-|soq-|sqsr|sqto|Teacher-LT2|TeacherLT-3|smiley|ed-director' &gt;&gt; /tmp/shutdown-hosts&lt;br /&gt;&lt;br /&gt;## Automated shutdown exclusions ##&lt;br /&gt;# Printers - savin&lt;br /&gt;# Printers - clr-&lt;br /&gt;# Printers - soq-&lt;br /&gt;# Printers - sqsr Soqel Staff Rm&lt;br /&gt;# Printers - sqto Soqel Teachers Office&lt;br /&gt;&lt;br /&gt;# Build a script&lt;br /&gt;rm /tmp/sd-script.bat&lt;br /&gt;touch /tmp/sd-script.bat&lt;br /&gt;PRE='start shutdown /f /m \\\\'&lt;br /&gt;POST=" /t 300 /s /c \"Automatic 7PM shutdown. To abort click start then run and type shutdown -a\""&lt;br /&gt;for HOST in `cat /tmp/shutdown-hosts`&lt;br /&gt; do&lt;br /&gt;   echo "${PRE}${HOST}${POST}" &gt;&gt; /tmp/sd-script.bat&lt;br /&gt; done&lt;br /&gt;&lt;br /&gt;# Shut them down&lt;br /&gt;cp /home/hasbtech/psexec.exe /tmp&lt;br /&gt;cd /tmp&lt;br /&gt;unix2dos  /tmp/sd-script.bat&lt;br /&gt;smbclient -A /home/hasbtech/.authfile //tbs-second/c$ -c 'cd temp;put sd-script.bat;put psexec.exe'&lt;br /&gt;cd -&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8219534833881920127-573479409740273520?l=hasbtech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hasbtech.blogspot.com/feeds/573479409740273520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8219534833881920127&amp;postID=573479409740273520' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default/573479409740273520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default/573479409740273520'/><link rel='alternate' type='text/html' href='http://hasbtech.blogspot.com/2009/07/delprofexe-is-your-friend.html' title='delprof.exe is your friend'/><author><name>HaSBTech Technical Team</name><uri>http://www.blogger.com/profile/06420132505909576457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8219534833881920127.post-7218236837885204493</id><published>2009-06-30T17:30:00.001-07:00</published><updated>2009-06-30T17:32:36.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VPN'/><title type='text'>OpenVPN for the Win</title><content type='html'>OpenVPN is your friend!&lt;br /&gt;&lt;br /&gt;We have been stymied by customers who don't control their networks (you know who you are) inability to use their networks. We have used OpenVPN on Linux, Windows Server 2003 and OpenBSD to provide ad-hoc links for remote workers, IT consultants and off-site activities.&lt;br /&gt;&lt;br /&gt;This works well when you can't setup permanent links over an IPSEC tunnel since you can't get on the routers at the border between their network and the Internet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8219534833881920127-7218236837885204493?l=hasbtech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hasbtech.blogspot.com/feeds/7218236837885204493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8219534833881920127&amp;postID=7218236837885204493' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default/7218236837885204493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default/7218236837885204493'/><link rel='alternate' type='text/html' href='http://hasbtech.blogspot.com/2009/06/openvpn-for-win.html' title='OpenVPN for the Win'/><author><name>HaSBTech Technical Team</name><uri>http://www.blogger.com/profile/06420132505909576457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8219534833881920127.post-5826055741868128862</id><published>2009-06-30T17:21:00.001-07:00</published><updated>2009-06-30T17:21:39.319-07:00</updated><title type='text'>Lost and Found</title><content type='html'>It has been over two years since we tried blogger. It has improved a lot in that span. We are back and will hopefully make a run of it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8219534833881920127-5826055741868128862?l=hasbtech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hasbtech.blogspot.com/feeds/5826055741868128862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8219534833881920127&amp;postID=5826055741868128862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default/5826055741868128862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8219534833881920127/posts/default/5826055741868128862'/><link rel='alternate' type='text/html' href='http://hasbtech.blogspot.com/2009/06/lost-and-found.html' title='Lost and Found'/><author><name>HaSBTech Technical Team</name><uri>http://www.blogger.com/profile/06420132505909576457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
