Masters of technology


The future masters of technology will have to be light-hearted and intelligent. The machine easily masters the grim and the dumb.
~ Marshall McLuhan

CookingLight.com – 40 great cooking tips

image

Sometimes clicking on links on websites and doing Google searches can get you to information and sites you don’t normally visit.  Articles on technology can end up taking you to searching for a movie which can take you to an actor in the movie which can take you to another movie and then somehow you end up on a cooking website reading an article about cooking mistakes.  It’s part of the magic, usefulness and possible dangers of the Internet. 
So, the other evening that’s where I ended up, on a cooking site reading an article about common cooking mistakes.  I don’t do much actual cooking myself.  I do a lot of grilling but I generally leave the cooking to my wife, who is an excellent cook.  I hadn’t heard of cooking bacon in the oven on a wire rack with a cookie pan underneath to get better bacon.  Or, that you should shock vegetables after boiling to keep them from continuing to cook themselves.  These and other tips are at cookinglight.com.  It’s a good read and contains useful information.

Cool clouds

Cool clouds today

  • Camera: SGH-i937
  • Taken: 23 February, 2012
  • Aperture: ƒ/2.65
  • Focal length: 4.03mm
  • ISO: 32
  • Shutter speed: 1/1176s
  • Title: ????????y

Hanging on during a bumpy ride


Even as kids reach adolescence, they need more than ever for us to watch over them. Adolescence is not about letting go. It’s about hanging on during a very bumpy ride.
~ Ron Taffel

Android App: PocketCloud Pro

image

Being in IT and working in an all Windows shop I would say that remote desktop is the number one used app on my PC.  VNC is used a lot as well for connecting to PC’s but mostly I’m all about managing my servers using remote desktop.  Most of that is done from VisionApp’s remote desktop software (but that’s for a different post).  So, on my Asus Transformer Prime tablet (which I love by the way) one of the first things I searched for in the market place was a remote desktop client.  I tried out a few but settled on Wyse Technology’s PocketCloudWyse has a number of products from thin clients to remote desktop clients and more.
I typically go with free apps because I don’t have an abundance of money and because I like to hop around OS platforms on the Tablet side so when I originally saw the $14.99 price tag I skipped it over.  They do have a free version that doesn’t let you add more than one pre-configured remote desktop connection and does work well.  But, I like to be able to pull out the tablet and quickly connect to whichever server I need to do some work on.  I had used PocketCloud on the iPad as well and liked it there as well.  The recent update added several useful features and it’s well worth taking a look at.

image

Topaz signature pad drivers and Windows Terminal Services

I’m sure you’ve seen these signature pads in many places.  Doctor’s offices, dentists and maybe your local blood donation center.
They are USB or serial based devices and they require drivers for Windows to see them and for software to be able to talk to them.

I have a software application we use that needs the driver installed even if you aren’t using the signature pad.  To save IT management time we have this application installed on a couple of Windows Server 2003 and Server 2008 servers running terminal services.  When you install the drivers it puts them in a goofy place.  In my case I was logged in as administrator so it went to:
C:\Documents and Settings\administrator\WINDOWS\SigPlus

So, what happens when a normal user logs onto the terminal services machine?  They can’t see the sigplus.ocx dynamic link library and the application crashes.  Cool huh?
To fix this you can give everyone read access to the SigPlus folder.  There might be another way of fixing it, like moving the .ocx file and registering it in a different place, but I just tweaked the security on the folder and it worked.

Export information from Active Directory to a CSV file

I wanted to reboot all PC’s in a particular OU of our Active Directory structure.  I found csvde which is a tool for exporting and importing data to and from Active Directory.
Once I got all of the computer names out and into a csv file I used the shutdown -i tool to past the computer names into and let it remotely reboot them.

Here are some sample csvde scripts for exporting various pieces of information:

Export everything (computers, users, groups etc.  This could be a lot of records depending on your Active Directory so be careful.):

CSVDE -f exportFilename.csv

Export computer accounts from specified OU with only a few columns (just does dn, cn and name columns):

csvde -f ComputerNamesExport.csv -d “OU=OUName,DC=domain,DC=org” -r “(objectClass=computer)” -l “dn,cn,name”

– You can leave off the -l “dn,cn,name” and you’ll get all columns.

Export user accounts from whole domain with only the specified columns:

csvde -f \\server1\common\it\UserNamesExport.csv -d “DC=CBCO,DC=org” -r “(objectCategory=person)” -l “dn,cn,displayName,description,title,department,physicalDeliveryOfficeName,company”

– You can leave off -l and the rest to get all columns.

VB.net get size of folder and or a drive

You can use this function to return the size of a specific folder:

Public Function FldrSize(ByVal dPath As String)
Dim size As Long = 0
For Each foundFile As String In My.Computer.FileSystem.GetFiles(dPath, FileIO.SearchOption.SearchAllSubDirectories, “*.*”)
Dim fInfo As New FileInfo(foundFile)
size += fInfo.Length
Next
Return size
End Function

