- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2018 04:34 AM
Hi Guys,
Any suggestions on how to perform Bulk password reset ??
Any scripts if possible ?
Tried a simple script but able to update all the other fields on the user form, but unable to update the Password.
Solved! Go to Solution.
- Labels:
-
Password Reset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2018 04:48 AM
Its working now.
here is the script,
resetPassword();
function resetPassword() {
var gr = new GlideRecord('sys_user');
gr.addActiveQuery();
gr.query();
var count = gr.getRowCount();
if (count > 0) {
while (gr.next()) {
gr.setDisplayValue("user_password","Password123456");
gr.update();
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2018 04:39 AM
Can you share the script. This should be done without any challenges.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2018 04:48 AM
Its working now.
here is the script,
resetPassword();
function resetPassword() {
var gr = new GlideRecord('sys_user');
gr.addActiveQuery();
gr.query();
var count = gr.getRowCount();
if (count > 0) {
while (gr.next()) {
gr.setDisplayValue("user_password","Password123456");
gr.update();
}
}
}