Pages

7/24/2003

Windows 2000::Security Policy


secedit can be run with switches to force the application of policies from AD.
SECEDIT /refreshpolicy machine_policy [or user_policy] /enforce

7/22/2003

IP Accelerator


interesting product:
http://www.expand.com/product/overview.html

Citrix Performance Counter Recommendations


Reference from: http://www.tokeshi.com/index.php
Formatted into a table. Most of it is basic common sense and goes for any Windows server.
CounterRecommendation
processor utilizationless than 90%
processor interruptsaverage 100 per second
context switchesless than 500 per second
memory-available bytesgreater than 32 MB + 4-14 MB per user + 1 MB per idle session
memory-pages per secondless than 5
percentage of disk timegreater than baseline
disk queue length1.5 to 2.0, >2 may mean disk hardware incompatibility or failure
NIC Bytes Total / secondless than network transfer rates

7/21/2003

Citrix::Outlook::Execute PRF on first run


I haven't tried this but it sounds promising. It might trigger some ideas some day.
From a newsgroup:

Configure the registry to trigger Outlook to import the PRF file when Outlook starts up. You can use the Add/Remove Registry Entries page in Custom Installation Wizard or the Custom Maintenance Wizard to deploy these registry key options to your users. You can also use the wizards to distribute the PRF file to users by using the Add/Remove Files page.
Delete the following registry key value : HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Setup\First-Run.
In the HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Setup subkey, set the value of ImportPRF to a string value that specifies the name and path of the PRF file. For example, set ImportPRF to \\server1\share\outlook.prf.

Perl::Script::Rename Files


Below is a sample script depecting file directory operations. This was a fast and dirty script to rename files into a different name format. It doesn't deal with name collisions when users have same last name. I only had a handful of them to deal with:

$indir = 'c:\\dev\\picname\\input';
$outdir = 'c:\\dev\\picname\\output';

opendir(DIR, "$indir");
my @files = readdir(DIR);
closedir(DIR);

my $file;

foreach $file (@files) {
if ($file eq ".") {next};
if ($file eq "..") {next};
#input filename
my $infile = "$indir\\$file";

#output filename

my @temp = split(/(,\s|\s)/,$file);

my $newfile = "$outdir\\P-$temp[0].jpg";

print "$infile --> $newfile\n";

rename ($infile, $newfile);

}#end foreach $file