Posted by on Feb 18, 2012 in Blog, Microsoft Windows | 2 comments

## 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.

Posted by on Feb 15, 2012 in Blog, Microsoft Windows | 0 comments

## 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.

Posted by on Feb 7, 2012 in Blog, Microsoft Windows | 2 comments

## 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:
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.

Posted by on Jan 28, 2012 in Blog, Microsoft Windows | 16 comments

## Windows 7 network tray icon showing wrong status

I have 2 seperate Windows 7 computers (one a laptop and one a desktop).  That were showing incorrect network status icons.

The laptop had a wireless connection and was able to surf the internet and network with no problems yet it showed the bars with an asterix, which means not connected but it sees wireless networks to connect to.

The desktop had a wired connection that was functioning properly and was able to surf the internet and network yet it showed the wired icon with a red x, which mean no network cable plugged in.

Several Google searches and a few attempts that others had listed later I was still looking at the same wrong icons.  I noticed on both machines a network adapter that said “Incoming Connections.” I don’t remember seeing that before and don’t know what it’s there for so I did the natural thing and deleted them. On both machines the network icons were now showing the correct status. I tried to find an explanation as to what that was but only found mention of VPN connections even though neither machine had any VPN connections setup on them. Weird fix to a wierd problem.

Posted by on Jan 24, 2012 in Blog, Microsoft Windows | 0 comments

## Microsoft Hyper-V error: Hypervisor driver required is not installed or is disabled

I wanted to test out Microsoft Sharepoint Server and decided to test it on a Hyper-V virtual server.  I guess I’ve finally learned not to experiment directly on production servers finally.  That tends to possibly cause problems.
So, on one of my servers which I had recently updated to Windows Server 2008 R2 I decided to add the Hyper-V role and setup a test server.  After adding the role I kept getting error messages and Hyper-V wouldn’t start.

The error stated:
‘Hypervisor’ driver required by the Virtual Machine Management service is not installed or is disabled.  Check your settings or try reinstalling the Hyper-V role.

After some Googling I found several people saying I needed to make sure No-Excecute Memory Protection and Intel Virtualization Technology were enabled in the bios.  I was familiar with the second setting and had enabled it on machines before but not the first.  My server is an HP DL380 G5 and here are the steps for fixing the issue:

1.  Reboot the server and hit F9 to enter the Bios.
2.  Go to Advanced options > Processor Options
3.  Find the “No-Excecute Memory Protection” and enable it. (Hit enter)
4.  Find the “Intel(R) Virtualization Technology” and enable it. (Hit enter)
5.  Save and exit using F10

After reboot my Hyper-V is all happy and functioning.

Posted by on Jan 23, 2012 in Blog, Microsoft Windows | 3 comments

## Enable Ping responses on Windows Server 2008

I use Ping (not the sort of ping in the picture above) to make sure I can communicate with my servers all the time.  Windows Server 2008 doesn’t allow Ping responses through the Windows Firewall.
Here’s how to enable Ping responses:

Open the Windows Firewall Advanced settings (Open Network and Sharing Center, click Windows Firewall bottom left, then Advanced settings).

Find the File and Printer sharing (Echo Request – ICMPv4-In) in the Inbound Rules section and ICMPv6 if you want to enable IPv6 responses.
Double click each rule and select enabled or right-click and select Enable Rule.

You should now be able to ping the server.

Posted by on Jan 17, 2012 in Blog, Microsoft Windows | 0 comments

## Auto login for Windows 7

Here are two methods for auto login on Windows 7.  The first if for computers that are not members of a domain and the second is for those that are members of a domain.

Non-domain computer:
1.Press the Windows key + R on your keyboard to launch the “Run” dialog box.
3.Press Enter. The User Accounts window will display.
4.Uncheck the option “Users must enter a user name and password to use this computer”
5.Click “OK”
6.You will then be prompted to enter the current password and confirm it.

