PowerShell for IT Professionals [#9] – Setting up Active Directory

Exercises On domain controller, find module that allows to manage Active Directory List all the Active Directory users List members of “Enterprise Administrators” Find the feature name for Windows Server Backup and install it with PowerShell Commands ### Server # Check IP configuration # Show steps in Server how to install # Check hostname Hostname # Rename server Rename-Computer ps-svr1 # Restart computer Reboot-computer # Get-WindowsFeature # Install-WindowsFeature Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools Install-ADDSForest -DomainName posh....

19 August 2020 · 1 min · 85 words · Kamil

PowerShell for IT Professionals [#6] – Filtering output

Exercises List all services that are stopped List all service that are stopped and they name begins with W Display only the Display Name of services that stopped and their name begins with W Lesson notes ### Filtering # Some commands accept wild cards in the search or have a filter parameter Get-Service -Name w*,b* #But there's more universal method, based on property names Get-Service | Where-Object -Filter {$_.Status -eq 'running' } #So let's break it down #Where-Object allows to filter out the incoming object based on the comparation operator #Most popular operators are: -eq - Equals -ne - Not equals -gt - Greather than -lt - Less then -le - Less than or equal -ge - Greater than or equal -Like -Notlike #There are more many, you can check these help topics: Help about_Operators Help about_Comparison_Operators #$_ is current object; it's what we're piping in our case Get-Service # ....

7 August 2020 · 2 min · 291 words · Kamil

The right people

Each of us has some ideal places, songs, people and the way how the morning coffee should be prepared. Sometimes the way how negative situations happen describe the way our day, week, life look like. The way we are. Funnily enough, very often those things or people are just happening around us, the way we often don’t even notice it. We often can only notice the result of all those things....

4 October 2015 · 4 min · 778 words · Kamil