Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture out put of a command 2

Status
Not open for further replies.

Tafresh33

MIS
Sep 2, 2005
4
CA
Hi everyone i am fairly new to VBScripting. So here is newbie question.

I am trying to disable user accounts based on days of inactivity.
i know i coud use the "net user username /domain" and achive it via wshShell.Run()
Question is how to capture the result of command for furtuer analyses.

can anyone help?

Thanks.
 
Thanks everyone for their input. Specially you "PHV". That example really helped me grasp the idea.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top