Run with Powershell powershell.exe -command “& ‘D:\powershell.ps1′” -ExecutionPolicy Bypass How long script takes? [datetime]$startDate = Get-Date[datetime]$endDate = Get-DateWrite-Host $(NEW-TIMESPAN –Start $startDate –End $endDate ) Find duplicate user values Get-ADUser -Filter { employeeID -like “*” } -SearchBase “OU=yourOU,DC=domain,DC=com” -property employeeID | Group-Object employeeID | Where-Object {$_.Count -ge 2} | select -ExpandProperty group | Select-Object Name, UserPrincipalName,… Continue reading Powershell
Category: development
Git: Basic commands and scenarios
If you use a repository on one of the version control platforms like github, gitlab or bitbucket then you need some basic commands. When I was first introduced to git many years ago, I had to start with git pull, add, commit and push. I use this bulk of commands till nowdays. These commands basically… Continue reading Git: Basic commands and scenarios