Keep password when adding users from csv

%3CLINGO-SUB%20id%3D%22lingo-sub-1263999%22%20slang%3D%22en-US%22%3EKeep%20password%20when%20adding%20users%20from%20csv%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1263999%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20create%20users%20I%20don't%20asign%20a%20password%20to%20the%20specific%20user%2C%20office365%20generates%20one%20randomly.%3C%2FP%3E%3CP%3ENow%20when%20I%20try%20to%20log%20in%20with%20the%20random%20generated%20password%2C%20I%20have%20to%20change%20the%20password%20to%20a%20different%20password.%20Is%20there%20any%20option%20I%20can%20keep%20the%20random%20generated%20password%20without%20having%20to%20change%20it%3F%20I%20know%20there%20is%20an%20option%20when%20you%20manually%20create%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EZenna%20Willemsen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1263999%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMigration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1265567%22%20slang%3D%22en-US%22%3ERe%3A%20Keep%20password%20when%20adding%20users%20from%20csv%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1265567%22%20slang%3D%22en-US%22%3E%3CP%3ESimply%20use%20the%20-%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EForceChangePassword%3C%2FFONT%3E%20switch%20when%20running%20the%20New-MsolUser%20cmdlet%20(%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E-ForceChangePassword%3C%2FFONT%3E%3A%24false).%20If%20you%20are%20using%20the%20UI%20instead%2C%20I%20don't%20think%20there's%20a%20way.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi all,

 

When I create users I don't asign a password to the specific user, office365 generates one randomly.

Now when I try to log in with the random generated password, I have to change the password to a different password. Is there any option I can keep the random generated password without having to change it? I know there is an option when you manually create users.

 

Thanks in advance,

 

Zenna Willemsen

1 Reply
Highlighted

Simply use the -ForceChangePassword switch when running the New-MsolUser cmdlet (-ForceChangePassword:$false). If you are using the UI instead, I don't think there's a way.