PowerShell is what you make out of it. It's a base for powerful scripting that can help you determine specific information about an OCS deployment, change a single attribute of a single user or change multiple attributes on thousands of users.
OCS PowerShell Functions from the OCS RTM Reskit, OCS-ALL.ps1
This script can be loaded by launching PowerShell, change directory to where your PS scripts live, and run the script:
- PS C:\PowerShell_scripts>. ./OCS-ALL.ps1
You'll now be able to run any of the OCS functions for the OCS-ALL,ps1 script. Some of these functions will return a single line answer and some will return many lines of data. In the later case I like to "pipe" the results into a text file.
- Get-ocssipdomain
- Get-ocsadcontainer
- Get-OCSUserDetail -condition "PrimaryURI like 'SIP:S%'"
- Get-ocsuserdetail >ocsuserdetail.txt
- Get-ocsuserdetail
-
Other functions from the OCS-ALL.ps1 that I use that require you to pipe the results into a text file are:
- Get-ocserrorevent >ocserror.txt
- Get-ocswaringevent >ocswarning.txt
The following are all the functions within the OCS-ALL.ps1 script.- Get-OCSSIPDomain
- New-OCSSIPDomain
- Remove-OCSSipDomain
- Get-OCSPool
- Choose-OCSPool
- Get-OCSADContainer
- Get-OCSSchemaVersion
- Get-OCSWarningEvent
- Get-OCSErrorEvent
- Get-OCSUser
- Remove-OCSUser
- Get-OCSUserDetail
- Get-OCSPICUserCount
- Get-ADUser
- Export-ADUser
- New-OCSuser
- Update-OCSUser
- Export-OCSUser
- Import-OCSUser
- Get-OCSMeetingPolicy
- New-OCSMeetingPolicy
- Update-OCSMeetingPolicy
- Remove-OCSMeetingPolicy
- Choose-OCSMeetingPolicy
- Get-OCSUCPolicy
- New-OCSUCPolicy
- Update-OCSUCPolicy
- Remove-OCSUCPolicy
- Choose-OCSUCPolicy
- Get-OCSNormalizationRule
- Choose-OCSNormalizationRule
- New-OCSNormalizationRule
- Remove-OCSNormalizationRule
- Update-OCSNormalizationRule
- Get-OCSLocationProfile
- Choose-OCSLocationProfile
- Remove-OCSLocationProfile
- New-OCSLocationProfile
- Add-OCSNormalizationRuleToOCSLocationProfile
- Remove-OCSNormalizationRuleFromOCSLocationProfile
- Get-OCSPhoneRoute
- Choose-OCSPhoneRoute
- Remove-OCSPhoneRoute
- New-OCSPhoneRoute
- Update-OCSPhoneRoute
- Get-OCSPhoneRouteUsage
- Choose-OCSPhoneRouteUsage
- Remove-OCSPhoneRouteUsage
- New-OCSPhoneRouteUsage
- Get-OCSGlobalUCSetting
- Get-OCSUCPolicyForOCSUser
- Get-OCSPhoneRouteUsageForOCSUCPolicy
- Get-OCSPhoneRouteForOCSPhoneRouteUsage
- Get-OCSPhoneRouteForNumber
- Add-OCSPhoneRouteUsageToOCSPhoneRoute
- Remove-OCSPhoneRouteUsageFromOCSPhoneRoute
- Add-OCSPhoneRouteUsageToOCSUCPolicy
- Remove-OCSPhoneRouteUsageFromOCSUCPolicy
- Start-OCSReplication
- Get-OCSWindowsService
- Stop-OCSWindowsService
- Start-OCSWindowsService
- Get-OCSSipRoutingCert
- Get-OCSEdgeFederationExternalCert
- Get-OCSEdgeFederationInternalCert
- Get-OCSEdgeConferencingExternalCert
- Get-OCSEdgeAvAuthCert
- Get-OCSEdgeInternalDomain
- New-OCSEdgeInternalDomain
- Remove-OCSEdgeInternalDomain
- Get-OCSEdgeInternalServer
- New-OCSEdgeInternalServer
- Remove-OCSEdgeInternalServer
- Get-OCSEdgeFederationDenied
- Remove-OCSEdgeFederationDenied
- New-OCSEdgeFederationDenied
- Get-OCSEdgeFederationPartner
- New-OCSEdgeFederationPartner
- Export-OCSEdgeFederationPartner
- Import-OCSEdgeFederationPartner
- Remove-OCSEdgeFederationPartner
- Get-OCSEdgeIMProvider
- New-OCSEdgeIMProvider
- Update-OCSEdgeIMProvider
- Remove-OCSEdgeIMProvider
- Get-OCSTrustedService
- Choose-OCSMediationServer
- Get-OCSMediationServerSetting
- Set-OCSMediationServerPlusSign
- Enable-ExchUmForOcsUser
- Get-ExchUMDialPlan
- Get-OCSFunction
Published Wednesday, February 03, 2010 10:43 PM by wesglock
©著作权归作者所有:来自51CTO博客作者shichengit的原创作品,如需转载,请注明出处,否则将追究法律责任
0
收藏
推荐专栏更多
猜你喜欢
我的友情链接
POWERSHELL脚本编写利器:PowerGUI Visual Studio Extension
菜鸟教程之Microsoft Windows Powershell
Powershell检测AD账户密码过期时间并邮件通知
Powershell统计邮箱账户信息
PowerShell 批量添加域用户(Windows 2012 R2)
Django+ PowerShell 管理AD系统
PowerShell 多线程的使用
一次应对PowerShell+WMI挖矿***的记录
Windows PowerShell命令历史用法详解
PowerShell 批量导入AD域用户
Html+JS+PowerShell打造Web版AD管理系统 (一)
智能合约编程语言-solidity快速入门(下)
Android中适配器的notifyDataSetChanged()为何有时不刷新
如何在Spring Boot中使用Hibernate Natural ID
从hook开始聊聊那些windows内核数据结构
Scala的actor
正则性能调优
windows下kafka+ELK的日志系统
Nginx下,请求本机另外Host很慢
扫一扫,领取大礼包
转载于:https://blog.51cto.com/shawnshi/335799
Ctrl+Enter 发布
发布
取消