Archive for the ‘Windows’ Category

Windows Command Line Tips You Should Check Out

Friday, October 22nd, 2010

Linux geeks are proud of their command line prowess and generally have some tricks up their sleeves. While the Windows command line is not considered as powerful as a Linux’s, here are some Windows command line tips and tricks not everyone might know about.

Here I included a few examples, better-cooler tips are in this post: (I like the “sleep” command hack & the full screen cmd console….)

(more…)

Useful SSL debug info for IIS

Monday, February 22nd, 2010

Copied from random places:

  1. Tool: SSL Diagnostics, available from Microsoft.
    Very powerful tool for debuging SSL related problems. Highly recommended if you are having trouble with SSL on IIS.
  2. This command is for repairing the private key asscoiated with a cert. Usefull when the pk is shown as corrupted or missing.

    certutil -repairstore my “SerialNumber

    More info about privatekeys: http://support.microsoft.com/kb/889651/

  3. If you see this in SSL diagnostics (Like the one i saw today..):
    #WARNING: You have a private key that corresponds to this certificate but CryptAcquireCertificatePrivateKey failed’.

    The cure is here :)
    1. Set the correct permission for Machinekey folder C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

    2. Grant administrator and system Full Control Permissions. You should check ‘Replace permission entries on all child objects with entries shown here that apply to child objects’ check box on the ‘Advanced’ dialog.

    3. Restart IIS (IIS manager > All Tasks > Restart IIS…)

    Original post: http://www.derkeiler.com/Newsgroups/microsoft.public.inetserver.iis.security/2005-01/0205.html

Thanks to those info & tools I finally solved the damn SSL cert problem on my TMS sever today, yeah~

超级大懒蛋–past papers

Wednesday, May 27th, 2009

实在是懒得打印,懒得下载,懒得开CL的网页慢慢找past paper了…

也懒得写个GUI来弄了..

还是拿XML来玩了吧….

下面的是给IE7用的…在搜索框中加上一个Past Paper的Search…只要打入什么”2002p8q12″之类的,就可以直达那个Paper PDF.嘎嘎嘎嘎嘎嘎

  < ?xml version="1.0" encoding="UTF-8" ?>
- 
  Past Papers
  CST Past Papers from CL 
UTF-8
  
  

现在懒得改了,以后写个自动安装的,通吃所有浏览器…哈哈哈

不能用Windows图片和传真查看器打开图片?

Thursday, February 12th, 2009

嘎,我中病毒了…不能开图片了….

解决方法如下:

在“运行”中输入regsvr32 shimgvw.dll 

xmnt2000 not found…

Tuesday, September 16th, 2008

用了PQMagic…有了’尾巴’,每次开机都显示”xmnt2000 not found….”, 虽然没什么影响,但看的不爽的东西就要把它和谐掉吗~

改这里就好了:

运行>Regedit进注册表

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\

看到BootExecute键值下内容为:

autocheck xmnt2002 /bat=”C:\WINDOWS\TEMP\PQ_BATCH.PQB” /win=”C:\WINDOWS”

/dbg=”C:\WINDOWS\TEMP\PQ_DEBUG.TXT” /ver=262144 /prd=”PartitionMagic”

删之,留下面的就好了…
autocheck autochk *

喜欢看长篇大论细致版的可以看看这个: http://hi.baidu.com/05l6/blog/item/6fb2401f63fed9cba6866950.html

Windows命令行结束进程

Wednesday, August 6th, 2008

 呵呵,今天写了个偷懒小脚本,这样每次玩魔兽就不用手动把每个程序都关掉了,嘻嘻

核心命令就是这个:

TASKKILL   [/S   system   [/U   username   [/P   [password]]]]  
                    {   [/FI   filter]   [/PID   processid   |   /IM   imagename]   }   [/F]   [/T]  
   
  描述:  
          这个命令行工具可用来结束至少一个进程。  
          可以根据进程   id   或图像名来结束进程。   

(more…)

Our last security lecture!

Tuesday, May 20th, 2008

Rick Roll <- click to get rick-rollin’ !

 
A dump of our lecturer's email:

(more…)

System Idle Process

Monday, May 5th, 2008

很多朋友在查看CPU占用率时,一个叫做”System Idle Process”的进程常常会显示为90-99%。

不必担心,实际上恰恰相反的是这里的90-99%是CPU资源空闲了出来的资源。

这里的数字越大表示 CPU可用资源越多,数字越小则表示CPU资源越紧张。

System Idle Process是XP给CPU准备的休息室
 

[转]千元电脑跑Win XP全攻略及心得

Thursday, April 24th, 2008

使Windows XP加速的三招,设置起来非常简单, 先给大家介绍一下…

1、减少开机磁盘扫描等待时间,开始→运行,键入:  chkntfs /t:0 <-0是等待的时间

2、删除系统备份文件:

在各种软硬件安装妥当之后,其实XP需要更新文件的时候就很少了。开始→运行,敲入: sfc.exe /purgecache 然后回车即可,近3xxMb。

3、压缩文件夹:

Windows XP内置了对.zip文件的支持,可以把zip文件当成文件夹浏览。不过,似乎没人用这个把…我觉得挺磋的。

实现方法非常简单,只需取消zipfldr.dll的注册就可以了,点击开始——运行,

敲入: regsvr32 /u zipfldr.dll。然后回车即可。

下面是某”大虾”的文章:

绿色代表我以测试成功的

红色表示测试失败或对系统有影响的

默认的是没有测试过的

(more…)

终于修好了我的Internet连接共享

Monday, April 21st, 2008

Yeah! 我的Internet连接共享(ICS)终于被我修好了!功夫不负有心人呢~呜呜~

我一直想用Windows自带的ICS功能共享网络来用我的iTouch…这样我就可以躺床上上网了哟哦哦噢

可惜不知道为什么,我电脑一直都不能打开ICS,每次打开的时候都嘣出来个绕口令: “指定的服务未以已安装的服务存在”

今天我突然间春心萌动了…想要和ICS开战,把我的iTouch从闹钟功能中解救出来…于是我research嘎research,终于:

Solution 1:

Windows开始菜单 -> 运行 -> 输入: sfc /scannow

这个是Windows System File Check, 能恢复重要的系统文件,运行完请重新启动.

Solution 2: 如果按以上方法还不成功,请试下面的:

下载http://windowsxp.mvps.org/reg/sharedaccess.reg运行, 选择”确定”将信息加入注册表, 重新启动

这个注册表文件是打开共享的.

原文在此http://windowsxp.mvps.org/sharedaccess.htm

好冷,我要到躺着上网去了….Good Luck!