old

old

12/16/2008

 

系统安装完毕优化策略

系统刚刚安装完毕,优化策略,系个人总结。
1)安装系统完毕,关闭系统还原;
2)安装硬件驱动程序;
3)删除安装留下的临时文件,参考:
@echo off

  echo 正在清除系统垃圾文件,请稍等......

  del /f /s /q %systemdrive%\*.tmp

  del /f /s /q %systemdrive%\*._mp

  del /f /s /q %systemdrive%\*.log

  del /f /s /q %systemdrive%\*.gid

  del /f /s /q %systemdrive%\*.chk

  del /f /s /q %systemdrive%\*.old

  del /f /s /q %systemdrive%\recycled\*.*

  del /f /s /q %windir%\*.bak

  del /f /s /q %windir%\prefetch\*.*

  rd /s /q %windir%\temp & md %windir%\temp

  del /f /q %userprofile%\cookies\*.*

  del /f /q %userprofile%\recent\*.*

  del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

  del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

  del /f /s /q "%userprofile%\recent\*.*"

  echo 清除系统LJ完成!

  echo. & pause
4)关机,Ghost!
5)进一步优化,并关闭无用的系统服务,参考:

Windows XP终极优化设置大全

Windows xp服务详解

6)设置用户组,将自己administrator权限干掉。更改默认administrator用户名,更甚者利用NTFS权限设置,去掉所有访问权限及所有权,前提是建立一个自己知道的用户名并赋予所有权。不然...........................................................
7)利用runas命令安装所需应用程序!

runas [{/profile|/noprofile}] [/env] [/netonly] [/smartcard] [/showtrustlevels] [/trustlevel] /user:UserAccountName program


Parameters

/profile : Loads the user's profile. /profile is the default.

/no profile : Specifies that the user's profile is not to be loaded. This allows the application to load more quickly, but it can also cause a malfunction in some applications.

/env : Specifies that the current network environment be used instead of the user's local environment.

/netonly : Indicates that the user information specified is for remote access only.

/smartcard : Indicates whether the credentials are to be supplied from a smartcard.

/showtrustlevels : Lists the /trustlevel options.

/trustlevel : Specifies the level of authorization at which the application is to run. Use /showtrustlevels to see the trust levels available.

/user: UserAccountName : Specifies the name of the user account under which to run the program. The user account format should be user@domain or Domain\User.

program : Specifies the program or command to run using the account specified in /user.

/? : Displays help at the command prompt.

8)无杀毒软件闯天下!

标签:


评论: 发表评论

订阅 博文评论 [Atom]





<< 主页

存档

11/2008   12/2008   01/2009  

This page is powered by Blogger. Isn't yours?

订阅 博文 [Atom]