Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8246433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:30:17+00:00 2026-06-07T22:30:17+00:00

I am following this guide I was able to export the Distribution Groups to

  • 0

I am following this guide

I was able to export the Distribution Groups to a CSV, and edit the CSV, but when using

Import-csv c:\displayname.csv | foreach-object {set-adgroup -identity $_.SamAccountName -displayname $_.displayname}

To import the modifications, I get:

Set-ADGroup : Cannot validate argument on parameter ‘Identity’. The
argument is null. Supply a non-null argument and try the command again.

I have tried variations on the theme and no change. Also, I needed to use -Credential domain\username when exporting, I have tried adding that and variations of that when trying to import the changes back…no difference.

1) Wouldn’t I need to authenticate?

2) What am I missing as far as importing the CSV? I feel it is simple, like some extra info: OU, DC, Credential etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:30:18+00:00Added an answer on June 7, 2026 at 10:30 pm

    Your error just indicate that $_.SamAccountName is not valued do you try first to see these values ?

    Modifying the CSV file you perhaps corrupt it, your command line works for me.


    Perhaps your problem is in the encoding or in the form of your CSV file you can try first to create one with PowerShell :

    Get-ADGroup  -Properties samaccountname,displayname -LDAPFilter "(cn=*sec)" | Export-Csv gp.csv
    

    And then to compare with your own. Here I just extract a few fields from groups containing sec in their names.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using lazy_highcharts gem and trying to configure live charts. Following this guide
Following this guide: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide I was not able to configure a Hello World WSGI
I am following this guide developer instrument guide and RayWenderlich's tutorial to view and
I'm following this guide: http://www.math.umd.edu/~dcarrera/ruby/0.3/chp_01/programs.html and I'm trying to create my first ruby program.
I'm having trouble following this guide to extract my interfaces and entities from my
I'm following this guide to get key binding to work in my application. So
I'm trying to use Youtube apis in my web application by following this guide
I'm working with libpcap in C on linux (centos) and I'm following this guide
I recently git-ified a web project. Following this guide , I set up a
My system is Ubuntu 11.10. I've been following this guide somewhat: http://www.ozbotz.org/opencv-installation/ I also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.