Checking the hash of a file you’ve downloaded from the internet is very good practice. It’s a way to ensure the file you’re downloading hasn’t been tampered with, according to the hash provided on the site you’re downloading from.
Since Powershell 4.0, Get-FileHash has been a way to check the hash signature of a file.
Get-FileHash -Path C:\Path\to\file\file.exe -Algorithm SHA256
Get-FileHash can check the following signatures:
- SHA256 (default value)
You get a helpdesk ticket that a user needs to be added to an AD group. A quick command in PowerShell is all you need. By the time Active Directory Users and Computers opens, you’re closing the ticket.
Open a PowerShell prompt:
Add-ADGroupMember NameOfADGroup userID09
To confirm the account is there, run this:
Get-ADGroupMember NameOfADGroup | select SamAccountName | sort-object SamAccountName -descending
Be sure to import the Active Directory module.
If using Windows 7 or Windows 10 download the Remote Server Administration Tools & Install.
If your using a server, add the feature, Active Directory module for Windows PowerShell.
If you need to delete a user from a group:
Remove-ADGroupMember NameOfADGroup userID09