Domain computer:
1. Press the Windows key + R on your keyboard to launch the “Run” dialog box.
2. Type regedit and hit enter to open the Registry Editor
3. Then browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\
4. Set AutoAdminLogon  = 1 (Create it if it doesn’t exist.  Make it a string variable)
5. Set DefaultUserName = your username (Create it if it doesn’t exist.  Make it a string variable)
6. Set DefaultPassword = your password (Create it if it doesn’t exist.  Make it a string variable)
7. Set DefaultDomainName = your domain (Create it if it doesn’t exist.  Make it a string variable)

Posted by on Jan 15, 2012 in Android, Blog, Microsoft Windows | 1 comment

## Android browsing Windows 7 network shares

I’ve been trying unsuccessfully for a couple of days to get my Android tablet to browse network shares from my Windows 7 PCs.  No matter what I did or how many different clients I tried none of them would connect.  After messing with settings on both the tablet and my PCs even my iPad would not connect to any shares even though it was previously working.  The rest of my PCs would open the shares just fine.  Through troubleshooting the iPad I came across an article on Stratospherix‘s website based on a Microsoft knowledge base post that mentioned a registry setting sometimes needed changed to allow additional network clients to connect to Windows shares.  I’m not even entirely sure this is what fixed my issues but after changing this on one of my machines I was able to connect from both the iPad and my Android tablet.

Here’s the registry key to add:

• Click Start, click Run, type regedit and then click OK.
• Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
• Click Edit, point to New, and then click DWORD Value.
• Type IRPStackSize, and then press ENTER to name the value.
(The name is case-sensitive)
• Click Edit, and then click Modify.
• Click Decimal and in the Data Value box, type 30, and then click OK.
• Restart your PC and then re-try to connect with the app.

Update: 1/16/2012 – I tested this on another PC and can confirm that this fixed my connection issues.  I was not able to connect to another PC on my network on either my iPad or Android tablet.  I added the registry key, rebooted and was immediately able to connect both devices.  I still had issues using ES File Explorer and credentials that included special characters.  If I changed the password to one without special characters I was able to connect but with special characters it would give a login failure.  Other Samba clients like AndSMB or Astro worked with the special characters in the password.

Posted by on Oct 31, 2010 in Blog, Computer Tips, Microsoft Windows, Software | 0 comments

## Launch XBMC from Windows Media Center remote

I like Windows Media Center, but lately I’ve been liking XBMC more for streaming media to my TV. I bought a Roku player and love it, but (for now) there are things it doesn’t yet do that I want. Namely Hulu Plus (coming soon) and reliable, easy network streaming of my own content. PlayOn is not bad but just there yet for me plus it costs $49.99 plus$19.99 a year.
XBMC has an excellent interface and works well with streaming music and video from Windows shares.
I have a Windows Media Center remote that also works well with XBMC but the green button on it launches Media Center. A web search came up with Jacob Johnston’s blog who wrote a cool little tool for fixing this dilemma.
Get it here.
Jacob also has a launcher for Boxee if you prefer it to XBMC, available at the link above.

Posted by on Aug 11, 2010 in Blog, Computer Tips, Microsoft Windows | 0 comments

## Using XCopy and excluding files and or directories

I use XCopy to back stuff up because it’s fast and easy.  Until you add 11,898 files you don’t want to actually backup.
So I set about trying to figure out how to exclude directories and or files from the XCopy routine.

It turned out to be pretty easy.

I basically have 2 text files.  RunBackup.cmd and MyExcludes.txt
They both reside in the same folder.
The RunBackup.cmd text file has just the following line in it (all one line no line breaks):

xcopy /E /Y “C:\MySourceDirectory\subdirectory” “G:\MyDestinationDirectory\subdirectory\” /EXCLUDE:MyExcludes.txt

The MyExcludes.txt has the following line in it:

\Storage\

So this backs up everything in the source directory including subdirectories to the destination directory but excludes anything in a directory called \Storage and all sub-directories and files below that.

You can also put (each on a seperate line) things like:

\Storage\
.doc
.pdf

That would do the same as above but also exclude any .doc and .pdf files from any directories in the source.
Tested on Windows 7 Professional.

Posted by on Jul 15, 2010 in Blog, Microsoft Windows | 1 comment

