利用Powershell开启Exchange 2010 IRM功能
创建组Superrmsadmin(安全组),成员为FederateEmail在ADRMS控制台开启RMS超级用户开启Exchange IRM 于Exchange Powershell控制台键入:Set-IRMConfiguration -InternalLicensingEnabled $true 通过以上命令完成Exchange 2010 IRM功能的开启,关于ADRMS的安装与配置在这里就不描述了[@more@]
Exchange 2010 Powershell脚本攻略(十五)
Enable-InMemoryTracing$binpath = (get-itemproperty HKLM:SOFTWAREMicrosoftExchangeServerv14Setup).MsiInstallPath + "Bin"$filename = "EnabledInMemoryTraces.Config"$fullpath = $binpath + $filenameremove-item ($fullpath + ".bak") -ErrorAction SilentlyContinuerename-item $fullpath ($filename + ".bak")gc ($fullpath + ".bak") | %{$_.Replace("InMemoryTracing:No","InMemoryTracing:Yes")} | out-file -FilePath $fullpath[@more@]
Exchange 2010 Powershell脚本攻略(十四)
enable-FederatedDeliveryMailbox$ErrorActionPreference = "SilentlyContinue"# check syntaxif (!$args -or ($args.Length -ne 3 -and $args.Length -ne 1)){ write-host "You need to run this script after you have configured Federated Delivery using New/Set-OrganizationRelationship task. This script needs to be run at both tenant side and on-premise side."; write-host "Tenant side: enable-FederatedDeliveryMailbox.ps1 <identity of organization relationship> <passwor
Exchange 2010 Powershell脚本攻略(十二)
Disable-InMemoryTracing$binpath = (get-itemproperty HKLM:SOFTWAREMicrosoftExchangeServerv14Setup).MsiInstallPath + "Bin"$filename = "EnabledInMemoryTraces.Config"$fullpath = $binpath + $filenameremove-item ($fullpath + ".bak") -ErrorAction SilentlyContinuerename-item $fullpath ($filename + ".bak")gc ($fullpath + ".bak") | %{$_.Replace("InMemoryTracing:Yes","InMemoryTracing:No")} | out-file -FilePath $fullpath[@more@]
Exchange 2010 Powershell脚本攻略(十三)
enable-CrossForestConnectorParam( [Microsoft.Exchange.Data.Directory.SystemConfiguration.ADConfigurationObject] $instance = $null, [string] $connectorName = $null, [switch] $help, [switch] $genericMTA)begin{ # <summary>Display help</summary> # function Usage() { write-host @'Adjusts the permissions on a Send Connector for Cross Forest trust.Enable-CrossForestConnector [-help] [-instance $x] [-connectorName "foo"] [-genericMTA] -instance
Exchange 2010 Powershell脚本攻略(十一)
ConvertTo-MessageLatencyparam( [Microsoft.Exchange.Management.TransportLogSearchTasks.MessageTrackingEvent] $MessageTrackingEvent)begin{ # PrintLatencies <MessageTrackingEvent> function PrintLatencies { param( [Microsoft.Exchange.Management.TransportLogSearchTasks.MessageTrackingEvent] $mte = $(throw "argument is mandatory") ) # Get latency objects from the event. $latencies = [Microsoft.Exchange.Management.TransportLogSearchTasks.MessageTrackingLatency]::Ge
Exchange 2010 Powershell脚本攻略(十)
configure-SMBIPsecparam([string] $Context = 'Static', [string] $Store = 'Local', [string] $PolicyName = 'SMB Security Policy (Exchange 2007)', [string] $OutputScriptFile = '.NetSH_Script_SMB.txt', [switch] $AddSMBServerFilterList = $true, [switch] $AddSMBClientFilterList = $true, [switch] $AddSMBServerFilterAction = $true, [switch] $SMBServerFilterActionInPass = $true, [swit
Exchange 2010 Powershell脚本攻略(九)
ConfigureNetworkProtocolParameters$local:CommandAppCmd = "$env:windirSystem32inetsrvappcmd.exe"function local:Invoke-ExpressionWithConfiguredLogging([string]$expression){ if ((Get-Command Invoke-ExpressionWithLoggin[g] -CommandType Function) -ne $null) { # Executing as a part of workflow Invoke-ExpressionWithLogging $expression } else { # Default PowerShell way Invoke-Expression $expression }}function local:Run-CommandWithConfiguredLogging([string]$exeName, [string]$p
Exchange 2010 Powershell脚本攻略(八)
ConfigureAdamparam($ldapPort, $sslPort, $logPath, $dataPath)# Adam Service Name$AdamServiceName = "ADAM_MSExchange"# Transport Service Name$EdgeTransportServiceName = "MSExchangeTransport"# Adam Instance Name$AdamInstanceName = "MSExchange"# Activate Instance command string$ActivateInstanceCommand = "'Activate Instance " + $AdamInstanceName + "'"# Get the windows directry.$sysDir = [System.Environment]::SystemDirectory$windowsDir = [System.IO.Pat
Exchange 2010 Powershell脚本攻略(七)
CollectReplicationMetricsparam( [string] $DagName, [string[]] $DatabaseNames, [string] $ReportAlias, [string] $TemporaryDataPath, [string] $ReportPath, [TimeSpan] $Duration = [TimeSpan]::Parse("1.00:00:00"), [TimeSpan] $Frequency = [TimeSpan]::FromSeconds(10), [switch] $Verbose, [switch] $ProcessOnly)Set-StrictMode -Version 2.0# Define all the script-wide variables$LocalMachine = [environment]::MachineName# Dag object for which perf info should be
Exchange 2010 Powershell脚本攻略(六)
CollectOverMetricsparam( [string] $DatabaseAvailabilityGroup, [string[]] $Database, [string] $TemporaryDataPath, [string] $ReportPath, [DateTime] $StartTime = [DateTime]::MinValue, [DateTime] $EndTime = [DateTime]::MaxValue, [string] $ReportAlias, [switch] $IncludeApplogs, [string[]] $AppLogProviders, [switch] $AnalyzeOnly, [string] $MergedXmlFile, [switch] $GenerateHtmlReport, [switch] $ShowHtmlReport, [switch] $DotSourceMode, [switch] $Help, [switch] $Verbose)Set-StrictMode -Version 2.0 # Init
Exchange 2010 Powershell脚本攻略(五)
CheckInvalidRecipientsParam([string] $OrganizationalUnit,[string] $ResultSize = "Unlimited",[string] $Filter,[string] $DomainController,[switch] $FixErrors,[switch] $RemoveInvalidProxies,[switch] $ShowInvalidProxies,[switch] $OutputObjects)# Catch any random input and output the help textif ($args) {@" Usage: CheckInvalidRecipients.ps1 [-OrganizationalUnit <String>] [-ResultSize <String>] [-Filter <String>] [-DomainController <String>] [-FixErrors] [-
Exchange 2010 Powershell脚本攻略(四)
AntispamCommonfilter topN{ param ( $top = 10) if ($script:count -lt $top) { write-output ($_) $script:count = $script:count + 1 }}[@more@]
Exchange 2010 Powershell脚本攻略(三)
AggregatePFDataParam( [string] $PublicFolder, [string] $Server)$script:SkipCount = 0$script:SkippedString = ""# Function that dumps aggregated information from various pf cmdletsfunction dump-pf($pf, $TargetServer){ # We don't care about the IPM root if ($pf.Identity.ToString() -ne "") { $HasReplica = $False if ($TargetServer) { $Server = $TargetServer $dbName = (get-publicfolderdatabase -Server $TargetServer).Name $pf.Replicas | foreach-object { if ($_.Name -eq $db
Exchange 2010 Powershell脚本攻略(二)
AddUsersToPFRecursiveParam( [string] $Server, [string] $TopPublicFolder = "", [string] $User = "", [string] $Permissions = "")# This function validates the scripts parametersfunction ValidateParams{ $validInputs = $true $errorString = "" if ($TopPublicFolder -eq "") { $validInputs = $false $errorString += "`nMissing parameter: The -TopPublicFolder parameter is required. Please pass in a valid Public Folder path, name, or entryID.&
Exchange 2010 Powershell脚本攻略(一)
AddReplicaToPFRecursiveParam( [string] $Server, [string] $TopPublicFolder = "", [string] $ServerToAdd = "")# This function validates the scripts parametersfunction ValidateParams{ $validInputs = $true $errorString = "" if ($TopPublicFolder -eq "") { $validInputs = $false $errorString += "`nMissing parameter: The -TopPublicFolder parameter is required. Please pass in a valid Public Folder path, name, or entryID." } if ($ServerToAdd -eq &quo
Windows移动中心
在Windows 7中,新增了一个Windows移动中心功能,用户可以通过打开此功能界面对自己计算机的一些相关配置进行一个集中的管理和设置,如下图所示: 如果使用便携式计算机,可以快速访问 Windows 移动中心中的设置(例如,扬声器音量、无线网络连接状态和显示器亮度)。由于所有这些设置都位于一个位置中,所以能够节省时间,不需要记住每个设置所在的位置。当您需要在不同地点(例如,离开办公桌去开会,或从家到机场)快速调整便携式计算机的设置时,这特别有用。在Windows移动中心中,包含了对显示器亮度、声音、电池状态模式、无线网络、