Profile,Profile.Profile.....

简介:

悲剧的发生在当你使用XenApp发布相关应用时,你会发现在你每一台XenApp服务器默认"C:\Documents and Settings"越来越多的用户Profile,有时用户过量,ProFile过大,可能导致你的C盘不够用:
解决方法:

1、把用户Profile重新定位到其他盘:

步骤:打开注册表“regedit”

 

修改你想更改的位置,
如果你还修改administrator的位置(不建议)
 

注意:SID号最后端为"500"均为管理员的标志

以上为治标不治本方法,当然,时间长了你还是需要对长期不活动的用户配置文件进行清理。问题是你如何知道哪些用户不活动?

工具:delprof
下载:http://www.microsoft.com/downloads/en/details.aspx?FamilyID=901A9B95-6063-4462-8150-360394E98E1E

参数:

Delprof.exe uses the  delprof /q /i /p /r /c:\\computer name /d:days syntax. You can use the following parameters with Delprof.exe:
/q : This parameter runs Delprof.exe in quiet mode. When you use this parameter, you are not prompted to confirm the deletion of each profile.
/i : This parameter ignores any errors that may occur.
/p : This parameter specifies that a message is displayed that prompts you to confirm the deletion of each profile.
/r:  This parameter specifies that delete the roaming profile cache only. Local profiles on the machine will not be deleted.
/c:\\ computer name: This parameter specifies the computer name on which to run Delprof.exe.
/d: days: This parameter specifies the number of days after which Delprof.exe considers the profiles as inactive. Profiles that have not been used for a period of time that is longer than the specified value are deleted.

/d参数比较有用,可以让你清除多少天不活动的用户配置文件。其他参数很简单,不详述。
警告:Delprof.exe 将删除用户配置文件中存储的所有数据。这包括桌面设置、收藏夹、“Application Data”文件夹中包含的程序特定的数据以及“My Documents”文件夹的内容。请使用文件夹重定向方法把有必须的数据重定到其他位置。 


 运行错误:
Failed to open list of profiles.
Access is denied.
请确定你是以管理员身份运行delprof


本文转自 zhxhua 51CTO博客,原文链接:http://blog.51cto.com/virtualtop/514266 ,如需转载请自行联系原作者

相关文章
|
8月前
|
存储 编解码 监控
h264与x264支持的Profile
h264与x264支持的Profile
83 0
|
Shell 数据安全/隐私保护
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2
53 0
|
Shell Linux Go
Linux profile1,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part1
Linux profile1,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part1
70 0
|
Java 测试技术 开发者
Profile 配置|学习笔记
快速学习 Profile 配置
290 0
Profile 配置|学习笔记
|
SQL Perl
profile
SQL> declare 2 v_hints sys.sqlprof_attr; 3 begin 4 v_hints:=sys.sqlprof_attr('full(test)'); 5 dbms_sqltune.
1197 0
|
Shell Linux
/etc/profile和~/.bash_profile的区别与联系
/etc/profile 为系统的每个用户设置环境信息和启动程序,当用户第一次登录时,该文件被执行,其配置对所有登录的用户都有效。当被修改时,必须重启才会生效。
3321 0
|
Shell Unix
|
SQL Oracle 关系型数据库
PROFILE
一、创建 CREATE PROFILE LIMIT FAILED_LOGIN_ATTEMPTS 6 PASSWORD_LIFE_TIME 60 PASSWORD_REUSE_TIME 60 PASSWORD_REUSE_MAX 5 PASSWORD_VERIFY_FU...
1178 0