Here is a quick scrip to pull report on recent password changes for users in Active Directory: 123Import-Module ActiveDirectory $DateCutOff = (Get-Date).AddDays(-5) Get-ADUser -Filter *…
View More Get report on recent password changes in ADTag: Scripting
PowerShell – AD Group management
Here are few quick one liners such as add user to 2 AD groups at same time: 12"Managers","SalesRep" | Add-ADGroupMember -Members ` (Read-Host -Prompt "Enter…
View More PowerShell – AD Group managementExport users SamAccountName from Email address csv file
Quick PowerShell script to accomplish a task to get a list of users by SamAccountName from provided csv file with email addresses. The csv file…
View More Export users SamAccountName from Email address csv filePowerShell to view BIOS version on Dell computer
Here are few commands that you can use to view info about BIOS on DELL computers: List manufacture and version of BIOS 1Get-WmiObject -Class Win32_BIOS…
View More PowerShell to view BIOS version on Dell computerCheck if user is member of the group
Here is another quick PowerShell script to check if user is a member of given group. 1234567891011121314151617181920Clear-Host if (Get-Module -ListAvailable -Name ActiveDirectory) { Import-Module ActiveDirectory…
View More Check if user is member of the groupGet AD Group Creation Date
Here is quick one liner hot to get a report on when Active Directory group has been created. This could be asked during audits so…
View More Get AD Group Creation DateList users from 3 different Active Directory Groups with PowerShell
Here is a quick sample of Power Shell snippet to list users from 3 different Active Directory groups: 123Import-Module ActiveDirectory $groups = "AWS-IAM-PCI-Prod-Admin","AWS-IAM-PCI-Prod-Deploy","AWS-IAM-PCI-Prod-Monitoring" foreach($group in…
View More List users from 3 different Active Directory Groups with PowerShellPowerShell – Get user’s Manager, Department and Title information
Here is another quick helper for Help Desk guys to pull quickly information about user in PowerShell: SamAccountName Title Department Manager In this case the…
View More PowerShell – Get user’s Manager, Department and Title informationReset Password for user in Active Directory
Quick Help Desk script tool in PowerShell to reset user password : 1234567891011121314Clear-Host Import-Module ActiveDirectory $newpwd = Read-Host "[ Enter the new password ]" -AsSecureString…
View More Reset Password for user in Active DirectoryGet list of installed software on machine from command line
This is handy command line if you want pull quickly list of installed software on the machine. You can output it in to terminal or…
View More Get list of installed software on machine from command line