Microsoft.PowerShell.LocalAccounts 模块在 64 位系统上的 32 位 PowerShell 中不可用。 示例 示例1:获取管理员组 PowerShell 复制 Get-LocalGroup -Name "Administrators" 此命令获取本地管理员组。 该命令在控制台中显示组的属性。 参数 -Name 指定此 cmdlet 获取的安全组的名称数组。 可以使用通配符。 展开...
某些功能可能要求在要管理的服务器上拥有本地管理员权限。 若要管理这些功能,必须是该服务器上 Local Administrators 组的成员。 Exchange 基础结构权限 下表列出了执行配置常规 Exchange 设置的任务所需的权限。 分配了仅限查看管理角色组的用户可以查看下表所示功能的配置。 有关详细信息,请参阅仅查看组织...
Get-LocalUser -Name "username" 将"username" 替换为你想要查找的特定用户名。这个命令将返回与该用户名匹配的用户账号信息。 PowerShell 中,你可以使用以下命令来获取本地管理员的信息: powershellCopy Code Get-LocalGroupMember -Group "Administrators" 这个命令将返回属于 "Administrators" 组的成员信息,其中包括...
此命令列出所有属于 Administrators 组的用户账户。PowerShell 示例:powershellCopy CodeGet-ADGroupMember -Identity "Administrators" | Select-Object Name, sAMAccountNamePowerShell 通过 Get-ADGroupMember 可以方便地列出组内所有成员。78. 删除没有使用过的用户账户...
You must run this command as a member of the local Administrators group, because Windows PowerShell core command help is stored in the %systemdir% folder. Error messages will be displayed if help isn't downloadable. In such cases, Windows PowerSh...
This cmdlet allows SharePoint administrators to check the status of a user or site move across geo locations. Get-SPOUserOneDriveLocation This cmdlet will return the user principal name, current location, and corresponding OneDrive for Business url, and the site ID. This cmdlet only supports Mul...
Create list of users in the Domain Admin Group who have an active account Create Log File with Copy-Item Create multiple local user accounts with text file and disable them after a period of time time with powershell script. Create New Excel Worksheets Create object reference by specifying PID...
This makes the adaptability of PowerShell to Microsoft enterprise-level environments a sought-after experience for administrators. It takes just a few easy steps to get started using PowerShell with Office Communications Server 2007 R2. Reading this article is a good way to get started using ...
What this script does is to create a local user group – called “Hyper-V Administrators” – and then configures that group to have full access to Hyper-V (it also adds the current user as a member of the “Hyper-V Administrators” group). After running this script you c...
This cmdlet allows SharePoint administrators to check the status of a user or site move across geo locations. Get-SPOUserOneDriveLocation This cmdlet will return the user principal name, current location, and corresponding OneDrive for Business url, and the site ID. This cmdlet only supports Mul...