Jump to content

Anyone else here used LAPS (Local Admin Password Service)?


Recommended Posts

Posted

Hi All,

 

 

For those of you who don't know LAPS is a Microsoft supplied bit of software that should connect into AD and allow for resetting and reading of a local admin password.

 

I recently installed LAPS onto my system. But the issue is that sometimes the password resets after a little time, and sometimes the password never sets a password.

 

The Password Expiry time changes every time I do a request. If I do it in the GUI it always said password reset request was successful. I have tried it in powershell as well.

 

I went through all the following steps.

 

Installed Laps (both on my management server and DC)

 

Import-Module AdmPwd.Ps

 

Update-AdmPwdSchema

 

Went and checked and after that I have the ms-MCS-AdmExpirationTime and ms-Mcs-AdmPwd attributes.

 

Then I ran

 

Set-AdmPwdComputerSelfPermission -Identity Workstations

 

Set-AdmPwdReadPasswordPermission -OrgUnit Workstations -AllowedPrincipals Myuser

 

I also tried running

 

Set-AdmPwdResetPermission -Orgunit Workstations -AllowedPrincipals Myuser

 

 

Oh and I have gone and configured all the necessary GPO's and distributed them to the workstations in question.

 

If I go into a computer in that OU and look at the effective permissions Myuser has full control and is allowed to change the ms-mcs attributes. Self has access to Write ms-Mcs-AdmPwd and Ms-Mcs-AdmPwdExpirationTime and Read ms-Mcs-AdmPwdExpirationTime.

 

Is there something that I am missing here?

Posted

Thanks, though sadly I have read that and tried using the specific distinguished name of the OU and still the same thing.

 

I just ran a Find-AdmPwdExtendedRights -Identity "Workstations" and it comes up with myuser as ExtendedRightsHolder so that says to me that I should have rights to do this password reset.

Posted (edited)
needs to have SELF permission set to allow write to ms-Mcs-AdmPwd and read - write to ms-Mcs-AdmPwd ExpirationTime Edited by glen_j
Posted

Yes, Self has been given permission to write but not read the password. Using the LAPS GUI but have also tried this

 

Reset-AdmPwdPassword -ComputerName Workstation1 -WhenEffective "09/09/2019 15:00"

Posted

having trouble early, I've installed the laps on my workstation with extras. I've opened PowerShell as admin and imported the module, when I go to update-admpwdschema is says I have insufficient access rights. (I'm running as a domain admin but I've also added myself as a schema admin in case)

 

 

I'm just running PowerShell on my desktop does it have to be a special active directory PowerShell? (like exchange)

Posted

I did manage to get this running in the end. My issue was that there was some non-standard stuff out there as well as some servers not being able to access the installer file location, which meant the GPO didn't deploy as intended. The non standard stuff was that the local admin account had been renamed and therefore I couldn't reset the password as the account I was trying to reset was not there.

 

Chazzy, no special Powershell, but you do need to run powershell it as an administrator. Oh and check because I had to update my powershell to allow me to update the schema.

Posted

thank @phreak, reading the documentation in the GPO the default admin account is identified by it's SID so it can automatically detect it even if you've changed the name.

 

I had to load the active directory module before my PowerShell would work with the instructions... (so not a permission error at btw)

 

Also it doesn't mention that you need to dig into your local policydefs to copy them over to your policy store!

 

questions:

 

I added the self write permissions to the highest OU, I assume that all OUs below this will allow the PCs within them to get the required perms?

 

I did check that domain admins has the rights to see the extended attributes but I can't see them in AD extended attributes? Does the software have run before those fields appear? I expected to see them but empty.

Posted

ok, using the LAPS ui, I can see the password and expire time. BUT I has only set the default admin, not the 2 other admin accounts that are created when I made the image. (the one for the image and the one when I deploy) I'll see if I can delete them using GPP.

 

The local admin is disabled anyhow?

Posted

Hi Chazzy,

 

If you have run the Schema update command onto the correct domain/OU then you should see the fields in AD (Under Attribute Editor). You can go to Security, Advanced and Effective permissions and check to make sure that Self has Read/Write for ms-Mcs-AdmPwdExpirationTime and Write access to ms-Mcs-AdmPwd.

Your account should have the same, but also have Read ms-Mcs-AdmPwd.

 

You would normally say which admin account you are going to set the password for in the Group policy. And the account must be enabled.

In the end I changed it to reset the Alternative Admin account (not default Administrator account) and once I was sure all of the machines had said account it was fine.

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...