diff --git a/AD Scripts/Get AD last logon date for all computers and servers.ps1 b/AD Scripts/Get AD Last Logon Date for Computers and Servers.ps1 similarity index 99% rename from AD Scripts/Get AD last logon date for all computers and servers.ps1 rename to AD Scripts/Get AD Last Logon Date for Computers and Servers.ps1 index d7e2f73..d2f4152 100644 --- a/AD Scripts/Get AD last logon date for all computers and servers.ps1 +++ b/AD Scripts/Get AD Last Logon Date for Computers and Servers.ps1 @@ -1,2 +1,2 @@ -Get-ADComputer -Filter {OperatingSystem -Like '*SERVER*' } -Properties lastlogondate,operatingsystem |select name,lastlogondate,operatingsystem | Export-Csv C:\Temp\Script Cache\ServerLastLogon.csv +Get-ADComputer -Filter {OperatingSystem -Like '*SERVER*' } -Properties lastlogondate,operatingsystem |select name,lastlogondate,operatingsystem | Export-Csv C:\Temp\Script Cache\ServerLastLogon.csv Get-ADComputer -Filter {OperatingSystem -notLike '*SERVER*' } -Properties lastlogondate,operatingsystem |select name,lastlogondate,operatingsystem | Export-Csv C:\Temp\Script Cache\ComputerLastLogon.csv \ No newline at end of file