Posts Tagged ‘ActiveDirectory’

Notice that in Active Directory Users and Computers (ADUC) when setting the expiration of a user account, there’s only a way to have the account expire at the end of a specific day:

Tuesday, October 4th, 2022 at 10:21 | 0 comments
Categories: Technology

When you try to make some system changes on your computer, you may get the following or similar error message basically stating that your operation is being blocked by group policy. “The command prompt has been disabled by your administrator” “Some settings are managed by your organization” “This program is blocked by group policy. For […]

Monday, September 19th, 2022 at 17:51 | 0 comments

Step #1: This is the simplest method to add a computer to a domain. In this example you will be prompted for credentials followed by the required reboot. Add-Computer -DomainName “your.domain.here” Restart-Computer Step #2: If you require an automated script without prompting the user for credentials you can provide the user account with rights to […]

Thursday, May 12th, 2022 at 09:34 | 0 comments

netdom query fsmo 查询五大角色 dsquery server 显示所有域控 查看架构主机角色 dsquery.exe server -hasfsmo schema 查看域命名主机角色 dsquery.exe server -hasfsmo name 查看RID 主机角色 dsquery.exe server -hasfsmo rid 查看PDC 模拟主机角色 dsquery.exe server -hasfsmo pdc 查看基础架构主机角色 dsquery.exe server -hasfsmo infr whoami /all 查询当前用户及权限 net user /domain 查询域用户状态

Friday, February 18th, 2022 at 13:46 | 0 comments

This script might be useful in getting users that haven’t logged for a longer amount of time. It is checking lastlogondate property: Please be aware that it gets a date only from the specified Domain Controller. In this case, I added a logon server in the server parameter and I was looking only for enabled […]

Saturday, November 27th, 2021 at 01:05 | 0 comments
TOP