Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

how can check groups are exist in active directory with powershell

$
0
0

Hi Friends

I have group list in notepad file or CSV file .. I need to check if all listed group in file are exist in AD or not..

Please help me or guide me

I tried something like below but could not get success:

import-csv .groups.csv | get-adgroups

get-content groups.txt | get-adgroups.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>