## Sharepoint runtime error: “The browser or gateway element with ID ‘SKTDevicesSamSung’ cannot be found”

Sharepoint started erroring out and wouldn’t load today.  I had made a couple of changes to the server so I wasn’t sure which one had caused the problem.

After turning off custom errors so I could see the details, the error was: “Error: The browser or gateway element with ID ‘SKTDevicesSamSung’ cannot be found”

Right away I knew what did it but not sure why.  I was playing with interpreting the user agent strings that various browsers send to your server when they make requests.
I don’t really need to know what browser, version and OS is hitting our intranet but it was fun figuring out how to do it.  Well I had run the aspnet_registerbrowsers.exe -i command which loads info from .browser files to help with identifying web browsers.  There’s a bug that causes sharepoint to choke on the SKTDevicesSamSung element of the compat.browser xml file.

To fix it find these files (I had 2 because of 64bit Server 2008).
They were in my folders below:
c:\inetpub\wwwroot\wss\virtualdirectories\80\App_browsers\compat.browser
c:\inetpub\wwwroot\wss\virtualdirectories\16212\App_browsers\compat.browser

Following instructions from Microsoft had me delete the following lines from the compat.browser files:

<browser id=”InfrawareSamSung” parentID=”SKTDevicesSamSung”>
<browser id=”InfrawareLG” parentID=”SKTDevicesLG”>
<browser id=”InfrawareSKY” parentID=”SKTDevicesSKTT”>
<browser id=”InfrawareMotorola” parentID=”SKTDevicesMotorola”>

Remove these lines from the opening tag <browser…> including the line with </browser>.

After removing these lines I re-ran the aspnet_registerbrowsers.exe -i command (not sure if that’s necessary or not).
That fixed the issue.

Posted by on Oct 26, 2009 in Blog, Computer Tips, Microsoft Windows | 1 comment

## attcm.exe “application failed to initialize properly (0xc00000005)” error trying to launch AT&T connection manager – Fix

After installing the software and drivers for our AT&T air card on a Windows XP machine I was unable to launch the connection manager.
Everytime I launched it we recieved an error message stating “application failed to initialize properly (0xc00000005).”
Finally after several Bing searches (yes I said Bing, not Google) and trying a few different “fixes” I had success.
I’m not sure which of the final 2 fixes actually did the trick but they were:
Open command prompt and type:   sfc /scannow
This causes the system file checker to run and fix any issues with system files.
I’m pretty sure that’s what fixed it but at the same time I also enabled and disabled the Data Execution Prevention setting under system properties/Performance/Data Execution Prevention tab.
By default it’s set to “Turn on DEP for essential Windows programs and services only” I changed it to “Turn on DEP for all programs and services except those I select:” hit apply, did not reboot and then changed it back and then rebooted.
After rebooting the AT&T connection manager launched but got hung.  I rebooted again and ever since it’s been working fine.

During the process I also ran to following 2 commands, I don’t think they helped but I put them here since I did it during the troubleshooting:
Note:  I vaguely understand what these do and don’t suggest you do this unless you know what you are doing:
CACLS %systemroot%\System32\*.dll /E /G BUILTIN\Users:R
CACLS %systemroot%\System32\*.ocx /E /G BUILTIN\Users:R

Posted by on Oct 21, 2009 in Blog, Microsoft Windows | 5 comments

## “The Datasheet view is attempting to retrieve data from a different domain” error in Microsoft Windows Server Sharepoint Services 3.0

I kept getting this error message that stated “”The datasheet view is attempting to retrieve data from a different domain…contact your system administrator to resolve this issue.”

Well, I am the system administrator and I had no idea how to resolve this issue!  After a bit of searching on the web I found someone who mentioned load balancing and alternate access mappings.
I’m not doing any load balancing so I looked further into alternate access mappings and found instructions on changing these mappings.
You have to enter the Sharepoint Administration console.  When you install Sharepoint it’s setup on a random port on your server.  In my instance it was http://intranet.domain.com:14212
You can open IIS and right click on the Sharpoint Central Administration site and select bindings it’ll tell you which port it’s setup on.

