<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>简单生活 -- Kevin Yang的博客 &#187; 权限</title>
	<atom:link href="http://www.imkevinyang.com/tags/%e6%9d%83%e9%99%90/feed" rel="self" type="application/rss+xml" />
	<link>http://www.imkevinyang.com</link>
	<description>It&#039;s all about sharing</description>
	<lastBuildDate>Sun, 05 Feb 2012 15:37:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>解决新创建的windows用户无法访问TFS的问题</title>
		<link>http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aetfs%e7%9a%84%e9%97%ae%e9%a2%98.html</link>
		<comments>http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aetfs%e7%9a%84%e9%97%ae%e9%a2%98.html#comments</comments>
		<pubDate>Thu, 12 May 2011 14:37:52 +0000</pubDate>
		<dc:creator>Kevin Yang</dc:creator>
				<category><![CDATA[疑难杂症]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[IIS应用程序池]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[windows用户]]></category>
		<category><![CDATA[无法访问]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aetfs%e7%9a%84%e9%97%ae%e9%a2%98.html</guid>
		<description><![CDATA[<p>TFS在安装完成之后会创建一个&#34;Builtin\Administrators&#34;组，可以管理TFS。从名字上来看，这个组应该是映射到windows的administrators组。看里头的成员清单，确实也是windows所有管理员帐号成员。</p>
<p>但是有时候新建一个windows管理员账号&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>TFS在安装完成之后会创建一个&quot;Builtin\Administrators&quot;组，可以管理TFS。从名字上来看，这个组应该是映射到windows的administrators组。看里头的成员清单，确实也是windows所有管理员帐号成员。</p>
<p>但是有时候新建一个windows管理员账号的时候，这个账号却无法连接上TFS，总是提示没有权限，过几天又突然可以访问，就没搭理这个问题。后来一次出问题的时候，我无意中检查了一下&quot;Builtin\Administrators&quot;组的成员，发现新建的用户竟然没有在里面！看来，这个组虽然是映射到windows的administrators组，但是并不是实时刷新的。</p>
<p>找到问题所在，那解决思路就是让TFS强制刷新这个分组即可。google了一下，似乎没有这样的命令行。想到IIS中有一个TFS应用程序，客户端就是通过HTTP来访问TFS的，重启这个应用程序应该可以达到效果。找到TFS对应的应用程序池，回收之，再看回&quot;Builtin\administrators&quot;组，新建的用户果然有了，也可以正常访问TFS了。</p>
<p>希望此文对你有帮助~</p>
<p>== <a style="font-family: comic sans ms; color: black; font-weight: bold; text-decoration: none" title="解决新创建的windows用户无法访问TFS的问题" href="http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aeTFS%e7%9a%84%e9%97%ae%e9%a2%98.html" target="_self">Kevin Yang</a> == </p>

	标签：<a href="http://www.imkevinyang.com/tags/administrator" title="administrator" rel="tag">administrator</a>, <a href="http://www.imkevinyang.com/tags/iis%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e6%b1%a0" title="IIS应用程序池" rel="tag">IIS应用程序池</a>, <a href="http://www.imkevinyang.com/tags/tfs" title="TFS" rel="tag">TFS</a>, <a href="http://www.imkevinyang.com/tags/windows%e7%94%a8%e6%88%b7" title="windows用户" rel="tag">windows用户</a>, <a href="http://www.imkevinyang.com/tags/%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%ae" title="无法访问" rel="tag">无法访问</a>, <a href="http://www.imkevinyang.com/tags/%e6%9d%83%e9%99%90" title="权限" rel="tag">权限</a>, <a href="http://www.imkevinyang.com/categories/techarticles/knottyproblems" title="疑难杂症" rel="tag">疑难杂症</a><br />

	<h4 style="background-color:#3B3B3B;border-bottom:2px groove gray;color:#F2F2F2;margin-top:20px;padding:6px 6px 6px 15px;margin:20px 0px 0px 0px">你可能对下面的文章感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.imkevinyang.com/2011/01/tfs%e6%97%a0%e6%b3%95%e5%88%9b%e5%bb%ba%e6%96%b0%e7%9a%84team-project.html" title="TFS无法创建新的Team Project (2011/01/04)">TFS无法创建新的Team Project</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/12/win7vista%e9%ab%98%e7%ba%a7%e7%94%a8%e6%88%b7%e5%bf%85%e5%a4%87%e7%9a%84%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95take-back-my-ownership.html" title="Win7/Vista高级用户必备的右键菜单Take back my Ownership! (2009/12/06)">Win7/Vista高级用户必备的右键菜单Take back my Ownership!</a> </li>
	<li><a href="http://www.imkevinyang.com/2011/06/%e5%8d%87%e7%ba%a7tfs-2010%e4%b9%8b%e5%90%8e%e4%bf%ae%e5%a4%8d%e5%8e%9f%e6%9c%89%e5%b7%a5%e4%bd%9c%e5%8c%ba.html" title="升级TFS 2010之后修复原有工作区 (2011/06/17)">升级TFS 2010之后修复原有工作区</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/11/%e6%9d%83%e9%99%90%e5%af%bc%e8%87%b4%e7%9a%84analysis%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8%e5%9c%a8vistawin2008%e4%b8%8b%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98.html" title="权限不足导致的Analysis性能计数器在Vista/win2008下失效的问题 (2009/11/12)">权限不足导致的Analysis性能计数器在Vista/win2008下失效的问题</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/03/%e8%ae%a9team-foundation-server-client%ef%bc%88tfs%ef%bc%89%e8%83%bd%e6%af%94%e8%be%83%e5%92%8c%e5%90%88%e5%b9%b6word%e6%96%87%e6%a1%a3.html" title="让Team Foundation Server Client（TFS）能比较和合并Word文档 (2010/03/29)">让Team Foundation Server Client（TFS）能比较和合并Word文档</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aetfs%e7%9a%84%e9%97%ae%e9%a2%98.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win7/Vista高级用户必备的右键菜单Take back my Ownership!</title>
		<link>http://www.imkevinyang.com/2009/12/win7vista%e9%ab%98%e7%ba%a7%e7%94%a8%e6%88%b7%e5%bf%85%e5%a4%87%e7%9a%84%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95take-back-my-ownership.html</link>
		<comments>http://www.imkevinyang.com/2009/12/win7vista%e9%ab%98%e7%ba%a7%e7%94%a8%e6%88%b7%e5%bf%85%e5%a4%87%e7%9a%84%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95take-back-my-ownership.html#comments</comments>
		<pubDate>Sun, 06 Dec 2009 06:19:00 +0000</pubDate>
		<dc:creator>Kevin Yang</dc:creator>
				<category><![CDATA[其他随笔]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Win7]]></category>
		<category><![CDATA[右键菜单]]></category>
		<category><![CDATA[微软]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://www.imkevinyang.com/2009/12/win7vista%e9%ab%98%e7%ba%a7%e7%94%a8%e6%88%b7%e5%bf%85%e5%a4%87%e7%9a%84%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95take-back-my-ownership.html</guid>
		<description><![CDATA[<p>从Vista开始，Windows的权限控制就更为严格了，微软还很自豪地引入了UAC的功能。但结果却是让更多人讨厌这个系统（相信很多人都像我一样为了图省事直接把UAC关了）。Win7在权限控制上相比Vista稍微松了一点，但还是经常会出现很脑残的行为。</p>
<p>我曾经在整理电脑上的文件的时候，想删除某个软件的安&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>从Vista开始，Windows的权限控制就更为严格了，微软还很自豪地引入了UAC的功能。但结果却是让更多人讨厌这个系统（相信很多人都像我一样为了图省事直接把UAC关了）。Win7在权限控制上相比Vista稍微松了一点，但还是经常会出现很脑残的行为。</p>
<p>我曾经在整理电脑上的文件的时候，想删除某个软件的安装目录，但是却弹出一个窗口，提示我“此操作需要提供管理员权限”。但是窗口上只有一个“重试”和“取消”的按钮，你点重试吧，他会提示你一样的问题，最后你还是不得不点取消。没有一个地方可以允许你已管理员的身份去执行这个删除的操作（对于exe程序，win7倒是提供了一个以管理员身份运行的右键菜单）。对于windows下有经验的用户，一般会尝试打开文件夹的属性，切换到“安全”选项卡，然后添加自己的权限。然后再去删。有时候可以成功，但有时候我却遇到了另外一个错误。“当前操作需要Kevin的权限才能进行”（我当前使用的用户名就是Kevin）。吐血身亡…..</p>
<p>Google了一把，说是ownership（所有权）导致的问题，只要把文件/文件夹的所有权改成自己就没问题了。具体为什么我也懒得去研究了，这种弱智的问题研究透了也只能说明自己也是一个弱智。网上有人提供了一个注册表脚本，可以在右键集成一个“Take ownership”的菜单，这样当遇到类似的权限问题就直接要回所有权就行了。</p>
<p>新建一个install.reg的文件，用记事本打开，然后将下面的内容拷贝到文件中，然后双击导入注册表即可。</p>
<pre class="csharpcode">

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@=<span class="str">&quot;Take Ownership&quot;</span>
<span class="str">&quot;NoWorkingDirectory&quot;</span>=<span class="str">&quot;&quot;</span>

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@=<span class="str">&quot;cmd.exe /c takeown /f \&quot;%1\&quot; &amp;&amp; icacls \&quot;%1\&quot; /grant administrators:F&quot;</span>
<span class="str">&quot;IsolatedCommand&quot;</span>=<span class="str">&quot;cmd.exe /c takeown /f \&quot;%1\&quot; &amp;&amp; icacls \&quot;%1\&quot; /grant administrators:F&quot;</span>

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@=<span class="str">&quot;Take Ownership&quot;</span>
<span class="str">&quot;NoWorkingDirectory&quot;</span>=<span class="str">&quot;&quot;</span>

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@=<span class="str">&quot;cmd.exe /c takeown /f \&quot;%1\&quot; /r /d y &amp;&amp; icacls \&quot;%1\&quot; /grant administrators:F /t&quot;</span>
<span class="str">&quot;IsolatedCommand&quot;</span>=<span class="str">&quot;cmd.exe /c takeown /f \&quot;%1\&quot; /r /d y &amp;&amp; icacls \&quot;%1\&quot; /grant administrators:F /t&quot;</span>

<span class="str"></span>&#160;
</pre>
<p>实际效果如下图所示：</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Take owership" border="0" alt="Take owership" src="http://www.imkevinyang.com/wp-content/uploads/2009/12/image_thumb3.png" width="244" height="123" />&#160;</p>
<p>参考链接：</p>
<p><a href="http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/">http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/</a></p>
<p align="right">——<a href="http://www.imkevinyang.com/"><em><strong>Kevin Yang</strong></em></a></p>

	标签：<a href="http://www.imkevinyang.com/tags/uac" title="UAC" rel="tag">UAC</a>, <a href="http://www.imkevinyang.com/tags/vista" title="Vista" rel="tag">Vista</a>, <a href="http://www.imkevinyang.com/tags/win7" title="Win7" rel="tag">Win7</a>, <a href="http://www.imkevinyang.com/categories/techarticles/othertecharticles" title="其他随笔" rel="tag">其他随笔</a>, <a href="http://www.imkevinyang.com/tags/%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95" title="右键菜单" rel="tag">右键菜单</a>, <a href="http://www.imkevinyang.com/tags/microsoft" title="微软" rel="tag">微软</a>, <a href="http://www.imkevinyang.com/tags/%e6%9d%83%e9%99%90" title="权限" rel="tag">权限</a><br />

	<h4 style="background-color:#3B3B3B;border-bottom:2px groove gray;color:#F2F2F2;margin-top:20px;padding:6px 6px 6px 15px;margin:20px 0px 0px 0px">你可能对下面的文章感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.imkevinyang.com/2009/05/google%e5%92%8c%e5%be%ae%e8%bd%af%e7%9a%84%e4%b8%80%e5%a4%a7%e4%b8%8d%e5%90%8c.html" title="Google和微软的一大不同 (2009/05/06)">Google和微软的一大不同</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/05/vs2010%e7%9a%84ui%e8%ae%be%e8%ae%a1%e5%a4%b1%e8%af%af.html" title="VS2010的UI设计失误 (2010/05/31)">VS2010的UI设计失误</a> </li>
	<li><a href="http://www.imkevinyang.com/2011/01/win7%e7%ae%a1%e7%90%86%e6%97%a0%e7%ba%bf%e7%bd%91%e7%bb%9c%e5%8f%98%e6%88%90%e5%b0%8f%e5%9b%be%e6%a0%87%e4%ba%86.html" title="Win7管理无线网络变成小图标了 (2011/01/04)">Win7管理无线网络变成小图标了</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/07/win7%e8%ae%bf%e9%97%ae%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%e6%9c%80%e5%a4%a7%e5%8c%96%e5%90%8c%e6%97%b6%e8%ae%a9%e4%bb%bb%e5%8a%a1%e6%a0%8f%e5%8f%af%e8%a7%81.html" title="Win7访问远程桌面最大化同时让任务栏可见 (2010/07/03)">Win7访问远程桌面最大化同时让任务栏可见</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/03/%e5%8d%81%e5%b9%b4mfc%e7%bb%8f%e5%8e%86%e8%ae%a4%e8%af%86%e7%9a%84microsoft%e6%8a%80%e6%9c%af.html" title="十年MFC经历认识的Microsoft技术 (2009/03/17)">十年MFC经历认识的Microsoft技术</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/11/%e5%be%ae%e8%bd%afazure%e5%b9%b3%e5%8f%b0%e7%9a%84%e8%ae%a1%e8%b4%b9%e6%a8%a1%e5%9e%8b.html" title="微软Azure平台的计费模型 (2010/11/12)">微软Azure平台的计费模型</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/06/%e5%be%ae%e8%bd%af%e6%8a%80%e6%9c%af%e7%a4%be%e5%8c%ba%e7%b2%be%e8%8b%b1%e8%ae%a1%e5%88%92%e4%bd%a0%e4%b9%9f%e6%9d%a5%e5%8a%a0%e5%85%a5%e5%90%a7.html" title="微软技术社区精英计划&mdash;&mdash;你也来加入吧 (2010/06/02)">微软技术社区精英计划&mdash;&mdash;你也来加入吧</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/11/%e6%9d%83%e9%99%90%e5%af%bc%e8%87%b4%e7%9a%84analysis%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8%e5%9c%a8vistawin2008%e4%b8%8b%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98.html" title="权限不足导致的Analysis性能计数器在Vista/win2008下失效的问题 (2009/11/12)">权限不足导致的Analysis性能计数器在Vista/win2008下失效的问题</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/11/%e8%a7%a3%e5%86%b3win7%e4%b8%8bie8%e5%bc%80%e5%8f%91%e4%ba%ba%e5%91%98%e5%b7%a5%e5%85%b7%e7%aa%97%e5%8f%a3%e6%b6%88%e5%a4%b1%e7%9a%84%e9%97%ae%e9%a2%98.html" title="解决Win7下IE8开发人员工具打不开的问题 (2009/11/13)">解决Win7下IE8开发人员工具打不开的问题</a> </li>
	<li><a href="http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aetfs%e7%9a%84%e9%97%ae%e9%a2%98.html" title="解决新创建的windows用户无法访问TFS的问题 (2011/05/12)">解决新创建的windows用户无法访问TFS的问题</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.imkevinyang.com/2009/12/win7vista%e9%ab%98%e7%ba%a7%e7%94%a8%e6%88%b7%e5%bf%85%e5%a4%87%e7%9a%84%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95take-back-my-ownership.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>权限不足导致的Analysis性能计数器在Vista/win2008下失效的问题</title>
		<link>http://www.imkevinyang.com/2009/11/%e6%9d%83%e9%99%90%e5%af%bc%e8%87%b4%e7%9a%84analysis%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8%e5%9c%a8vistawin2008%e4%b8%8b%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98.html</link>
		<comments>http://www.imkevinyang.com/2009/11/%e6%9d%83%e9%99%90%e5%af%bc%e8%87%b4%e7%9a%84analysis%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8%e5%9c%a8vistawin2008%e4%b8%8b%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98.html#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:55:00 +0000</pubDate>
		<dc:creator>Kevin Yang</dc:creator>
				<category><![CDATA[BI/数据库]]></category>
		<category><![CDATA[疑难杂症]]></category>
		<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[MSAS]]></category>
		<category><![CDATA[失效]]></category>
		<category><![CDATA[性能计数器]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://www.imkevinyang.com/2009/11/%e6%9d%83%e9%99%90%e5%af%bc%e8%87%b4%e7%9a%84analysis%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8%e5%9c%a8vistawin2008%e4%b8%8b%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98.html</guid>
		<description><![CDATA[<p>这几个月一直在做Analysis Service相关的优化，包括Mdx的查询优化，以及处理的优化。微软发布的SSAS2008性能白皮书中推荐使用Profiler配合Analysis相关的性能计数器来监视各种性能指标。可是当我打开性能监视器，添加完相关计数器之后，无论做什么操作，包括查询、处理，性能指标&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>这几个月一直在做Analysis Service相关的优化，包括Mdx的查询优化，以及处理的优化。微软发布的SSAS2008性能白皮书中推荐使用Profiler配合Analysis相关的性能计数器来监视各种性能指标。可是当我打开性能监视器，添加完相关计数器之后，无论做什么操作，包括查询、处理，性能指标均是0，没有数据。</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.imkevinyang.com/wp-content/uploads/2009/11/image_thumb11.png" width="291" height="181" /> </p>
<p>而Sql Server相关的性能计数器却是正常的，按理说，Analysis和Sql Server是一块安装的，要出问题应该是一起出问题才是。我有两台安装了windows server 2008（X64）的服务器均是如此。我自用的win7机器也是一样的问题。</p>
<p>在经过一个月的搜索、发帖询问后，我总算在<a title="Why is all my analysis performance counter(MSAS 2008) always show no data" href="http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/d2655eaf-1abb-4c47-b72c-c894418514f3" target="_blank">MSDN论坛</a>上等到答案。Darren（这家伙相当热心，我好多莫名其妙的问题都是他解决或给的启发）说可能是权限问题，建议我把<strong><font color="#008000">Olap服务从network service帐户改成使用admin帐号启动</font></strong>，我测试了一下，这下果然指标全都正常了。</p>
<p>回想起安装Sql Server的时候，好像默认是会使用Network Service启动的。真搞不懂。既然是因为权限不足的原因，起码也给个提示呀。更让我不解的是，Sql Server的服务也是使用Network Service帐户启动的，但是性能计数器却工作正常。</p>
<p>为了找到真正出现权限问题的地方，我用尽了各种方法，包括给那些我认为相关的文件加上network service权限，重建计数器，注册表对比和跟踪，跟踪msmdctr100.dll（性能计数器相关的dll）的活动，检查Analysis相关日志，等等。最终除了发现一些乱七八糟不想关的信息之外，还是没能找到问题所在，只好放弃。</p>
<p>希望此文对那些和我一样遭遇类似问题的童鞋有帮助。</p>
<p align="right">——<a href="http://www.imkevinyang.com/"><em><strong>Kevin Yang</strong></em></a></p>

	标签：<a href="http://www.imkevinyang.com/tags/analysis-services" title="Analysis Services" rel="tag">Analysis Services</a>, <a href="http://www.imkevinyang.com/categories/techarticles/businessintelligence" title="BI/数据库" rel="tag">BI/数据库</a>, <a href="http://www.imkevinyang.com/tags/msas" title="MSAS" rel="tag">MSAS</a>, <a href="http://www.imkevinyang.com/tags/%e5%a4%b1%e6%95%88" title="失效" rel="tag">失效</a>, <a href="http://www.imkevinyang.com/tags/%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8" title="性能计数器" rel="tag">性能计数器</a>, <a href="http://www.imkevinyang.com/tags/%e6%9d%83%e9%99%90" title="权限" rel="tag">权限</a>, <a href="http://www.imkevinyang.com/categories/techarticles/knottyproblems" title="疑难杂症" rel="tag">疑难杂症</a><br />

	<h4 style="background-color:#3B3B3B;border-bottom:2px groove gray;color:#F2F2F2;margin-top:20px;padding:6px 6px 6px 15px;margin:20px 0px 0px 0px">你可能对下面的文章感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.imkevinyang.com/2010/05/64%e4%bd%8d%e7%b3%bb%e7%bb%9f%e4%b8%8biis7-isapi%e5%a4%84%e7%90%86%e5%99%a8%e5%8a%a0%e8%bd%bd%e5%a4%b1%e8%b4%a5.html" title="64位系统下IIS7 ISAPI处理器加载失败 (2010/05/05)">64位系统下IIS7 ISAPI处理器加载失败</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/04/analysis-services-2005-olap%e8%ae%be%e8%ae%a1%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5.html" title="Analysis Services 2005 OLAP设计最佳实践 (2009/04/02)">Analysis Services 2005 OLAP设计最佳实践</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/04/analysis-services%ef%bc%9a%e4%bd%a0%e5%ba%94%e8%af%a5%e4%bd%bf%e7%94%a8%e5%a4%9a%e5%af%b9%e5%a4%9a%e7%bb%b4%e5%ba%a6%e5%90%97%ef%bc%9f.html" title="Analysis Services：你应该使用多对多维度吗？ (2010/04/12)">Analysis Services：你应该使用多对多维度吗？</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/03/bids%e9%83%a8%e7%bd%b2%e6%97%b6%e5%87%ba%e7%8e%b0%e5%85%83%e6%95%b0%e6%8d%ae%e7%ae%a1%e7%90%86%e5%99%a8%e5%8f%91%e7%94%9f%e9%94%99%e8%af%af.html" title="BIDS部署时出现元数据管理器发生错误 (2009/03/13)">BIDS部署时出现元数据管理器发生错误</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/08/olap%e4%b8%ad%e7%9a%84averageofchildren%e8%81%9a%e5%90%88%e6%96%b9%e5%bc%8f.html" title="OLAP中的AverageOfChildren聚合方式 (2009/08/10)">OLAP中的AverageOfChildren聚合方式</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/07/ssas%e5%a4%84%e7%90%86%e6%97%b6%e6%89%be%e4%b8%8d%e5%88%b0%e5%b1%9e%e6%80%a7%e9%94%ae%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html" title="SSAS处理时&ldquo;找不到属性键&rdquo;的解决办法 (2010/07/19)">SSAS处理时&ldquo;找不到属性键&rdquo;的解决办法</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/12/win7vista%e9%ab%98%e7%ba%a7%e7%94%a8%e6%88%b7%e5%bf%85%e5%a4%87%e7%9a%84%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95take-back-my-ownership.html" title="Win7/Vista高级用户必备的右键菜单Take back my Ownership! (2009/12/06)">Win7/Vista高级用户必备的右键菜单Take back my Ownership!</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/10/%e5%85%a8%e5%8d%8a%e8%a7%92%e7%a9%ba%e6%a0%bc%e5%af%bc%e8%87%b4%e7%9a%84analysis-service%e5%a4%84%e7%90%86%e9%94%99%e8%af%af.html" title="全半角空格导致的Analysis Services处理错误 (2009/10/09)">全半角空格导致的Analysis Services处理错误</a> </li>
	<li><a href="http://www.imkevinyang.com/2011/05/%e8%a7%a3%e5%86%b3%e6%96%b0%e5%88%9b%e5%bb%ba%e7%9a%84windows%e7%94%a8%e6%88%b7%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%aetfs%e7%9a%84%e9%97%ae%e9%a2%98.html" title="解决新创建的windows用户无法访问TFS的问题 (2011/05/12)">解决新创建的windows用户无法访问TFS的问题</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/09/%e8%a7%a3%e5%86%b3%e7%bb%b4%e5%ba%a6%e6%88%90%e5%91%98%e4%b8%ad%e7%9a%84%e9%9d%9e%e6%b3%95xml%e5%ad%97%e7%ac%a6%e5%af%bc%e8%87%b4%e7%9a%84%e6%9f%a5%e8%af%a2%e9%94%99%e8%af%af-2.html" title="解决维度成员中的非法Xml字符导致的查询错误 (2009/09/19)">解决维度成员中的非法Xml字符导致的查询错误</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.imkevinyang.com/2009/11/%e6%9d%83%e9%99%90%e5%af%bc%e8%87%b4%e7%9a%84analysis%e6%80%a7%e8%83%bd%e8%ae%a1%e6%95%b0%e5%99%a8%e5%9c%a8vistawin2008%e4%b8%8b%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.imkevinyang.com @ 2012-02-08 19:06:53 -->
