Hmmm... Neither Mick's not Daniel's answer seemed to work out for me.
For Mick's (wmic /user:"domain\user" netlogin get passwordexpires) I get: "User credentials cannot be used for local connection" For Daniel's I get: No Instance(s) Available. Note that the user in question has never logged in locally on the machine I am making these inquiries from and I am trying the queries as a user in the Domain Admins and local administrators group, not domain\Administrator or local Administrator. It's not clear whether that might help, but I'll give domain admin a go and let you know what I find. Ken On Thu, Jun 11, 2009 at 2:43 AM, Daniel [Virturity.com] < [email protected]> wrote: > This should work if i understand your question correctly > > wmic netlogin where (Name like "%usernameofchoice") GET PasswordExpires > > > On Wed, 2009-06-10 at 13:29 -0700, Kennith Asher wrote: > > Hey all you WMIC gurus out there. I'm trying to find a > > straightforward means of identifying when a domain user's password > > will expire. Is there a modifier or switch I can set to bring back > > password expiry for another domain user? > > > > I know I can use: > > > > Wmic netlogin get passwordexpires > > > > to find when my password expires, can this be done for another domain > > user? Assume I have admin privileges. > > > > Oh, and just so that we're clear here, this is for the domain we use > > at work, I am doing this on behalf of a user I support. > > > > Thanks, > > > > Ken > > _______________________________________________ > > Pauldotcom mailing list > > [email protected] > > http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom > > Main Web Site: http://pauldotcom.com > > _______________________________________________ > Pauldotcom mailing list > [email protected] > http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom > Main Web Site: http://pauldotcom.com >
_______________________________________________ Pauldotcom mailing list [email protected] http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
