AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[active-directory](computer)

Martin Hope
Fabien
Asked: 2024-10-30 07:02:20 +0800 CST

为何我的 GPO 没有被应用?

  • 5

我有一个活动目录域,我正在尝试在“Eleves”(学生)配置文件上设置 FSLogix,但该 gpo 不适用于学生登录的客户端。我制作了另一个 gpo 来检查它是否有效(disable-menu-contextuel-demarrer),最后一个 gpo 一切正常,当我在客户端上输入 gpresult /R 时,它会显示出来。我不明白,因为它以相同的方式链接到同一个组...

. 我目前所做的:

  • 我的 AD DS 和文件服务器是同一台机器
  • 我的 gpo 已配置并链接到“Eleves”
  • 当学生登录域时,已设置共享 ProfilsFSLogix,并且学生可以对其进行读写访问。
  • gpupdate /Force 无法解决我的问题
  • FSLogix 安装在客户端上

我做错了什么?我忘记了什么?

在此处输入图片描述 在此处输入图片描述

active-directory
  • 1 个回答
  • 40 Views
Martin Hope
TMOTTM
Asked: 2023-02-09 11:38:07 +0800 CST

如何使用 Active Directory DirectorySearcher 查找所有运行 Windows 10 的计算机?

  • 5

我正在尝试为一个过滤器设置一个过滤器System.DirectoryServices.DirectorySearcher,以查找域中所有运行 Windows 10 的计算机。结合两个条件的过滤器的语法是什么?我试过

$Searcher   = New-Object System.DirectoryServices.DirectorySearcher([ADSI]$LDAPProviderPath)
$SearchRoot = New-Object System.DirectoryServices.DirectoryEntry($LDAPProviderPath, "...", "...")

$Searcher.SearchRoot = $SearchRoot

$Searcher.filter="(&(objectCategory=computer)(OperatingSystem=Windows 10))"

如何正确设置过滤器?

active-directory
  • 1 个回答
  • 20 Views
Martin Hope
Steve101
Asked: 2022-10-25 07:31:06 +0800 CST

如何更改此 Powershell 脚本以按 OU 而不是用户身份进行搜索

  • 6

我想使用下面的这个脚本,但是它被设置为搜索单个用户。

我希望有一种方法可以由 OU 指定,但也可以在任何级别上选择一个 OU?

例如,“OU=Clients”将获取该文件夹中的所有用户以及该文件夹下子文件夹中的所有用户。- 我认为powershell已经这样做了,但不确定。

