PaulDotCom mailing list archives
WMIC help
From: gbugbear at gmail.com (Tim Mugherini)
Date: Thu, 11 Jun 2009 14:49:40 -0400
Kennith, Does this have to be wmic, you should be able to get this via LDAP in Active Directory On Thu, Jun 11, 2009 at 12:30 PM, Kennith Asher <herrasher at gmail.com> wrote:
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] < daniel at virturity.com> 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 Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pauldotcom.com/pipermail/pauldotcom/attachments/20090611/cb749d42/attachment.htm
Current thread:
- WMIC help, (continued)
- WMIC help Kennith Asher (Jun 11)