Microsoft 展示加入 Ribbon 界面的 Windows 8 Explorer

8-29-2011windows8explorer

在 Microsoft 的新系统 Windows 8 中的许多既有功能,若没有被大肆的重新改造过,都至少经过一些细微的调整,其中也包括了目前尚未公布的新版 Windows Explorer 程序。有如其它的 Windows 8 程序,这次已经用了 N 年没变的 Windows 档案管理程序,加入了当年首度出现在 Office 2007 上的「Ribbon 接口」,也对触控操作变得更为友善。不过别担心宝贵的屏幕空间将被巨大按钮所压缩,下一代的 Explorer 透过将详细数据窗口安排至窗口右侧等排版调整,使其比起前版的 Windows 7 可显示更多的档案内容。还将「上层」按钮再度回到功能列及加入了许多新的快捷按键设定(看来又有得背了)。快从引用来源中观看更多相关细节与示范影片吧!

Changing the scope so you can view the entire domain in Powershell

The requested search root domain.local/Users’ is not within the scope of this operation. Cannot perform searches outside the scope ‘child.domain.local’.

2007 = $AdminSessionADSettings.ViewEntireForest = $true

2010 = Set-AdServerSettings -ViewEntireForest $True

or use –ignonreDefaultScope on the command if applicable, i.e.

get-mailbox –ignonreDefaultScope

http://technet.microsoft.com/en-us/library/bb124527.aspx

How can this be made permanent ?

you could add it to the personal EMS startup

Default Location:

My Documents\WindowsPowerShell\profile.ps1

Configuring Site-to-Site VPN with Forefront TMG and Cisco PIX and ASA

For taking notes.

Forefront Threat Management Gateway (TMG) 2010 supports several protocols for establishing a site-to-site (LAN to LAN) VPN, including PPTP, L2TP, and IPsec. Of these, IPsec is the only supported protocol for establishing site-to-site VPN connections with third-party VPN devices such as Cisco PIX and ASA. In this post I will demonstrate how to configure Forefront TMG and the Cisco PIX/ASA to create a site-to-site VPN for the following branch office deployment scenario:

tmg_asa_l2l (1)

[Note: Site-to-site VPN in TMG is supported only in multi-homed network configurations. The TMG firewall must be configured with a minimum of two network interfaces to function as a site-to-site VPN gateway.]

Configuring the TMG Firewall

阅读全文 »

Forefront Threat Management Gateway (TMG) 2010 Troubleshooting Survival Guide

Taking notes.

We encourage you to enhance this guide by identifying missing areas (scenarios, features, lifecycle…), provide links to and write descriptions of existing content, and providing new content where there are gaps.Join the community!

Introduction
Troubleshooting Tools
Troubleshooting Setup
Troubleshooting Outbound Access
Troubleshooting Performance
Troubleshooting E-Mail Protection
Troubleshooting VPN
Troubleshooting Report
Troubleshooting Web Publishing
Introduction
When approaching to troubleshooting any product there are some general guidelines that should be followed. The WSUS Troubleshooting Survival Guide has the seven core steps that should be used. When the subject is TMG, there are many areas that can be explored from the troubleshooting standpoint. This article will cover the main areas and you can expand by adding new areas with core troubleshooting techniques.

Troubleshooting Tools

Forefront TMG 2010 comes with a built in set of tools that can help you to troubleshoot a great variety of scenarios. Those options are located in the Troubleshooting pane as shown in the figure below:

The Troubleshooting pane has the following options:

阅读全文 »

一些文件不能被DFS复制?

database-replication

最近公司部署了基于微软DFS技术的文件服务器。其中最吸引人的技术恐怕就是DFSR(DFS Replication)了。但是经过一段时间的运营,用户在抱怨为什么其他省的文件,自己却看不到?经过一番查找,发现问题居然是,这些文件的属性是Temporary(临时性)的。而DFSR默认的设计,则不会阀值这些带有Temporary属性的文件,并且DFSR的这个特性目前为止还不能配置(2008R2)。

事实上,你根本无法轻易的看到一个文件的文件属性是否是Temporary的。甚至微软提供的一些命令行,例如Attrib.exeFileSystemObject或者WMI中的CIM_Datafile都无法查看一个文件的Temporary属性,更悲情的是:DFSR本身对这些文件的处理(不同步)不会留下任何的Log,对DFSR来讲,这更不是一个Error或者是Bug了,因为本身就是这么设计的。

