To set the time ( Tested against Windows 2016) Launch CMD as administrator exampled c:\time 09:00:00 AM - This will set the time to 9am Note a time source…
Get-AdUser -Filter {Multiple Filters Complex } -Properties | Export to CSV
#Import AD modules import-module servermanager Add-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature #List AD user accounts and show DisplayName, Email, Title and export to CSV Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title |…
Get a list of inactive computers which have not logged on to the domain in the last 12 weeks
# Inactive computers ( this will include systems not regularly used) # Launch command prompt as administrator and run the following commands Dsquery computer -inactive 12 -limit 500 # Lists…
Get a list of active computers which have logged on to the domain in the last 7 days
# Trying to work out is servers, laptops or desktops have been decommissioned # Try this script # Get a list of active computers which have logged on to the…
Hide Folders Under Share with Access Based Enumeration
So todays challenge. Hide visible folders under share to users who don't have access. Example We create some new shares. Folders are then created under the share and NTFS permissions…