Basic Active Directory PowerShell commands that will make you feel like a rockstar
These are a coupe of PowerShell commands and one-liners that I use regularly at my job. Part 1 - I had to take a break because I am on call and had to deal with a work thing ... https://www.youtube.com/watch?v=wairJQQL2UY
As the title says, this is a basic tutorial on how to use the "in" and "notin" operators in PowerShell.
...
https://www.youtube.com/watch?v=t7Jg3NuwHhA
Happysubnet.com - Part 1 - Ever need a few or many test users? This will show you how to create random users for your AD. I wanted to show this off. In the next episode, I will go over how to make this script and I will improve it too.
...
https://www.youtube.com/watch?v=AgKalImHX2g
PowerShell 5.1 offers a ton of new cmdlets. What if you are stuck on an older Windows 7 or Windows 2008 system and the new cmdlets don't exist or the thing you are looking for doesn't have a cmdlet. You can probably find what you need by using Get-WmiObject.
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/d61d53fa-2c40-4f12-8626-693728f09f67/how-do-i-list-all-classes-in-powershell?forum=ITCG
https://msdn.microsoft.com/en-us/library/aa394084(VS.85).aspx
Get-WMIObject -List| Where{$_.name -match "^Win32_"} | Sort Name | Format-Table Name
Get-WmiObject -Class Win32_Bios
Get-WmiObject -Class Win32_Volume | select DriveLetter,label,FreeSpace
Get-WmiObject -Class Win32_LogicalDisk | select DeviceID,name,FreeSpace
Get-WmiObject -Class Win32_Fan | select caption,status
...
https://www.youtube.com/watch?v=LMjfE95hV_s
Support the channel:
http://join.robinhood.com/johni45
This video shows you how to install vim for PowerShell. This should work on Windows 8.1 and newer. I have not tried it on Windows 7 but it will probably work. Thanks for watching.
...
https://www.youtube.com/watch?v=MB5xuLIBUOg
You used to be able to click on the lock in the browser and see the certificate information but now that feature is gone. I found a Reddit post today on how to fix that.
Put this in your Chrome web browser:
chrome://flags/#show-cert-link
Reddit link:
https://www.reddit.com/r/sysadmin/comments/6sesqu/did_you_miss_the_view_certificate_button_in_chrome/
...
https://www.youtube.com/watch?v=XD2ax_UQezw
Happysubnet.com - Part 4 - Ever need a few or many test users? This will show you how to create random users for your AD. Now we can make this script even better. I played a little more with data validation. I changed how the password was created and also added a piece to see how long it takes for the script to run.
...
https://www.youtube.com/watch?v=x-2X6SqpKFc