理论上,这些文件Temporary属性的文件是指只会临时性使用的文件,而不是用户想要真正存档的,DFSR不复制这些文件是基于提升整个复制效率来考虑的,同时,应用程序为了提升自我的处理效率,也必然会产生大量的临时属性文件。当应用程序要创建一个文件(CreateFile)时,可以使用FILE_ATTRIBUTE_TEMPORARY来创建一个temporary属性文件,但更好的方式是同时指定FILE_FLAG_DELETE_ON_CLOSE属性,这样当程序所有的进程都关闭的时候,temporary文件也可以被删除。

但事实上在Leo的实际生产环境中,用户正常的Office文件,Adobe PDF文件等许多的文件都莫名奇妙的有了Temporary属性,事实这些文件都一定是要被复制到DFS的其他服务器上;于是,Leo只能需求去掉Temporary属性的方法。

使用Fsutil命令查看Temporary属性。

Fsutil是包含在Windows系统中的一个命令工具,用法:

fsutil usn readdata c:\data\test.txt

Major Version : 0x2
Minor Version : 0x0
FileRef# : 0x0021000000002350
Parent FileRef# : 0x0003000000005f5e
Usn : 0x000000004d431000
Time Stamp : 0x0000000000000000 12:00:00 AM 1/1/1601
Reason : 0x0
Source Info : 0x0
Security Id : 0x5fb
File Attributes : 0x120
File Name Length : 0x10
File Name Offset : 0x3c
FileName : test.txt

File Attributes是一个位掩码,表示文件属性的设定值。在上面的例子中,0×120表明为一个临时文件,计算方式是:

0×100 × 0×20 (Archive) = 0×120.

以下列出的文件属性和值的对应表:

READONLY

0×1

HIDDEN

0×2

SYSTEM

0×4

DIRECTORY

0×10

ARCHIVE

0×20

DEVICE

0×40

NORMAL

0×80

TEMPORARY

0×100

SPARSE_FILE

0×200

REPARSE_POINT

0×400

COMPRESSED

0×800

OFFLINE

0×1000

NOT_CONTENT_INDEXED

0×2000

ENCRYPTED

0×4000

这些值结合起来,是文件属性的位码值。

在Debug Log是使用Findstr命令查找Temporary文件。

对于没有复制的文件,DFSR其实是有记录可查的,使用Findstr(包含在windows服务器中的命令工具)通过查找DFSR的Debug Logs中的名为FILE_ATTRIBUTE_TEMPORARY的字段,即可找到哪些文件没有被复制。

首先,因为Log文件被压缩为后缀名为.GZ的压缩包,所以你需要导出所有的DFSR的Debug Logs。默认的log存在于%windir%\debug目录下,找到名为Dfsr*.logDfsr*.log.gz解压即可。

假如你导出log到C:\logs下,你可以运行以下的命令查找Temporary文件。

Findstr FILE_ATTRIBUTE_TEMPORARY c:\logs\dfsr*.log

命令会输出包含FILE_ATTRIBUTE_TEMPORARY字段的命令行,如下:

C:\WINDOWS\debug\Dfsr00018.log:20080903 16:14:29.390 1808 USNC 1204 UsnConsumer::ProcessUsnRecord Skipping USN_RECORD with FILE_ATTRIBUTE_TEMPORARY flag:

或者你也可以用记事本等工具打开log文件,使用查找功能,查找FILE_ATTRIBUTE_TEMPORARY字段。

使用Powershell查找Temporary属性的文件。

另外一种更简便的方式是使用PowerShell www.microsoft.com/powershell

例如我的想找到D:\Data文件夹下面的具有临时文件属性的文件,使用以下的命令:

Get-childitem D:\Data -recurse | ForEach-Object -process {if(($_.attributes -band 0x100) -eq 0x100) {write-output $_}}

使用Powershell移除文件的Temporary属性。

知道了病因,接下来就是对症下药。不过不幸的是,最简单的方式是使用powershell。所以没有Powershell的同学,先去安装一个吧www.microsoft.com/powershell

例如我的想移除D:\Data文件夹下面的所有文件的临时属性,使用以下的命令:

Get-childitem D:\Data -recurse | ForEach-Object -process {if (($_.attributes -band 0x100) -eq 0x100) {$_.attributes = ($_.attributes -band 0xFEFF)}}

无觅相关文章插件,快速提升流量