Disable prompt to change password for local non-admin account

Hi there, I have a special-case laptop image running Windows 7 Enterprise. This one will not be on the domain--configured as a standalone workgroup only. I have three local accounts on it:
1) Tech account with admin privs and password protected
2) Teacher account with admin privs and password protected
3) Kindergarten student account with regular user privs and no password at all
For some reason, after Sysprep, when the student and teacher clicks their icon to logon, Windows always prompts them to change the password. I want to disable that. I have the following in my unattend.xml file which should take care of this, based on what
I've read here. Still getting prompted to change password though. Any ideas what's missing?
Thanks,
Sir_Timbit
<component name="Microsoft-Windows-Shell-Setup" .....
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>wmic useraccount where &quot;name=&apos;Student&apos;&quot; set PasswordExpires=FALSE&lt;/CommandLine&gt;</CommandLine>
                    <Description>Student password never expires...</Description>
                    <Order>2</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>net accounts /maxpwage:unlimited</CommandLine>
                    <Description>Disable expired local user account passwords</Description>
                    <Order>3</Order>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>wmic useraccount where &quot;name=&apos;Staff&apos;&quot; set PasswordExpires=FALSE&lt;/CommandLine&gt;</CommandLine>
                    <Description>Staff password never expires</Description>
                    <Order>1</Order>
                </SynchronousCommand>
            </FirstLogonCommands>

For some reason my paste garbled up the unattend.xml file. It should read:
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>wmic path Win32_UserAccount WHERE name="Student" set PasswordExpires=FALSE</CommandLine>
                    <Description>Student password never expires...</Description>
                    <Order>2</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>net accounts /maxpwage:unlimited</CommandLine>
                    <Description>Disable expired local user account passwords</Description>
                    <Order>3</Order>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>wmic path Win32_UserAccount WHERE name="Staff" set PasswordExpires=FALSE</CommandLine>
                    <Description>Staff password never expires</Description>
                    <Order>1</Order>
                </SynchronousCommand>
            </FirstLogonCommands>
Now, I let Sysprep complete and logged on as Staff. I went to the command prompt and ran the wmic command above to configure the student account to never expire. It failed when I ran it from a regular command prompt, but worked (and prevents the student
password from expiring--what I want!) when I ran the command prompt as administrator, and paste the above. I was under the impression sysprep would be processing the unattend file with administrative privs. So I'm a bit closer here, but still unsure how to
get it to run the above wmic command as administrator.

