Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Deleting and and moving machines lastlogontimestamp older than 90 days

$
0
0

Hi, I'm looking for some assistance,  I'm having some difficulty with one aspect of my script and would like to do the following.

1) Find computers with last logontimestamp older than 90 days within specific OU's

2)Create output file with the list of computernames, Current OS, current object location and lastlogontimestamp info.

3)disable said machines and move the computer objects into a seperate OU.

The part I'm having difficulty with is including the search on specific OU.

Thanks in advance


Viewing all articles
Browse latest Browse all 6937

Trending Articles