Link to home
Start Free TrialLog in
Avatar of Pau Lo
Pau Lo

asked on

active devices and OS

Is there an easy way, perhaps via one of the ad cmdlets, to get a CSV report of all computers in the domain, that have been "in use" in the past 14 days, to include their computer name, and most importantly their operating system. We are trying to determine, how many, or if any, XP devices are still in use within our primary domain.
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pau Lo
Pau Lo

ASKER

Hi will for commands where there is a few lines, do you have to put these in a text document and save as a ps script, or can you just copy / paste the text into the console and execute (currently dont have access to a domain to test).
You can do one of two things...
1st
- copy the script
- paste it into Notepad
- save the file as a .PS1 file extension
- open a powershell session
- navigate to where you saved the script
- type .\scriptname.ps1

This will run the script for you.

2nd
- copy the script and paste it into the Powershell ISE
- Run the script from the ISE

Thats it.

Will.