Once you are get to the Sharepoint Administration, click on operations on the left side then Alternate access mappings on the right side.
So by default I had http://intranet  (this will likely be the name of your server).
I then added an internal url (there’s a button along the menu bar for this) with http://intranet.domain.com

After doing this I no longer get the datasheet view error and am able to edit and save the changes.

Note:  I am using Windows Sharepoint Services 3.0 and not the Sharepoint Server 2007.  I don’t know if there’s a difference in the setup or if this error even occurs on that version.

Posted by on Oct 15, 2009 in Blog, Computer Tips, Linux Tips and Tricks, Microsoft Windows | 0 comments

## Add OSX to Fedora Grub triple boot of Windows 7, OSX and Fedora

I managed to get triple booting setup with OSX (iDeneb 10.5.7), Fedora 10 and Windows 7 on my Lenovo T400.

I did it by first installing Windows 7 then OSX next.  After the OSX install I couldn’t boot to Windows 7.
To fix this I booted onto the Windows 7 installation disk and selected repair then command prompt.
At the command prompt run diskpart.  At the diskpart prompt do the following:
list disk
select disk n (n is the disk where Windows is installed)
list partition
select partition n (n is the partition where Windows is installed)
active
exit
reboot

Now Windows 7 should boot, if it doesn’t (and mine didn’t normally) boot onto the Windows 7 install again and select automated recovery of the boot area.
Windows 7 now boots and OSX doesn’t.  Install EasyBCD in Windows, this is used to edit the bootloader.  You can add the OSX in the Add/Remove entries section.
Save and reboot.  Now you should be able to dual boot Windows 7 and OSX.

The next step was to install Fedora 10 (I tried 11 but there was a bug that kept the partitioning tool from installing into the free space on my drive.)
After installing Fedora 10 I was able to dual boot into Windows 7 or Fedora but no OSX using the Grub bootloader.

Next we need to edit the Grub config file that controls what shows up on the menu.  Within Fedora open a terminal and type:
su and hit enter
This opens the menu.lst file in a text editor.  The first thing I did was change the Windows option from Other to Windows 7 in the title field.

title OSX
root (hd0,2)

Now the root(hd0,2) you have to customize to your setup.  For mine the OSX partition was the 3rd partition on the drive so it ends up as hd0 (the first hard drive),2 (3rd partition starting at 0)

Save and reboot.  You now can triple boot Windows 7, Fedora and OSX.  In theory.
I also changed the default from 0 (Fedora) to 1 (Windows).  This way it automatically goes into Windows (my choice OS) if nothing is selected.

Posted by on Aug 29, 2009 in Blog, Microsoft Windows | 2 comments

## Slow remote desktop from Windows 7 to a Server 2008 machine

I’ve upgraded one of our servers to Windows Server 2008 64bit.  After finishing the install I connected to the server using remote desktop and found the remote desktop session to be super sluggish and painfully slow.  Sitting at the console showed no issues with speed.

After a bit of searching the web I found the following instructions fixed the problem:

(On the Server 2008 machine)
Go to Manage Network Connections, right click on your network connection and click properties, click Configure then click on the advanced tab.
Select “IPv4 Large Send Offload” and change the value to Disable.
After about 20 seconds you can reconnect your remote desktop session and it’s all good.

I don’t recommend doing this on a production server until you know what consequences are involved.
I tend to just do then see what happens but this isn’t always a good idea!  :)

Posted by on Jul 5, 2009 in Blog, Computer Tips, Microsoft Windows | 0 comments

## Firefox keyboard shortcuts

I posted these a couple of years ago and I found a few more to add to them:
Close a tab = Ctrl + W
New tab = Ctrl + T
Move to address bar = Ctrl + L
Move to Search engine box = Ctrl + K
Go to next Search engine = Ctrl + Arrow up or down
Next Tab = Ctrl + Tab
Previous Tab = Ctrl + Shift + Tab

Posted by on Jun 1, 2009 in Blog, Microsoft Windows | 34 comments

## Active Directory Users and Computers in Windows 7

Windows 7 is officially my favorite OS yet!

