Jump to content

Recommended Posts

Posted

Whilst "tidying" up some users with powershell I think I may have messed up big time.

 

It looks like I've disabled the krbtgt user account and moved it into a "Disabled" OU.

Apparently this account is crucial for kerberos 🤯

 

Nothing seems to have broke yet but can anyone advise ? E.g. should I just re-enable it

and move it? Which OU should it be in ?

Posted (edited)

Phew, thanks all :embarassed:

 

I'd been disabling accounts and moving them e.g. 

Get-ADUser -Filter {(Enabled -eq $False)} | Move-ADObject -TargetPath "OU=Disabled,OU=Accounts,DC=ourdomain,DC=local"

so it was probably already disabled and just got moved

I'll move it back 

 

Edited by mrstrong
  • Like 1
Posted (edited)
59 minutes ago, mrstrong said:

Phew, thanks all :embarassed:

 

I'd been disabling accounts and moving them e.g. 

Get-ADUser -Filter {(Enabled -eq $False)} | Move-ADObject -TargetPath "OU=Disabled,OU=Accounts,DC=ourdomain,DC=local"

so it was probably already disabled and just got moved

I'll move it back 

 

The command is filtering for disabled users i.e. Enabled -eq $False . So in it self not disabling the account. A more safer option would be to set OUs i.e. Service Accounts, Staff Accounts, Student Accounts etc and filter on the OUs that contain those users and not any user in AD otherwise you could end up in a right mess.

Edited by Davit2005
  • Thanks 1
Posted (edited)

Just remmber when you change the password which you can just do through aduc to leave it 24 hours before doing the next change. (Two changes are needed to expire all existing tokens) 

Edited by CrootUK
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...