< Back

Add-AzureADTestUser

Tue Jan 14, 2020 12:34 am

NAME Add-AzureADTestUser



SYNOPSIS

Add test users to Azure Active Directory.





SYNTAX

Add-AzureADTestUser [-Domain] <Object> [-Names] <Object> [[-Password] <Object>] [<CommonParameters>]





DESCRIPTION

This cmdlet uses the AzureADPreview module to add test users to Azure Active Directory. All that you need to

provide is the user's name and domain, plain text password is optional.





PARAMETERS

-Domain <Object>

Domain name for the user. This needs to be a verified domain on Azure Active Directory. . Required



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Names <Object>

Full name(s) of the test users to add to Azure Active Directory. Required



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Password <Object>

This password will be used to create usre(S). Note that this will not be a temporary password and will not

need to be reset.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author : Hannel Hazeley - hhazeley@outlook.com



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-AzureADTestUser -domain azure.hazelnest.com -names "John Jones","Alex A. Smith"



This will add 2 user to Azure Active Directory and generated random password for each user that does not need to

be reset.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Add-AzureADTestUser -domain azure.hazelnest.com -names "Clark Kent","John B. Smith" -Password

Str0ngP@55word13!



This will add 2 user to Azure Active Directory and use provided password for both users, password does not need to

be reset.











RELATED LINKS

https://github.com/hhazeley/HannelsTool ... stUser.ps1