activedirectory
4 TopicsDFS service exception
Hello, our server has encountered an abnormal DFS service, which currently leads to an abnormal synchronization of Active directory policies. and caused a series of failures. OS: Windows Server 2019 Now run the command: gpupdate /force Unable to update computer policy successfully, Windows tries to read a file from a domain controller, but failsSolved3.1KViews0likes14CommentsGet-ADUser from Get-AdGroupMember? Trying to get list of users using list of computers
Hi, I am trying to retrieve a list of users that have or are logged on to certain computers. The computers are all part of a security group and I have retrieved and saved the list using: Get-ADGroupMember security-group-name | Export-CSV complist.csv From this list, I'd like to find out who the users are of each of these computers. If there is a better way to achieve what's being asked, please feel free to share. Thank you!Solved1.5KViews0likes4Commentsforeach and out-file- no data
Hi, I need to return a list of active users: Display name etc. but no data is exported to my out-file. Any clues would be highly appreciated . Thanks $users = Get-Content "C:\dump\usernames2.txt" foreach ($user in $users) { if (Get-ADUser -ldapfilter "(samaccountname=$user)" -Properties displayname,mail,distinguishedName | Select-Object -Property displayname,mail,distinguishedName) { out-file "c:\dump\usersexist.txt" } else { Add-Content "C:\dump\namenotfound.txt" "$user" } } I2.3KViews0likes4Comments