Ressourcen für IT-Professionals > Forenhomepage > Windows PowerShell > How to add users to a universal group and set the manager
Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetHow to add users to a universal group and set the manager

  • Montag, 29. Juni 2009 15:18uerueluem TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    hi there
    i'm looking for someone, who could give me some tipps, how to create a script, to add users to the existing group and add a manager to the existing group. thanks for some input, cause i'm a littlebit lost.

    uerueluem

    additionaly question:
    is it possible, that i'm doing a read-host to enter the username like "mueller, mike" and it would that and convert it to mumi@contoso.com (unc-name)?

Antworten

  • Mittwoch, 1. Juli 2009 12:01Mervyn ZhangMSFT, ModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet
    Hi,

    Please read the following article get the detailed instructions to manage AD using PowerShell. It provides information to modify properties. 

    Benp’s Basic Guide to Managing Active Directory Objects with PowerShell
    http://blogs.technet.com/benp/archive/2007/03/05/benp-s-basic-guide-to-managing-active-directory-objects-with-powershell.aspx

    Regarding compose email address, you can customize the following code(input the user name without comma, like mueller mike ):
     
    $Name = Read-Host "Please enter your name"
    $part=$name.split()
    $email=$part[0]+"@"+ $part[1]+".com"

    Thanks.

    This posting is provided "AS IS" with no warranties, and confers no rights.

Alle Antworten

  • Mittwoch, 1. Juli 2009 12:01Mervyn ZhangMSFT, ModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet
    Hi,

    Please read the following article get the detailed instructions to manage AD using PowerShell. It provides information to modify properties. 

    Benp’s Basic Guide to Managing Active Directory Objects with PowerShell
    http://blogs.technet.com/benp/archive/2007/03/05/benp-s-basic-guide-to-managing-active-directory-objects-with-powershell.aspx

    Regarding compose email address, you can customize the following code(input the user name without comma, like mueller mike ):
     
    $Name = Read-Host "Please enter your name"
    $part=$name.split()
    $email=$part[0]+"@"+ $part[1]+".com"

    Thanks.

    This posting is provided "AS IS" with no warranties, and confers no rights.