# Mass disable local users

**URL:** <https://community.f5.com/t/mass-disable-local-users/32680>\
**Category:** Technical Forums\
**Tags:** big-ip-dns, big-ip-access-policy-manager-apm, management, security, ltm, application-delivery\
**Created:** [June 9, 2014, 10:07pm UTC](https://community.f5.com/t/mass-disable-local-users/32680 "2014-06-09T22:07:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Nguyen\_449](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@Jeff\_Nguyen\_449](https://community.f5.com/u/Jeff_Nguyen_449)\
**Post date:** [June 9, 2014, 10:07pm UTC](https://community.f5.com/t/mass-disable-local-users/32680/1 "2014-06-09T22:07:19Z")

</div>

anyone know of a way to mass disable local users on LTM/GTM or maybe set them all to read only? I want to pre-preemptively do this to normal user accounts in preparation of a maintenance window.

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [June 10, 2014, 12:45am UTC](https://community.f5.com/t/mass-disable-local-users/32680/2 "2014-06-10T00:45:20Z")

</div>

Hi!

I guess you could make a bash script with tmsh, list local users and set their permissions to read only. Or you could use iControl if you want to do it remotely.

The “problem” though would be to restore the previous rights, unless they all have the same?

/Patrik

---

<div class="post-metadata">

**Author:** ![Jeff\_Nguyen\_449](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@Jeff\_Nguyen\_449](https://community.f5.com/u/Jeff_Nguyen_449)\
**Post date:** [June 10, 2014, 2:38pm UTC](https://community.f5.com/t/mass-disable-local-users/32680/3 "2014-06-10T14:38:06Z")

</div>

they should all be the same except for a hand full, who have certain partition access only. What iControl do you use?

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [June 10, 2014, 3:02pm UTC](https://community.f5.com/t/mass-disable-local-users/32680/4 "2014-06-10T15:02:14Z")

</div>

I use powershell.

/Patrik
