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 PowerShellTag: command line
Get 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 managementPowerShell 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 computerGet list of Departments and number of users per Department in PowerShell
I need to create a report from Active Directory. I need to provide list of all Departments and headcount per Department. Here is quick PowerShell…
View More Get list of Departments and number of users per Department in PowerShellList 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 PowerShellGet battery health report on Windows laptop
You can gen easily two reports about your laptop battery under Windows 10. Simply press [Windows]+[R] and type [cmd]. Once in command line window you…
View More Get battery health report on Windows laptopFind out the current version of the Active Directory Schema
Quick one liner to find out current version of the Active Directory Schema on your network especially of you have mix of servers. Using dsquery…
View More Find out the current version of the Active Directory SchemaHow to activate Windows Server Core 2019 from command line
After you’ve logged into Windows Server Core, you’re presented with the Command Prompt. From there, you can activate your copy of Windows. First, you have…
View More How to activate Windows Server Core 2019 from command line