Similar Messages

  • Can't login to local NON-admin accounts-Directory Access set to server

    I have a strange problem on a set of laptops that I cannot resolve and am hoping someone can help me.
    Here is the issue:
    I have a set of building laptops (PowerPC, OSX.4.11) that seemingly will not "search locally" in the authentication process. The logins seem to work fine for NETWORK logins to our Open Directory Master xserve, but these machines will not login to any LOCAL non-admin accounts. The local root and local admin account logins do, however, work fine. ?? The remainder of the building computers (Intel iMacs OSX.4.11) appear to have the exact same settings and login fine both locally and via the network home directories.
    I have tried the following:
    Deleted DirectoryService preferences folder (MacintoshHD-->Library-->Preferences->DirectoryService)
    Deleted the mcx cache in Directory Access
    Tried adding a new non-admin user to test (still will not login)
    Removed and re-created LDAP configuration (all set to custom)
    Tried setting the LDAP to the automatic settings ("Add DHCP-supplied LDAP servers to automatic search policies")
    Disabled all network connectivity (turned off Airport and disconnected the ethernet cable), still cannot login to local accounts
    Tried to bind in LDAP configuration (when I did bind the machine, it would no longer authenticate to the network authentication server, so I did an "unbind" and restarted and it went back to performing the network logins, but still will not login to local non-admin accounts).
    Reset passwords in System Prefs and also re-typed them in NetInfo Manager
    Deleted login keychains
    Deleted mcx.plist
    Reinstalled the OS from disk and local logins worked TEMPORARILY--UNTIL I set the LDAP directory access to authenticate to our server (which I also need for the network logins to work),then, the issue started again.
    *Same results with both ethernet and wireless connectivity enabled.
    *Note: I also manage these local accounts via WGM (installed on the local machine) and even tried disabling that and still no luck.
    Please help...I have spent hours and hours trying to find a solution and nothing seems to work! What am I missing??

    Mostly just a bump...
    How about that .local extension, or trailing / ?

  • Is there a way to have a item NOT require a password on a non-admin account

    I use my Mac with Adobe Creative Suite (3) to make files (jpeg) that are formatted for cell phones to make animated and static wallpapers for phones to make a profit and i got a new printer because my old printer broke. on my old printer it would show on the desktop or in the finder sidebar as "epson17401..." I could put a micro SD in the printer and put files on there and take it out and put it into the phone with no problems with no problem. Now with this printer (Canon Pixma MX870) when i try to put the same kind of files on the micro SD memory card via printer it asks for a admin password. So i used to put files on daily but i can't ask the IT person EVERY time i want to put a file on. So my question is in parents controls is there a way to say that it is okay to put files to that drive without the need for a password?
    thanks in advance
    Message was edited by: appleaka

    I think parental controls only restricts. It doesn't grant additional privileges that weren't already there.
    While logged in as an admin, check the permissions on the SD drive and all folders inside it. Make sure they are all set to give everyone read and write permission. Then try it again as an unprivileged user.

  • Find My Mac not working for a non-admin account

    I would appreciate some advice, or comment, on what I perceive is "Find my Mac" not working.
    I use a Mac Mini (late 2009) to run my home media; it on 7/24, connected to a drobo drive and is running the latest Mac OX X Lion. I did a complete erase and install of the OS, and the recovery partition IS there.
    I use an auto-login account, but with no administrative privileges. There is no monitor, keyboard or mouse connected to it, but in case it gets stolen, I want to find it.
    When I log in with an admin account, I can turn on Find My Mac, under icloud prefs. When I relog into the normal user account, this preference is greyed out, and says "Needs administrative authorization".
    So, is Find my Mac running, cause I turned it on with an admin account, or not?
    If no, how do I make sure it is always running?
    thanks

    These are the notes of the steps I took which finally got my MBP to appear in FMM:
    I clicked on the MBP remove device-> I took the MBP Wi-Fi off line-> I went to iCloud Pref's, unchecked find my Mac-> turned Wi-Fi back on-> went to iCloud pref's re-checked 'Find my Mac'-> went online to iCloud.com, selected the MBP, which had found it's location. I sent a message and sound to the MBP from the Mac mini, which instantly came up on the MBP.
    SO, eventually my MBP 'Find my Mac' is working.

  • Can't run programs from non-admin account: redux

    Background: I have years of experience with PCs, very little with Macs. I work with children in a group home. The tech support people who set up this iMac (OS X 10.2) have long since departed, and no one in the organization has any clue as to what changes they made to this system, and I'm sure that those tech people made some changes. For example, in admin accounts other than "root," either there is no access to the Utilities folder or the folder has been well hidden.
    The Problem: The boys in this home will use a non-admin account. The programs I have installed for them will run under admin accounts but not under the "boys" account, which is non-admin. The system tells me that the account does not have enough access privileges to run the programs. (Program that had been installed before I got access to this iMac will run under the "boys" account.)
    In discussions on this forum several months ago, I thought the answers I got here had helped me solve the problem. Then, for administrative reasons, I did not touch the iMac until last week. What I thought had been solved is not solved.
    From "root," using the "Capabilities" option in the Accounts folder, I have added to the "Add other applications..." section the programs I want "boys" to have access to. But this doesn't work. When I log in to "boys," access is denied: insufficient access privileges.
    If I give up on this system, the boys will not be able to use this iMac, and that would be a shame.

    I realize that it sounds like I ignored all the previous advice before I drafted this latest post. But the first thing I did when I returned to the iMac was to look at the posts.
    I didn't touch the system for six months. I was waiting for approval from administration to upgrade the OS. By the time I got the approval, upgrading was no longer an option -- according to the manager of the local Genius Bar. This system is not capable of running 10.5, and Apple will no longer sell 10.4. I can find 10.4 on the Net, but those are private sellers and the price is too high.
    Now that I've got that out of the way, the current task: I have no idea why, but the gains I accomplished six months ago have disappeared. The "boys" account can run none of the software I installed. No one else has touched the system. (I live alone.)
    I logged on as "root" and went to Accounts. Using 10.2's Capabilities function, I tried to check all the boxes for "boys." But when I close the screen and then re-open it, the system has unchecked "Open all System Preferences"; "Change Password"; and access to "Utilities."
    At this point I cannot create new folders under "boys." "boys" can run software that was installed before I got the machine, but that's all.
    I have to assume that I inadvertently did something that wiped out my previous gains. But I ain't got a clue.

  • How to change password for a user in WLS 7.0 embedded ldap in code?

    I asked the similar question before but don't have an answer yet.
    I need to change password for a user in my Java code. Any help will be
    appreciated.
    Here is my stack trace:
    c:\Test>java -classpath . testEmbeddedLdap
    attribute: uid
    attribute: description
    attribute: objectclass
    attribute: wlsMemberOf
    attribute: sn
    attribute: cn
    javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient
    Access Rights]; remaining name
    'uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2872)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2810)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2616)
    at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1374)
    at
    com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDir
    Context.java:255)
    at
    com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
    CompositeDirContext.java:172)
    at
    com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
    CompositeDirContext.java:161)
    at
    javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.
    java:146)
    at testEmbeddedLdap.main(testEmbeddedLdap.java:30)
    Here is my testing code:
    <PRE>
    import java.util.*;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class testEmbeddedLdap {
    public static void main(String[] argv) {
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://localhost:7001");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, "uid=myAdministrator, ou=people,
    ou=myrealm, dc=mydomain");
    env.put(Context.SECURITY_CREDENTIALS, "myAdministrator");
    try {
    DirContext ctx = new InitialDirContext(env);
    String
    sUser="uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain";
    String sOldPassword="myRegularUser";
    String sNewPassword="newpassword";
    for (NamingEnumeration ae = ctx.getAttributes(sUser).getAll();
    ae.hasMore(); ) {
    Attribute attr = (Attribute)ae.next();
    System.out.println("attribute: " + attr.getID());
    ModificationItem[] mods = new ModificationItem[2];
    Attribute mod0 = new BasicAttribute("userpassword",
    sOldPassword);
    mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE,
    mod0);
    Attribute mod1 = new BasicAttribute("userpassword",
    sNewPassword);
    mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE, mod1);
    ctx.modifyAttributes(sUser, mods);
    ctx.close();
    } catch (NamingException e) {
    e.printStackTrace();
    </PRE>
    "Neil Smithline" <[email protected]> wrote in message
    news:[email protected]...
    Two things. First, I'm not exactly sure what password you are trying to
    change. The LDAP server's password or a user's password in the LDAP
    server. Second, could you please post a stack trace.
    Thanks - Neil
    K Wong wrote:
    I am using (javax.naming.directory.DirContext.modifyAttributes) to
    change
    password to our development Weblogic 7.0 embedded LDAP.
    I login as the system administrator (a user in the administratorsgroup),
    but always gets the javax.naming.NoPermissionException - InsufficientAccess
    Rights.
    What user should I use? Any help will be appreciated.

    Hai,
    This condition based execution requires - javascript coding.
    In miscelleaneous tools bar, you have an option of SCRIPT_ITEM writer tool, drag the tool into your WAD layout, and select the properties , choose the editor option and paste your coding. that's it.
    Alternate option :
    in your web application design layout , you will fine XHTML coding editor , there you need to write coding and execute the same.
    Hope this will help to you.
    Assign Points if its really useful.
    Cheers !!!
    Bye
    Regards,
    Giri

  • I'm trying to retrieve or change my password for an OLD itunes account. I know longer have access to the email in question and Apple refuses to acknowledge my birthdate. What to do?

    I'm trying to retrieve or change my password for an OLD iTunes account. I no longer have access to the email account in question. Apple will not accept my birthdate. What to do?

    send an e-mail to the iTS customer service using this form, describe your problem and ask the folks there to help you sort it out.
    JGG

  • How to set password for Local are connection?

    How to set password for Local are connection?

    do you mean the 802.1x authentication?
    check out links below:
    http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2950/software/release/12-1_9_ea1/configuration/guide/scg/Sw8021x.html
    http://technet.microsoft.com/en-us/network/bb545365.aspx
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • WLST script for changing password for userid in Weblogic 9.2

    Hello Everyone,
    We want to change password for userid in weblogic 9.2. Is there a way we can do this by using WLST script? If so please provide me with steps for doing that using WLST. Thanks in advance.
    - - Weblogic Consultant

    Did you try going to the WLST documentation and searching for it? Go to [http://edocs.bea.com/wls/docs92/pdf/config_scripting.pdf] and search for "Changing a Password". The example there seems to be what you need.

  • I am unable to change passwords for any users.  The "change password" is grayed out.

    I am unable to change passwords for any users.  The "change password" is grayed out.  I know there is a way to change them but I am having trouble finding it.
    Message was edited by: dmw1975

    If you're in the Users pane of the server app, and you select Network Users from the drop-down near the top, there's a small padlock icon at the bottom. Is it locked or open? If locked, click it and enter credentials into the authorisation box that opens

  • How to change password for itunes

    HELP PLEASE!
    DOES ANYBODY KNOW HOW TO CHANGE PASSWORD FOR ITUNES?

    Follow the instructions here.
    Apple ID: Changing your password

  • How to change password for BtOpenZone?

    Hi,
    Does anyone know how to change password for BtOpenZone? I have tried the following link and it is not working with me....
    http://www.btinternet.com/new/content/mybti
    Last time I have to ring BT to change the password, but I want to do via some control panel.
    Thanks
    Kam 
    Solved!
    Go to Solution.

    If you're a BT Total Broadband customer and you want to change the password, you can go to btyahoo.com, log in there and change your password. The primary email account and the FON/OZ logins are linked. if you change your email password, your FON/OZ password will also change.
    if you're an Openzone only customer, you can log into your control panel on the main page and change your password there.

  • How to change password for sidadm user on HP-UX

    Hello
    How to change password for <sidadm> user on HP-UX

    Hello Jan,
           1.      Log on to the operating system with the <sid>adm user.
           2.      Open a shell.
           3.      Enter the command passwd.
           4.      Enter the old and new passwords
    Rohit

  • How to change password for apple user id

    how to change password for apple user id

    If you can't remember your current password then you should be able to get it reset via this page : http://iforgot.apple.com
    If you know your current password then on your phone you can try tapping on your id in Settings > Store and you might be able to change it on your account's screen, or on your computer's iTunes you can log into your account via the Store > View Account menu option and change it on there

  • How to change password for parental controls

    how to change password for parental control on macbook pro

    If you can't remember your current password then you should be able to get it reset via this page : http://iforgot.apple.com
    If you know your current password then on your phone you can try tapping on your id in Settings > Store and you might be able to change it on your account's screen, or on your computer's iTunes you can log into your account via the Store > View Account menu option and change it on there

Maybe you are looking for