PaulDotCom mailing list archives
WMIC help
From: herrasher at gmail.com (Kennith Asher)
Date: Thu, 11 Jun 2009 15:54:13 -0700
Great suggestion Brian. That may just do the trick for me. So long and thanks for all the fu.... Ken On Thu, Jun 11, 2009 at 1:38 PM, Brian Gray <brianwgray at gmail.com> wrote:
I realize it's not wmic but wouldn't it be just as simple to use something like net user username /dom | find "Password expires" Maybe you need wmic for a specific reason I don't know... I believe as long as you are logging in as a user within that domain it should pull the information without issue. I can think of a dozen other ways depending on what the end result you are looking for is. On Thu, Jun 11, 2009 at 12:46 PM, Raffi Jamgotchian < raffi at flossyourmind.com> wrote:i've used VBscript to do it. If you're interested, Ill dig it out. it was run against the domain controller if I remember correctly. On Jun 11, 2009, at 12:42 PM, Michael Douglas wrote:Bah. This doesn't work... you have to enter the actual user's password. Sorry for the bum advice! - Mick On Wed, Jun 10, 2009 at 8:55 PM, Michael Douglas<mick at pauldotcom.com> wrote:If you're an admin, you should be able to force the wmic check to happen in the scope of another user. wmic /user:"domain\user" netlogin get passwordexpires (note you'll likely need to keep the quotes in the line above. wmic is very picky about global flag values.) I believe this will work... But I'm not VPNed into my lab at work right now to test and see. Please let us know if this works as you wanted it to. My answers might be wrong, but they're FAST! ;-) - Mick On Wed, Jun 10, 2009 at 4:29 PM, Kennith Asher<herrasher at gmail.com> 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-- -Brian W. Gray _______________________________________________ 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/0ec96479/attachment.htm
Current thread:
- WMIC help Kennith Asher (Jun 10)
- WMIC help Michael Douglas (Jun 10)
- WMIC help Kennith Asher (Jun 11)