Here’s how to get the Active Directory Users and Computers installed on Windows 7.  It’s not quite as clear cut as with XP.

First you need to download the Remote Server Administration Tools (that’s the new name for what used to be Server 2003 Admin Pak).

It’s available here from Microsoft.

After you install it you won’t find it anywhere except for a help file in the Adminstrative tools labeled “Remote Server Administration Tools”  This help file was not very helpful.

The key to the puzzle is to go to the control panel and click on programs.
Then click on Turn Windows Features on or off.
In the list of features you’ll find the “Remote Server Administration Tools” section.
Click on the plus next to “Role Administration Tools”.
From there you can enable the Active Directory tools.  After you hit ok you’ll now have Active directory users and computers under the administrative tools.

Posted by on Mar 20, 2009 in Blog, Microsoft Windows | 0 comments

## Windows 7 – Remove the “Send Feedback” button from windows

Here is how to remove the “Send Feedback” button that shows up on all windows in Windows 7 beta.

Open Regedit
Navigate to HKEY_Current_User\Control Panel\Desktop
Find the FeedbackTool-Enabled key
Double click the value and change the data to 0
Log off and on again.
No more “Send Feedback!”

(Found in CPU Computer Power User magazine)

Posted by on Nov 24, 2008 in Blog, Computer Tips, Microsoft Windows | 0 comments

## Can’t re-install IIS 7 on Vista “an error has occurred…”

After messing with IIS and experimenting with ASP and ASP.net stuff my IIS had become wacky.  So I decided to uninstall it and re-install.  The uninstall seemed to go ok but when I tried to reinstall I kept getting an error message that said “An error has occurred. Not all of the features were successfully changed.”  That was it, no details or clues as to what was going on.

So, I did the first thing you should always do when troubleshooting, reboot.

After a reboot I still got the error message.  So I busted out the next thing you should always do when troubleshooting…I Googled it.  The first few links were dead ends and then I found the answer in a forum.

Un-install the “Windows Process Activation Service”.  Reboot.  Reinstall IIS and I’m back in business.

What is the Windows Process Activation Service?  Well SearchWindowsServer.com defines it as “WPAS manages application pools and worker processes running on your machine for both HTTP and non-HTTP requests.”  I vaguely understand what that means, but the important part is my IIS problem is fixed.

Posted by on Oct 25, 2008 in Blog, Computer Tips, Microsoft Windows | 0 comments

## Return normal Run As functionality to Vista

I love Windows Vista, but every now and then I run up against something that just drives me crazy.  I found another of those today when messing with my laptop.  It all started when I was moving some files around and kept getting prompted “are you sure?” by the OS.  YES I’M SURE for the 30th time!  I realize it’s meant for my protection, but this is too annoying.

So, I went in and turned off the UAC (user access control).  After that no more prompts!  Then the next day rolls around and all of the sudden I can’t run MSConfig.  I had made some changes to my domain account so I figured that must be the problem.  No worries, I can just use Run as Administrator and fix it.  Nope, still doesn’t work.  Access is denied.

After 15 minutes of Googling I find that disabling the UAC messes with the standard Run as administrator.  Ok, well, how about the old Run As like it was in XP?  Nope it’s not there.

15 more minutes of Googling and I find this TechNet page. This little tweak puts the standard old “Run as” dialoge back.  After installing this I’m now able to right click and just under the default “Run as Administrator” (which now doesn’t work because of UAC) I have “Run as different user”  This allows me to run MSConfig and fix the service I turned off which broke Photoshop CS4!

Sheesh!
PS. I’m posting the install for ShellRunas on my site so I can get to it faster.  You are welcome to download it from here or just get it from the Microsoft Technet site.

Now I need to go turn the UAC back on.

Update:  11/05/08
I also found that the .msi (Microsoft installer packages) extension does not give you the ability to do run as.  To fix it make a new text file with the following text:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command]
@=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\
73,00,69,00,65,00,78,00,65,00,63,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,\
00,69,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00

Save that as a .reg file then double click it.  That will import this setting and allow you to right click on a .msi file and perform run as.  You can also just download the .reg file from here.