Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to identify computer lastlogontimestamp and disabled status

$
0
0

Hello,

I am trying to piece together a script that will perform a few functions.

First, I need to identify the lastlogontimestamp for all computer accounts over 90 days.  

From that list I need to add a field that shows if the account is disabled or enabled (a Yes or No to "disabled?" would be perfect).  

And then from there I need to pipe out the results to a CSV.

Powershell would be ideal, but open to VBScript as well.

I have found how perform each function separately, but not how to piece them all together into one script.

Much thanks in advance!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>