Archive for the 'windows' Category

psexec to install msi on remote pc

psexec \\remotepc -u Domain\User -p Password msiexec /i "pathto.msi switches"

Grayed out/Missing HTTP Filter context menu in ISA 2006

This one had been bothering me for quite some time now. Ever since upgrading from ISA 2004 to ISA 2006, I noticed that the context menu item for editing the per rule HTTP Filter settings was missing from all the web publishing/access rules.

Grayed out filtering

The only way I could edit these settings was the HTTPFilterConfig.vbs script which is included in the ISA SDK. This script lets you import the filter settings to a rule from an XML file or export them to an XML file from a rule for which the filter settings have already been modified. This works quite well but is a hassle every time a rule needs to be modified.

It turns out that the Web Proxy Filter must be enabled for the HTTP protocol. Without this enabled, you loose the HTTP filter configuration menu. If you dont want to enable the Web Proxy filter, as it may not work well with some sites, enable it temporarily, change the HTTP filter setting and then disable it. The HTTP filter settings will still remain active. Problem solved.
HTTP ProtocolEnable Web Proxy Filter

Changing Windows timezone from the command line

To change the timezone from the command line in Windows, type the following at the prompt and press enter. This will open up the timezone setting window from the Control Panel.

RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z US Eastern Standard Timep

In a limited access account, (all members of the USER group) you can run this command using Runas.

runas /u:%computername%\administrator cmd

followed by

RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z US Eastern Standard Timep

This method works in both XP and Vista.

[src]

Adding Ubuntu to Active Directory with Likewise Open

The company I work for has been a Windows only shop for a long time and has recently starting moving towards Linux. We’re growing at fast pace and sustaining our operations remaining a Windows shop will be too expensive. That’s not to say we’re completely ditching MS.

I recently put into service a new server running Ubuntu Server 8.04.1 to host our SVN and continuous build server (Hudson). I was looking for a way to authenticate the server against Active Directory and came across Likewise Open. I was surprised at the simplicity of the whole setup.

  1. sudo apt-get install likewise-open
  2. sudo domainjoin-cli join yourdomain.com yourADusername
  3. sudo update-rc.d likewise-open defaults
  4. sudo /etc/init.d/likewise-open start

Just make sure to replace yourdomain.com and yourADusername with your own domain name and active directory username. If you’re using a firewall, which you should be, make sure the required TCP/UDP ports are open.

I still need to figure out how to mount network shares automatically. I’ll keep this post updated with my findings.

No HyperTerminal in Vista, use Putty instead

I found out today that HyperTerminal is no longer included in Windows Vista when I wanted to connect to the console port of a switch. You can still get HyperTerminal Personal Edition from Hilgraeve, the company Microsoft licensed the software from or you can use Putty. With Putty you can also have Raw, Telnet, Rlogin, and SSH sessions in addition to Serial. You can download Putty from here.