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

 

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.

UPDATE: Or you can also simply type ‘timedate.cpl’ on the command line as an admin to bring up the control panel applet.

[src]

 

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.

 

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. The better alternative is Putty. With Putty you can also have Raw, Telnet, Rlogin, and SSH sessions in addition to Serial. You can download Putty from here.

 

Windows Administrators can change the power configuration policy from the command line using the powercfg.exe ultility present on all Windows XP/2003 systems.

To list the current policies
POWERCFG /list

To change the active policy
POWERCFG /SETACTIVE "policy_name" (replace policy_name with a real policy name)

The following example sets the “Home/Office Desk” profile to the given values.
POWERCFG /CHANGE "Home/Office Desk" /monitor-timeout-ac 15
POWERCFG /CHANGE "Home/Office Desk" /monitor-timeout-dc 10
POWERCFG /CHANGE "Home/Office Desk" /disk-timeout-ac 20
POWERCFG /CHANGE "Home/Office Desk" /disk-timeout-dc 15
POWERCFG /CHANGE "Home/Office Desk" /standby-timeout-ac 25
POWERCFG /CHANGE "Home/Office Desk" /standby-timeout-dc 20
POWERCFG /CHANGE "Home/Office Desk" /hibernate-timeout-ac 0
POWERCFG /CHANGE "Home/Office Desk" /hibernate-timeout-dc 0
POWERCFG /CHANGE "Home/Office Desk" /processor-throttle-ac ADAPTIVE
POWERCFG /CHANGE "Home/Office Desk" /processor-throttle-dc ADAPTIVE

You can also change profiles being used.
POWERCFG /SETACTIVE "Always On"

To create a new profile
POWERCFG /CREATE "New Policy"
POWERCFG /CHANGE "New Policy" /monitor-timeout-ac 15
POWERCFG /CHANGE "New Policy" /monitor-timeout-dc 10
...
...
POWERCFG /CHANGE "New Policy" /processor-throttle-ac ADAPTIVE
POWERCFG /CHANGE "New Policy" /processor-throttle-dc ADAPTIVE
POWERCFG /SETACTIVE "New Policy"

Links
How to use Powercfg.exe in Windows Server 2003
Powercfg Command-Line Options
Using Powerconfig.exe in a logon script to configure power management settings

© 2012 !NSFW Suffusion theme by Sayontan Sinha