WRKUSRPRF Command dummied down

335 pts.
Tags:
AS/400 command keys
CMD
WRKUSRPRF
Hi, We need our IT Helpdesk staff to be able to reset user passwords and enable accounts. What is the easiest way to accomplish this task without giving them access to the other command values? We use NETIQ but it does not work with Vista. If any suggestions come this way, please make sure they are in easy to understand terms :) Thanks in advance!! Rick

Answer Wiki

Thanks. We'll let you know when a new response is added.

IN an windows domain enviroment you ca create a custom mmc snap in where you can make a reset password button and the you can set who can manage users

Discuss This Question: 9  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, You could make a small CL program and command to achieve this :- CL Program :- PGM PARM(&USERPRF &PASSWORD) CHGUSRPRF USRPRF(&USRPRF) PASSWORD(&PASSWORD) PWDEXP(*YES) STATUS(*ENABLED) ENDPGM Command :- CMD PROMPT('Reset user profile') PARM KWD(USERPRF) TYPE(*CHAR) LEN(10) PROMPT('User profile') PARM KWD(PASSWORD) TYPE(*CHAR) LEN(10) PROMPT('New Password') This should reset the profile and assign a new password - it sets the password as expired which should force the user to change their password when they logon. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Rmason
    Thanks Martin, Dumb question(s) :) 1) Is the second part of your responce indicating to create a cmd with just the parms needed?? 2) Will the CL allow to just re enable the user account without changing a password? 3) In your opinion, what is the best way to deploy this to our IT helpdesk? Menu option?? Thanks.....this site is so helpful!!
    335 pointsBadges:
    report
  • Rmason
    Sorry everyone, I did not put in the original question that this is for the Iseries user profiles.
    335 pointsBadges:
    report
  • Lovemyi
    Martin's example above will do the trick but you will want to compile it with user profile *OWNER instead of the default of *USER as this will then adopt the authority of the person compiling the CL program. This needs to be someone with *SECADM authority like QSECOFR. Also, you could create 2 CL commands, one for changing the password and enabling the ID like shown above and a second CL to just enable the ID only. Then put the options on a menu called OPERATIONS or something like that and give the menu authority to your help desk only. A simple GO OPERATIONS will be all they need to type to get to this menu or enhance it by adding a command line and making this their default menu in their profile. Then they will have command line if they need to perform other tasks. If you want them to. Lovemyi
    2,310 pointsBadges:
    report
  • Cwc
    Or you could have the same CL program accomplish both possibilities, via a parameter that could be sent in from the command - just add another PARM and KWD line to the command to describe that parameter, and add it as the third parameter within the parantheses to the CL program. Then you could add a condition to test its value and proceed accordingly.
    4,290 pointsBadges:
    report
  • Gilly400
    Hi, Answers to your questions :- 1. Yes, tyhe second part is the source to create a command. 2. You could use the following for the program, allows enable without reset of password :- PGM PARM(&USERPRF &PASSWORD) IF COND(&PASSWORD *NE '') THEN( + CHGUSRPRF USRPRF(&USRPRF) PASSWORD(&PASSWORD) PWDEXP(*YES) STATUS(*ENABLED)) IF COND(&PASSWORD *EQ '') THEN( + CHGUSRPRF USRPRF(&USRPRF) PWDEXP(*YES) STATUS(*ENABLED)) ENDPGM Leave the password blank and the userprofile is just re-enabled, if you fill the password then the password is changed as well. 3. Menu option is nice and easy, if you give the command a nice short and easy name it's also easy from the command line. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Rmason
    Follow up:2 Parter Sorry guys.......I have created my menu with the options I need. How do I prompt from a menu option? Example - If I have an menu option for our helpdesk to start a writer, How can I have thyem select the option and then have the screen promt for the writer that needed to be started? Second question, I have the program created and tested (Thanks to you guys) to put the option on the same menu to change a user password and/or re enable the users account. Can you please walk me through how to pull it together? In other words, same scenerio...If our helpdesk selects the menu option to re enable a password, how do I invoke the prompt for the userID? Sorry, I know this is basic.
    335 pointsBadges:
    report
  • Gilly400
    Hi, Part 1 - Put a question mark in front of the command in the menu :- ? STRPRTWTR This will prompt the user when they select the option from the menu. Part 2 - Basically the same answer as part 1. If you called your command RESETUSER, then in your menu you would add the following command to an option :- ? RESETUSER You can test these yourself directly from a command line, the question mark in front of the command is like pressing F4. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Gilly400
    Hi, Another option for your command is to use "selective prompting". For example if you have 2 parameters in your command like this (assuming your command is called RESETUSER) :- RESETUSER USERPRF(userprofile) PASSWORD(password) You can use the following command to prompt for both parameters :- ? RESETUSER Or you can use the following command to prompt ONLY for the USERPRF :- RESETUSER ??USERPRF(*N) Regards, Martin Gilbert.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following