您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 国内外标准规范 > Windows-PowerShell-培训
70+activeinternalpartnersLyncServer•SharePointServer•ServiceManager•WindowsSmallBusinessServer•ExchangeServer•WindowsDiagnostics•ServerManager•SQLServer•ActiveDirectory•FailoverClustering•SystemCenterOperationsManager•WindowsBackup•ServerMigration•SystemCenterVirtualMachineManager•BestPracticesAnalyzer•ActiveDirectoryRightsManagementServices•InternetInformationServices•BackgroundIntelligentTransferService•SystemCenterDataProtectionManager•NetworkLoadBalancing•RemoteDesktopServices•GroupPolicy•WS-Management•AppLocker•WMIExchange2003(VBScript)Exchange2007(PowerShell)MailboxStatsSetlistExchange_Mailboxs=GetObject(winmgmts:{impersonationLevel=impersonate}!\\COMPUTERNAME\ROOT\MicrosoftExchangeV2).InstancesOf(Exchange_Mailbox)ForEachobjExchange_MailboxinlistExchange_MailboxsWScript.echoAssocContentCount=”+objExchange_Mailbox.AssocContentCountWScript.echoDateDiscoveredAbsentInDS=”+objExchange_Mailbox.DateDiscoveredAbsentInDSWScript.echoDeletedMessageSizeExtended=”+objExchange_Mailbox.DeletedMessageSizeExtendedWScript.echoLastLoggedOnUserAccount=”+objExchange_Mailbox.LastLoggedOnUserAccountWScript.echoLastLogoffTime=”+objExchange_Mailbox.LastLogoffTimeWScript.echoLastLogonTime=”+objExchange_Mailbox.LastLogonTimeWScript.echoLegacyDN=”+objExchange_Mailbox.LegacyDNWScript.echoMailboxDisplayName=”+objExchange_Mailbox.MailboxDisplayNameWScript.echoMailboxGUID=”+objExchange_Mailbox.MailboxGUIDWScript.echoServerName=”+objExchange_Mailbox.ServerNameWScript.echoSize=”+objExchange_Mailbox.SizeWScript.echoStorageGroupName=”+objExchange_Mailbox.StorageGroupNameWScript.echoStorageLimitInfo=”+objExchange_Mailbox.StorageLimitInfoWScript.echoStoreName=”+objExchange_Mailbox.StoreNameWScript.echoTotalItems=”+objExchange_Mailbox.TotalItemsNextget-mailboxstatistics–server$servernameDatabaseMgmtDimStorGroupasNewCDOEXM.StorageGroupStorGroup.DataSource.OpenLDAP://+DCServer+/CN=FirstStorageGroup,CN=InformationStore,CN=+Server+,CN=Servers,CN=FirstAdministrativeGroup,CN=AdministrativeGroups,CN=FirstOrganization,CN=MicrosoftExchange,CN=Services,CN=Configuration,+DomainNameStorGroup.MoveLogFiles(C:\newlogPath,0)move-storagegrouppath-identity“FirstStorageGroup“–logC:\newlogPath”RecipientMgmtDimobjMailboxAsCDOEXM.IMailboxStoreSetobjMailbox=GetObject(LDAP://+DCServer+CN=FOO,CN=users,+DomainName)objMailbox.CreateMailboxLDAP://+DCServer+/CN=PrivateMDB,CN=FirstStorageGroup,CN=InformationStore,CN=+Server+,CN=Servers,CN=FirstAdministrativeGroup,CN=AdministrativeGroups,CN=FirstOrganization,CN=MicrosoftExchange,CN=Services,CN=Configuration,+DomainNameenable-mailbox-identitydomain\FOO–database“FirstStorageGroup\PrivateMDB”Inacoupleofyears,ifyoudon’tknowPowerShell,youmaynothaveajobasanITPro!命令功能Get-Help显示有关WindowsPowerShell命令和概念的信息。Get-Command获取有关cmdlet以及有关WindowsPowerShell命令的其他元素的基本信息Get-Member获取对象的属性和方法Get-Module获取已导入或可以导入到当前会话中的模块://://channel9.msdn.com/tags/PowerShell://://codeplex.com/Project/ProjectDirectory.aspx?TagName=powershell://oreilly.com/catalog/9780596801519/
本文标题:Windows-PowerShell-培训
链接地址:https://www.777doc.com/doc-5170294 .html