Tech Tips

How to get Windows to show Updates that you have previously declined.

So, sometime during a nag from the Windows Update dialog you unchecked (declined) an update. Now you decide you want that update after all.

Here's what you do:
Open the Control Panel
Select "Automatic Updates"
Click on "Offer updates that I've previously hidden"
Wait a while -OR- run "wuauclt /detectnow" from a command prompt.
You will soon get the Windows Update icon in your task tray with the updates you previously declined.

That's it!

How to set up RHEL4 to authenticate users on a Windows Server 2003 Active Directory

There are many guides on how to set this up. However, they are either too complex, out-dated, or just don't work for Red Hat Enterprise Linux or CentOS.

Here are the quick steps:

Install Samba Server:
yum install samba samba-common

Set the above service to start at boot time:
chkconfig smb on
chkconfig winbind on

Edit your /etc/samba/smb.conf file and make it look something like this:
# Global parameters
[global]
workgroup = MYDOMAIN
realm = MYDOMAIN.ORG
preferred master = no
server string = Samba file and print server
security = ADS

How to solve: Can't use an undefined value as a HASH reference at /usr/share/perl5/XML/Stream.pm line 1165

The error: "Can't use an undefined value as a HASH reference at /usr/share/perl5/XML/Stream.pm line 1165" occurs when your Perl script is trying to use SASL authentication against a Jabber/XMPP server that does not support it or at least does not expect it.

Comment the following lines out of /usr/share/perl5/Net/XMPP/Protocol.pm and you should be good to go:

# if($self->{STREAM}->GetStreamFeature($self->GetStreamID(),"xmpp-sasl"))
# {
# return $self->AuthSASL(%args);
# }

Delete and Clear TFS Workspaces

So, Team Foundation Server won't let you create a new workspace? Perhaps the computer name used to belong to someone else who used to have a workspace. Here is how you delete the old workspace.

Note: You must be logged in as a TFS Administrator. You can issue this command on any computer that is in the domain. You do not have to be on the client computer.

cd C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
tf.exe workspace /delete /server:[your_TFS_server] [computer_name];[old_username]

SQL Server 2005 error when trying to create a new table: "Property DefaultSchema is not available for Database [dbName]"

If you receive this error when trying to create a new table, then read on.
Property DefaultSchema is not available for Database '[dbName]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.

This error occurs when all of the following conditions are met:
-You try to use the GUI to create a table
-Are not sysadmin
-Your access to the SQL Server 2005 database is from a Windows group

This is a known bug. There are two workarounds.

SQL Server 2005 error when checking db properties: "property owner is not available for database [dbname]"

The above error happens when the original dbo login of a database has been removed from SQL Server.

To solve the issue, change 'dbo' to match a correct login, using either sp_changedbowner or with the following SQL code:
ALTER AUTHORIZATION ON DATABASE::[dbname] TO [somevalidlogin]

Free Portable Applications for Your USB Flash Drive

Here are a couple of great sites where you can get free utilities and applications that are specialized to run right off of a USB Flash Memory Drive. These are very handy.

http://portableapps.com

http://www.portablefreeware.com

How to determine which processes are running under svchost.exe in Windows

So, you open up task manager and see that svchost.exe is consuming huge amounts of memory and/or CPU time. The problem is that many services run under svchost.exe, so you cannot tell which process is causing the problem.

First step: In task manager select "View->Select Columns" and place a checkmark in "PID (Process Identifier)"

Second step: Open a command prompt and enter the folowing:
tasklist /svc /fi "imagename eq svchost.exe"

How to list/clear NetBIOS cached hostname table

Windows caches hostname/IP entries that it discovers with NetBIOS. Sometimes you may find yourself needing to purge these entries so Windows can rediscovery the IP of computers on your network.

Use these two commands to list and purge the NetBIOS hostname table:

List the name table:
nbtstat –c

Purge and reload the name table:
nbtstat –R

How to Reset Local Group Policy Objects to default settings

After much searching on how to do such a simple task as reset local GPOs back to their defaults, I finally found the real answer. I tried this on Windows XP, although it is said to work for 2000 and 2003 Server as well.

1. If you need to clear IPSec settings and software restriction settings do these two sub-steps, otherwise go on to the second step:
a. reg delete hklm\software\policies\microsoft /f
b. regedit /s "c:\policies.reg" (where c:\policies.reg is the exported hklm\software\policies\microsoft hive of a virgin or target configured machine)

Syndicate content