If you're having problems with DNS, try flushing the local DNS cache. If you don't know what DNS is, this is the service that handles translating domain names, such as google.com, into IP addresses. This allows you to remember the domain name, but then allows the computer to use the IP address to communicate with it. Sometimes DNS settings get changed, but those changes can take a little while to propagate through to everyone system. To speed the propagation along, you can flush your DNS cache manually and force it to reload the most recent settings. To do that in Windows or Mac OS X:
Windows
Open a command prompt (Start->Run->cmd, then OK). Then type ipconfig /flushdns and press Enter
OS X
Open Terminal (Applications->Utilities->Terminal) and type dscacheutil -flushcache then pressing Enter
You should note that this only flushes the DNS cache on your local machine. DNS is a hierarchical system that relies on many different levels of connections, each of which have their own DNS cache. If you manage your own DNS server that would be the next step to diagnosing a problem if flushing the client machine's cache doesn't work. However, that's another topic entirely and this is only meant to give you the quick way to manually flush the DNS cache. If you want to learn more about how DNS works, check out the Wikipedia article, or search online because you'll find plenty of resources.
Thoughts, tips, tricks, and fixes for the IT person in you. I am an MCSE and support a wide variety of IT-related items at my job, including: Windows OS's, Exchange, Terminal Services, .NET, IIS, OS X, Microsoft Office, printers, phones, Linux, Adobe Creative Suites, and plenty of other hardware and software. Hopefully some of the solutions I find throughout the workday are useful to you as well
Thursday, September 30, 2010
Wednesday, September 29, 2010
How to clear your Windows offline files cache
If you are having problems with offline synchronization in Windows and can't seem to get it figured out, you may need to clear your offline file cache. I've also run into problems where there is no other way to stop your offline files from synchronizing, even if you've done what you can to shut it off. I recently had this issue and found the solution at http://offlinefiles.blogspot.com/2010/09/delete-offline-files-cache-windows-xp.html. There are three different way to clear the cache, but the article in the link outlines them all in a very clear way. In my situation I had to use one of the registry hacks because I had a GPO preventing changes to offline files through the menu.
What's taking up your free space? Easily find out using these free tools
Have you ever wondered what is taking up space on your hard drive? If you have, you'll be happy to know that free programs exist which will traverse all your files and folders and give you a hierarchical and graphical view of where your space is being taken up. I recently had a user with 2GB of free space left on an 80GB hard drive, but I could only find 27GB in use. Using one of these programs I found that almost 40GB was showing up as unknown space. That led to some more research to find that IBM's Rescue and Recovery can cause this, and that was exactly the problem. I uninstalled Rescue and Recovery (there was no need for it on the machine anyway) and that made all the unknown space usable space again.
There are many different programs that will give you a graphical representation of file space on your drive(s), but the two I'd suggest are WinDirStat and SpaceSniffer, both of which are free. I prefer the look of SpaceSniffer, and it also comes as an executable so you don't have to install it. Below you'll see a screenshot of SpaceSniffer so you can better understand what I mean when I say it gives you a graphical representation of your hard drive space. If you're wondering just what is taking up space on a drive, give one of these two tools a try and save yourself the time of manually tracking down the culprit.
There are many different programs that will give you a graphical representation of file space on your drive(s), but the two I'd suggest are WinDirStat and SpaceSniffer, both of which are free. I prefer the look of SpaceSniffer, and it also comes as an executable so you don't have to install it. Below you'll see a screenshot of SpaceSniffer so you can better understand what I mean when I say it gives you a graphical representation of your hard drive space. If you're wondering just what is taking up space on a drive, give one of these two tools a try and save yourself the time of manually tracking down the culprit.
Wednesday, August 11, 2010
How to change a Windows user's password from the command prompt
1. Open a command prompt window. If you're running Vista or 7 you may have to open the command prompt as an administrator.
2. Enter the command net user username * /domainname or just net user username * if you're not changing a domain user, then press enter. Make sure you substitute your own entries for username and domainname
2a. You could also use net user username newPassword /domainname or net user username newPassword. This will change the password to the newPassword value without prompting you again
3. Enter the new password, then confirm
4. The user should now have the new password set for them
You can find the original article that I used at http://www.petri.co.il, which includes some screen grabs of the command prompt text.
2. Enter the command net user username * /domainname or just net user username * if you're not changing a domain user, then press enter. Make sure you substitute your own entries for username and domainname
2a. You could also use net user username newPassword /domainname or net user username newPassword. This will change the password to the newPassword value without prompting you again
3. Enter the new password, then confirm
4. The user should now have the new password set for them
You can find the original article that I used at http://www.petri.co.il, which includes some screen grabs of the command prompt text.
Friday, July 30, 2010
Extract Java .msi installer for software deployment
If you want to deploy Java software in an Active Directory environment, you can easily use Group Policy to install it on multiple machines. Here's how to get the msi installer file you'll need for the deployment:
1. Download the Java Offline installer from here for the browser you're using. If you don't know whether you're using a 32 or 64 bit browser, go with 32 bit. Not everything runs in a 64 bit browser (yet), so even the Windows 7 64 bit OS still defaults to the 32 bit version of Internet Explorer.
2. Start the Java Offline installer, but don't proceed with the actual install. Starting the installer creates the files you need in a temporary location.
3. Go to your Application Data folder. For each version of Windows it can be a bit different, and it is also a hidden folder
Windows Vista/7: C:\Users\username\AppData\LocalLow\Sun\Java\
Windows XP: C:\Documents and Settings\username\Local Settings\Application Data\Sun\Java\
4. In the Java folder you will find folders for each version of Java you have installed on that machine. Open the one named for the version of Java you want to extract the .msi file from
5. Here you'll find the .msi installer, along with its supporting files. Copy the contents of the folder to a network share and from there you can deploy that version of Java using Group Policy software installation.
Monday, June 28, 2010
Allow standard user to change the time
If you follow best-practice and setup your users as standard users, you may have run into this is before. Standard users aren't allowed to change the time on the computer they are using. However, you can fix this using group policy, or by changing the local policy on the computer. Which method you want to use is up to you, but it's as simple as setting one policy.
5. Enter Administrators and click on "Check Name". This will validate the name and make sure the system is able to find it
6. Administrators should now be underlined, which means everything is correct and the group has been validated. Now you can click OK
7. Click OK again to get back to the screen in step #3. Now repeat steps #4-6 for the group named "Users", and also for "LOCAL SERVICE"
8. That's it. Close your policy editor and now any standard users using the computers affected by the policy should be allowed to set the time on those systems.
Thanks go to this post for pointing me in this direction. I'm still looking for a way to allow users to change the time zone too, but from what I've been finding it's not possible and you have to script it through AD instead.
1. Go into the policy you want to add this functionality to and navigate to Computer Configuration->Policies->Windows Settings->Security Settings->Local Policies->User Rights Assignment
2. Find the "Change the System Time" entry and double-click on it
3. Check the box labeled "Enable this policy setting", then click on "Add User or Group..."
4. Click on the Browse button
5. Enter Administrators and click on "Check Name". This will validate the name and make sure the system is able to find it
6. Administrators should now be underlined, which means everything is correct and the group has been validated. Now you can click OK
7. Click OK again to get back to the screen in step #3. Now repeat steps #4-6 for the group named "Users", and also for "LOCAL SERVICE"
8. That's it. Close your policy editor and now any standard users using the computers affected by the policy should be allowed to set the time on those systems.
Thanks go to this post for pointing me in this direction. I'm still looking for a way to allow users to change the time zone too, but from what I've been finding it's not possible and you have to script it through AD instead.
Friday, June 25, 2010
Replacing or upgrading hard drives in an Apple Drive Module for a Mac server
Replacing the hard drive in an Apple Drive Module (ADM) is relatively simple, at least on an Xserve G5. I wanted to increase the server's storage capacity, so I picked up three Western Digital 1TB Caviar Blue (WD1EALS-00Z8A0) drives. I read a post that says the XServe G5 only supports up to 1TB drives. Otherwise I would've gone with some 2TB drives instead. The true ADMs only come in sizes up to 500GB for the G5 Xserve, and that's what I already have. The hard drives within the modules are Hitachi Deskstar 500GB SATA drives (HDS725050KLA360). I saw SATA and figured it must be pretty easy to swap them, and it turns out I was correct. However, there are some pros and cons of using stock, third-party hard drives in your Xserve G5. If you want to read the article I found, check it out here. Otherwise, here's the quick version
Pro - cheap, readily available
Cons - lack Apple-specific firmware, normally aren't server-grade drives, they haven't been tested by Apple, and the rubber washers on the ADMs are supposedly specific to certain drives for reducing vibration
Looking at that list I chose cheap. The only cons that would be a little concerning are that they're not server-grade drives, and they don't have the Apple firmware. However, the drives showed up in Server Monitor like normal so I don't know how much of an issue the generic firmware would cause. You could always test the drives yourself, and I don't think a different type of rubber washer is going to change the vibration in my drives enough to worry about it. It's up to you to gauge whether this is a good idea for your particular situation. For me it was fine so I proceeded with the swap. I have a Dual 2.3GHz G5 Xserve, which happens to use SATA drives. If yours is a different model you'll want to double-check what type of drives you need first. The ADM has a special connector on it for where it plugs in to the server., but it's just an additional interface and is not specific to the hard drive you buy. In my case the connector looked like this
Anyway, on to the hard drive swap. Here's how I did it:
1. Remove your ADMs from the server. Make sure to label the drives in them if they're in a RAID configuration so you can put them back in in the correct order if you need to. Putting them in in the wrong order will break your RAID. At this point you will have to
2. Once the drives have been labeled, take one and start removing the screws. There are four screws, two on each side. Remove them in whichever order you prefer. I removed one side first, then flipped it over and removed the other
3. Once the screws are removed you're going to have to remove the drive from the ADM. Set the drive flat on your work surface. Lift it up from the back of the drive, which is the side with the spring latch you used to remove it from the server. It should come out easily.
4. The SATA connectors will be on the front side of the ADM/drive, so flip the drive 180 degrees so it sits on its top. This will give you clear access to the SATA connectors. Unplug them
5. Now you have an empty ADM sled. Simply perform the steps in reverse. Plug in the connectors, flip the new drive into the sled, put the four screws back in and you're done.
This will leave you with an ADM with a new hard drive. Go ahead and repeat for any additional hard drives you're going to swap. Then put the ADMs back in your server and boot to the OS X Server install CD/DVD to get on with installing OS X Server. Don't worry if your server starts beeping at you after you've put in the new drives. That's the megaraid controller alarm letting you know that something is different than it expected with the drives. You can shut that off by going into Terminal after booting from the CD and using the command megaraid -alarm -silence. You'll have to use the megaraid program through the Terminal for configuring your new RAID array as well. For some examples of a configuration using the megaraid program, check out http://images.apple.com/server/docs/Using_Hardware_RAID.pdf. Otherwise you can enter megaraid in Terminal and see the few command line switches are enough to get you going. Good luck!
Pro - cheap, readily available
Cons - lack Apple-specific firmware, normally aren't server-grade drives, they haven't been tested by Apple, and the rubber washers on the ADMs are supposedly specific to certain drives for reducing vibration
Looking at that list I chose cheap. The only cons that would be a little concerning are that they're not server-grade drives, and they don't have the Apple firmware. However, the drives showed up in Server Monitor like normal so I don't know how much of an issue the generic firmware would cause. You could always test the drives yourself, and I don't think a different type of rubber washer is going to change the vibration in my drives enough to worry about it. It's up to you to gauge whether this is a good idea for your particular situation. For me it was fine so I proceeded with the swap. I have a Dual 2.3GHz G5 Xserve, which happens to use SATA drives. If yours is a different model you'll want to double-check what type of drives you need first. The ADM has a special connector on it for where it plugs in to the server., but it's just an additional interface and is not specific to the hard drive you buy. In my case the connector looked like this
Anyway, on to the hard drive swap. Here's how I did it:
1. Remove your ADMs from the server. Make sure to label the drives in them if they're in a RAID configuration so you can put them back in in the correct order if you need to. Putting them in in the wrong order will break your RAID. At this point you will have to
2. Once the drives have been labeled, take one and start removing the screws. There are four screws, two on each side. Remove them in whichever order you prefer. I removed one side first, then flipped it over and removed the other
3. Once the screws are removed you're going to have to remove the drive from the ADM. Set the drive flat on your work surface. Lift it up from the back of the drive, which is the side with the spring latch you used to remove it from the server. It should come out easily.
4. The SATA connectors will be on the front side of the ADM/drive, so flip the drive 180 degrees so it sits on its top. This will give you clear access to the SATA connectors. Unplug them
5. Now you have an empty ADM sled. Simply perform the steps in reverse. Plug in the connectors, flip the new drive into the sled, put the four screws back in and you're done.
This will leave you with an ADM with a new hard drive. Go ahead and repeat for any additional hard drives you're going to swap. Then put the ADMs back in your server and boot to the OS X Server install CD/DVD to get on with installing OS X Server. Don't worry if your server starts beeping at you after you've put in the new drives. That's the megaraid controller alarm letting you know that something is different than it expected with the drives. You can shut that off by going into Terminal after booting from the CD and using the command megaraid -alarm -silence. You'll have to use the megaraid program through the Terminal for configuring your new RAID array as well. For some examples of a configuration using the megaraid program, check out http://images.apple.com/server/docs/Using_Hardware_RAID.pdf. Otherwise you can enter megaraid in Terminal and see the few command line switches are enough to get you going. Good luck!
Monday, June 21, 2010
Paragraph marks show up in Outlook or Word when typing
If you start seeing paragraph marks
show up when you're typing a new email in Outlook, or a new document in Word, you're not the only one that has happened to. I get that question now and then and it's simple to toggle back and forth. It's different for Outlook and Word though, so I'll give you directions for both.
For Outlook 2003:
On the Standard toolbar, click on the
button. If the Standard toolbar isn't displayed, go to View->Toolbars, then select Standard
You can also consult the Office Help article.
For Word 2003:
Click on Tools->Options, then under the General tab look for the Formatting section. Uncheck the box labeled Paragraph Marks and then click OK
For Outlook 2003:
On the Standard toolbar, click on the
You can also consult the Office Help article.
For Word 2003:
Click on Tools->Options, then under the General tab look for the Formatting section. Uncheck the box labeled Paragraph Marks and then click OK
Monday, June 14, 2010
How to stop quotation marks qualifying specific columns in a text export from SQL Server
In an attempt to create a text file from a database in SQL using an SSIS package to replace the same file's creation from Access, I ran into a snag. That snag was that the Access file was not qualifying certain fields with quotation marks, but SQL was qualifying every field with quotes. The program that used the text file was created by a third party so I didn't wan't to have them change the programming to accommodate this change, and the text qualifying was causing problems. Instead I turned to Google and found that controlling this was a lot easier than I thought it would be. Here's how to specify which columns should not be qualified by quotation marks, assuming you're doing so through the use of an SSIS package.
1. Open your SSIS package responsible for exporting to the text file
2. In the "Connection Managers" section at the bottom, right-click on the connection for your text file and choose Edit
3. You'll open up the settings on the General page by default. Change to the Advanced page
4. Select the column you do not want to have qualified by quotation marks
5. In the window to the right, set TextQualified to False
6. Repeat 4 and 5 for all other columns you do not want qualified
This also stopped qualifying the header row for me though. I needed all header names to still be qualified with quotes, so to get around it I renamed those particular headers to contain quotes in their actual name. You can do that right in the same Advanced section as step #3 above. Once you rename your headers though, you'll also have to go into the actual text file destination object under the Control Flow to make sure those headers get remapped. Adding the quotation marks will prevent those columns to be recognized for auto-mapping. Once you've done that go ahead and give your new package a try and you should see that the text qualifiers are shut off for the fields you set TextQualifed to false.
Tuesday, June 8, 2010
Generic IEEE 1284.4 error when installing an HP Laserjet 4240 on Windows Vista
If you're having problems installing an HP Laserjet 4240 on a Windows Vista computer, try using the PostScript driver from this location. Using the HP Universal Print driver didn't fix the Generic IEEE 1284.4 error I kept getting, but the PS version of the driver did. I know this is a short explanation and specific incident, but if you're running into a similar error with a different printer try a different driver.
This may also work for Windows 7, but I haven't had to try it yet. If you do, let me know whether it works or not.
This may also work for Windows 7, but I haven't had to try it yet. If you do, let me know whether it works or not.
Subscribe to:
Posts (Atom)