Function Get-LastLogon {
    <#
    .SYNOPSIS
    Returns LastLogon information
    .DESCRIPTION
    Queries the LastLogin information for a user across domain controllers and returns the highest (latest) value
    .EXAMPLE
    Get-LastLogon User
    .EXAMPLE
    Get-LastLogon -Identity User
    .EXAMPLE
    Get-ADUser User | Get-LastLogon
    .EXAMPLE
    Get-LastLogon User1, User2
    .PARAMETER users
    List of users - pipeline can be used
    #>
    
    [CmdletBinding()]
    param
    (
    [Parameter(Position= 0,
                Mandatory=$True,
                    ValueFromPipeline=$True,
                        HelpMessage='What user would you like to find the last logon for?')]
    $identity
    )
    
    Begin {}
    
    Process {
    
        Foreach ($account in $identity) {
    
            $dateStamp = $null
            $domainController =$null

            Get-ADDomainController -Filter * | Foreach {

                $dc = $_.HostName
                
                $lastLogon = (Get-ADUser $account -Properties LastLogon -server $dc | Select-Object Name,@{n='LastLogon';e={[DateTime]::FromFileTime($_.LastLogon)}}).Lastlogon
                
                If ($dateStamp -le $lastlogon)
                    {
                    $dateStamp = $lastlogon
                    $domainController = $dc
                    }
                
            } # End of ForEach
        
            $properties = @{
            Name=$account;
            LastLogon=$dateStamp;
            DomainController=$domainController}
        
            New-Object -TypeName PSObject -Prop $properties
        
        } # End of ForEach

    } # End of Process
        
    End {}          
            
} # End of Function
```c
powershell active-directory
  • 1 个回答
  • 43 Views
Martin Hope
MikeZRed
Asked: 2022-09-17 04:46:15 +0800 CST

Active Directory 高级权限 - 删除不需要的可能权限(不授予/拒绝)

  • 5

我在 Active Directory / MyDomain / Users 对象上调整用户的高级权限,并找到了一个 MASSIVE 列表,其中列出了要授予/拒绝的可能权限。

其中很多是用于 msExchange 的,我认为它已被完全删除。

有没有办法从列表中删除所有这些不必要的、与 Exchange 相关的权限?找到我真正需要授予的权限需要永远。

我尝试过搜索,但所有结果都只是关于授予/拒绝权限的说明,而不是编辑可能权限列表。

任何帮助将不胜感激!

permissions active-directory
  • 1 个回答
  • 20 Views
Martin Hope
lit
Asked: 2022-08-26 06:29:55 +0800 CST

msDS-UserPasswordExpiryTimeComputed 是“隐藏”成员吗?

  • 6

使用以下命令不会生成名为msDS-UserPasswordExpiryTimeComputed. 这是某种类型的“隐藏”成员吗?是否还有其他“隐藏”的对象成员?

Get-ADUser -identity $Env:USERNAME –Properties *
Get-ADUser -identity $Env:USERNAME –Properties * | Format-List -Property * -Force

但是, 的值msDS-UserPasswordExpiryTimeComputed是由以下命令生成的。

Get-ADUser -Identity $Env:USERNAME –Properties "msDS-UserPasswordExpiryTimeComputed"

它可用于计算用户帐户密码的到期日期。

Get-ADUser -Identity $Env:USERNAME –Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" |
Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}

它发生在 PowerShell Core 和 Windows PowerShell 上。

PS C:\> $PSVersionTable.PSVersion.ToString()
7.2.6
PS C:\> $PSVersionTable.PSVersion.ToString()
5.1.19041.1682
powershell active-directory
  • 1 个回答
  • 56 Views
Martin Hope
Ahmed Mohsen
Asked: 2022-08-20 23:37:58 +0800 CST

域用户在登录屏幕中显示为 DOM\USER

  • 5

当我尝试登录我的电脑时,我的用户名自动显示为 <DOM\USER>
它曾经只是 (USERNAME) idk 发生了什么,我搜索了这个问题,但我似乎找不到任何东西

例子

windows-10 active-directory
  • 2 个回答
  • 64 Views
Martin Hope
Tauha
Asked: 2022-06-18 07:48:06 +0800 CST

设置 Windows 10 Active Directory 轻量级

  • 5

我的基本理解是Windows 10 Pro Active Directory Lightweight可用于创建用户和管理设备(计算机),无需任何 Windows Server 实例连接到 Windows 10 Pro(安装所有更新并关闭防火墙),这一切都是可能的。如果我错了,请告诉我。

出于学习目的,我想在我的 Windows 10 Pro 上设置 Active Directory,在安装了所有相关功能后,我通过 AD 轻量级向导创建了 Active Directory,完成向导后,我通过在 ADSI Edit 中创建新连接来测试我的连接,我的连接成功.

根据我的理解,现在是时候连接到Active Directory Users and Computers创建用户了,我Active Directory Users and Computers通过右键单击我去的根节点打开Change Domain Controller,然后选择This domain controller or AD LDS instance我放在这里的选项 ComputerName:389(我在 AD LDS 分区名称 CN= 下的向导中提供了这个ComputerName)在状态列中显示Online状态,但是当我尝试连接时它说,不知道如何解决这个问题。

错误消息窗口

以下是我从中获得帮助的资源:

http://woshub.com/install-active-directory-users-computers-aduc-console/

https://www.rebeladmin.com/2018/02/step-step-guide-setup-active-directory-lightweight-directory-services-ad-lds/

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/adam/binding-to-an-instance

看起来难题的一部分是域控制器,我不知道如何在没有 Win Server 的情况下设置一个,或者可以为没有域控制器的用户和设备设置 AD?或者如果我可以通过连接到 Win 10 Pro 来使用 Free Azure Active Directory,是否有可能?

我知道我可以使用 Windows Server 的试用版,但我想长时间运行 AD 实例,因为稍后我将开发一些 C# 应用程序,我希望我的示例工作继续运行以供我将来参考。

我不是设置 Active Directory 方面的专家,我可能使用了一些错误的术语,如果我在某处错了,请告诉我

windows-10 active-directory
  • 1 个回答
  • 172 Views
Martin Hope
KUL
Asked: 2022-05-24 20:41:37 +0800 CST

如何限制更改 Active Directory 中的 primaryGroupID 属性的权限?

  • 6

我正在更改用户的primaryGroupID属性Active Directory。我通过 PowerShell 来完成。我很好!

Set-ADUser -Server domain.local -Identity KUL -Replace @{PrimaryGroupID=123456}

我想PowerShell从服务帐户运行service1。如何service1仅分配更改primaryGroupID 属性的权利?

我运行控制面板->所有控制面板项目->管理工具->Active Directory Users and Computers

选择 Root My Domain -> 安全 -> 高级 -> 添加 ->Select a Principal (service 1); Allow; Descendant User object

但我没有看到primaryGroupID(relative identifier (RID)) 属性!

如何添加安全规则?

active-directory acl
  • 1 个回答
  • 25 Views
Martin Hope
Kade Williams
Asked: 2022-05-12 19:51:23 +0800 CST

修改密码复杂度后,设置为“用户不能修改密码”的AD用户能否登录?

  • 6

我使用组策略将域上的密码长度从 8 个字符增加到 12 个字符。具有以下选项集的用户帐户无法登录。

User cannot change password

据我所知,这种长度更改只会影响重置密码或帐户过期的用户。更改是否会立即影响设置了“用户无法更改密码”选项且不符合要求的帐户?

active-directory
  • 1 个回答
  • 515 Views
Martin Hope
stackprotector
Asked: 2022-05-09 22:05:45 +0800 CST

加入域的 Windows 10 计算机是否具有查询 AD/LDAP 的内置工具?

  • 10

我在加入 Windows 10 计算机的域上,并且想要查询我自己的用户帐户的属性。有没有内置的工具呢?

它不是管理员计算机,我没有安装 RSAT。我的电脑似乎没有:

  • dsget
  • dsquery
  • ldapsearch
  • ldp
  • PowerShellActiveDirectory模块

是否有其他内置工具?我的意思是,肯定有一些东西,因为至少我的电脑能够查询广告,但是有没有我也可以作为用户使用的工具?

windows-10 active-directory
  • 2 个回答
  • 864 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve