PowerShellPlus提供的快速点击库的第二部分是活动目录(Active Directory),Windows的活动目录Active Directory是自Windows 2000 的目录服务,它取代了NT 4.0版中的安全帐户管理器(SAM)。Active Directory由目录林、域、组织单位、容器和对象等组成。

PowerShell也提供了强大的AD管理Cmdlet,PowerShellPlus基于这些Cmdlet给我们提供了快捷功能,如图:

PowerShell IDE - PowerShellPlus 使用(2)_活动目录

包括以下几大部分的快捷操作:

电脑:Get-IADComputer和Get-IADTombstoneComputer函数

配置:Get-IADCurrentDomain、Get-IADCurrentForest、Get-IADomainController、Get-IADDomainPasswrodPolicy、Get-IADDomainController2、Get-IADFSMORoleHolder、Get-IADSite和Get-IADSubnet

组:Add-ADGroup、Add-ADUserToGroup、Get-ADGroup、Get-aDUserGroupMembers、Get-ADUserGroupMemberShip、Get-IADEmptyGroup、Get-IADGroup、Get-IADGroupMember、Get-IADGroupMemberShip

对象:Get-IADTombstoneObject、Get-IADObjectSID、Get-IADObjectBySID

组织单元:Create-ADOU、Get-ADContainerChildren、Get-ADOU、Get-ADUsersInOU、Get-ADOUProperty

用户:Get-ADUserAccount、Get-IADAltRecipient、Get-IADExchangeAdmin、Get-IADTombstoneUser、Get-IADUser

如果我们想了解这些函数的参数,可以将鼠标停留在快捷命令上,会有ToolTip提示Function的参数等信息,如下图:

PowerShell IDE - PowerShellPlus 使用(2)_Windows_02

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
标签: shell