I'm trying to deal with powershell for the first time.
I want to create a "skript" which insert user in multiple groups, except only user with a phone number...
I really don't now how to start or how the skript should look like, i have alredy looked the video2brain tutorials but no video shows clearly how i can insert user to groups whit a criterium. I didn't find anything about google either.
Secondly, you can use tool that are already built for this sort of thing, like the downloads from powershellgallery.com or the MS scriptingguys blog.
You can let Windows Server write the code for you. Using the 'ADAC – Active Directory Administrative Center'. See these articles.
Active Directory Administrative Center: Getting Started
Active Directory Administrative Center
Step-By-Step: Utilizing PowerShell History Viewer in Windows Server 2012 R2