Here is quick PowerShell snippet to get information on how many user we have in Department and then pull the list from Active Directory to…
View More Get a list of users in certain Department from Active Directory with PowerShellTag: PowerShell
Compress files or folders with PowerShell
The Compress-Archive cmdlet creates a compressed, or zipped, archive file from one or more specified files or directories. An archive packages multiple files, with optional compression,…
View More Compress files or folders with PowerShellGet report on recent password changes in AD
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 ADAdd SMTP-ProxyAddress to users in AD with PowerShell
Here is a quick way to add new SMTP/ProxyAddress for the users in Active Directory with use of PowerShell. Create a csv file with two…
View More Add SMTP-ProxyAddress to users in AD with PowerShellPowerShell – 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 fileCheck status of Microsoft AntiMalware
Here is a quick snippet to show current status of Microsoft Antimalware on your Windows 10 computer. 12345Clear-Host Write-Host Write-Host "CURRENT STATUS " -Foregroundcolor yellow…
View More Check status of Microsoft AntiMalwarePowerShell 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 computerCopy Group Members from One group to Another
Simple PowerShell script to move members of one group to be also members of new group that you have just created. I am using this…
View More Copy Group Members from One group to AnotherCheck 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 group