Active Directory

Powershell Script to Get List of Active Users with the Details like samaccountname, name, department, job tittle, email in Active Directory

Posted on

    In this blog will see how to list active users with details like samaccountname, name, department, job tittle, email, etc., in Active Directory using powershell script.    A dsquery solution: dsquery * -Filter “(&(objectCategory=person)(objectClass=user))” -Attr givenName sn displayName sAMAccountName mail proxyAddresses distinguishedName > AllUsers.txt   A PowerShell solution using the AD module cmdlet: […]

Active Directory

Powershell Script to Get “lastLogon Timestamp” for Specific OU and Export to CSV File

Posted on

  Learn how to get lastlogon timestamp for specific OU and export to CSV by using Powershell script. A PowerShell solution using the AD module cmdlet: Get-ADUser -Filter * -SearchBase “ou=users,dc=contoso,dc=local” -ResultPageSize 0 -Prop CN,lastLogonTimestamp | Select CN,lastLogonTimestamp | Export-CSV -NoType last.csv   If you want get a date: Get-ADUser -Filter * -SearchBase “ou=users,dc=contoso,dc=local” -ResultPageSize […]

Active Directory

How to Export a Computer List from Active Directory

Posted on

In this blog will see how to export a computers list from Active Directory by using Powershell script into various formats, including csv and Excel. Open the Powershell ISE → Run the below script, adjust the path for the export: Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemVersion,ipv4Address | Export-CSV ADcomputerslist.csv -NoTypeInformation -Encoding UTF8 Using […]

Security

A GDPR Poem

Posted on

  At long last… GDPR is practically here! What do I have to fear? Well, fines, damage, and lawsuits are some. So, that’s not the greatest outcome. However… No need to run around in fright, As regulations continue throughout the night. May 25th is just the start, However, we can all be smart! Here are […]

Security

GDPR is Live, Now What?

Posted on

Finally, GDPR is live now and in full effect. However, there are many businesses are still getting themselves up to speed, and still others are wondering just what the GDPR means for them even can’t determine whether the GDPR applies to them or not. There is so much information available around out about the GDPR; […]