This returns the number of bytes in the folder.  I then feed that result to code found here to view that as megabtyes or gigabytes.

This function returns the total size of a drive and the free space of the specified drive:

Private Function GetSize(ByVal drive As String)
Dim parameter As String = “win32_logicaldisk.deviceid=””” + drive + “:”””
Dim diskSize As New ManagementObject(parameter)
Dim detailsString As String = “”
diskSize.Get()
detailsString = “Disk Space in ” + drive + ” is :” & diskSize(“Size”).ToString
detailsString = detailsString & vbCrLf & “<br>Free space in ” + drive + ” is :” & diskSize(“FreeSpace”).ToString
Return detailsString
End Function

Again, this returns the bytes and I use code found here to convert that to megabytes or gigabytes.

 

Remotely reboot Windows computers

I’ve been in IT for several years now and for some reason I never knew this tool existed in Windows.
In the past I’ve used things like Sysinternal’s PSShutdown to remotely reboot or shut down a PC.
I found today that if you enter “Shutdown -i” at a command prompt you get a shutdown tool you can use to reboot or shutdown other PCs on the network.
I tried this on Windows Server 2003, Server 2008 and Windows 7 and it worked on all of them.
If you hold down shift when you right click on the command prompt icon and select “Run as a different user” you can launch it as a domain administrator.

Astaro and Steam client

Steam was not working on my home network after I installed Astaro firewall.
I found a post on a forum that said to open the following ports.
I only opened up the TCP port range and it seems to be working so far.

TCP 27015-27050
UDP 27000-27015
UDP 1200

Exchange 2007 452 4.3.1 Insufficient system resources

After a report from a user that they were not able to get an email from someone I started poking into the exchange log files and quickly noticed multiple lines that read: 452 4.3.1 Insufficient system resources.
I checked memory, networking, CPU usage and finally hard drive space.  All seemed fine though my C drive only had about 1.95gb free.  I figured that didn’t sound like a lot but my mailbox databases are on a different drive that has 250gb free.  After a bit of research I found that Exchange 2007’s mail queue folder is by default on the C drive and will start throwing these sort of errors if there is less than 4gb of space.

So, I decided to move the queue folder (which currently was about 500mb) to a different drive.  I found the following command which easily moved the queue:

Move-TransportDatabase.ps1 -QueueDatabasePath: D:\Exchsrvr\TransportRoles\data\Queue -QueueDatabaseLoggingPath: D:\Exchsrvr\TransportRoles\data\Queue

Replace the D:\Exchsrvr…. with the path where you want the queue moved to.
The Move-TransportDatabase.ps1 script does the following:

  1. Free space is checked on the destination drive for the Queue Database and Queue Database Logs
  2. Create the destination path for the Queue Database and Queue Database Logs
  3. Assign Full Control permissions for Network Service, Local System, and Administrators for both paths
  4. Stop the Exchange Transport Service
  5. Backup the original EdgeTransport.exe.config file
  6. Move the Queue Database files, mail.que and trn.chk, to the destination folder
  7. Update the Queue Database path
  8. Move the file trn.log and any trn*.log files to the destination folder
  9. Update the path for Queue Database Logs
  10. Restart the Transport Service

Answer found on petri.co.il

Funny comment spam

image
I received the following comment spam on my post about the Asus Transformer Prime. 

what bothers me is the sensitivity of the mouse on the keypad when you are typing on the dock. also the fact that is comes with windows 97. However i did download windows 2010 off of the android market and it works fine.

I understand the purpose of trying to post comments on blogs that have links to websites in order to inflate their search engine rankings, but it really is annoying.  It’s sad that we have to come up with things like captcha and Akismet to try to block out these types of misuses of the internet.
Ok, enough complaining.  I did however find the above comment pretty funny.  “the sensitivity of the mouse on the keypad”???  What does that even mean?  Windows 97?  I must have missed that version.  Windows 2010 must not have been very good because I’ve never heard of it.  :)  What’s even funnier than non-existent versions of Windows is the fact that they were able to download them from the Android market and install them on an Android tablet.
I guess if there weren’t such idiots who make bots to fill in nonsense comments on blogs then we wouldn’t have as much to laugh and complain about. 

Internet Explorer 9 keeps opening the welcome page over and over

After installing Internet Explorer 9 a welcome page pops up in a seperate tab the first time you run it.  I ran into a machine where it kept popping up over and over.
To fix it:

  1. Click start and in the search box type gpedit.msc
  2. In the Local Group Policy Editor navigate to:
    User Configuration/Administrative Templates/Windows Components/Internet Explorer.
  3. Locate the “Prevent performance of First Run Customize settings” setting and double-click
  4. Click the “Enabled” setting and below that click the drop-down where it says “Select your choice.”  Select “Go directly to home page.”
  5. Hit ok then close the group policy editor.
  6. Close and open Internet Explorer and you should be good.

Categories

Archives