Jump to content

Recommended Posts

Posted

Is there an easy way of setting up Office 365 accounts with preconfigured passwords? When I set up our first cohort a few years ago, I'm almost certain I did a bulk import from a .csv file and included a field for passwords. I don't think it is possible to do it that way any longer. I need to learn PowerShell (and a million and one other things!) as, ideally, I'd like to be able to bulk import users into distribution groups too. For now, though, preconfigured passwords that don't expire would be enough.

 

Any help would be greatly appreciated.

Posted
Yes, you can just write a PowerShell script to read in from a file of passwords to set each user. You can also disable expiry, and I *think* (may not be true) you can override the "reset on next login" option.
  • Thanks 1
Posted (edited)

I used

 

"Set-MsolUserPassword –UserPrincipalName $_.UserPrincipalName –NewPassword $_.newpassword -ForceChangePassword $True"

 

this is in a for loop.

Edited by nicholab
  • Thanks 1
Posted
Yes, you can just write a PowerShell script to read in from a file of passwords to set each user. You can also disable expiry, and I *think* (may not be true) you can override the "reset on next login" option.

 

I could... if I knew how to write PowerShell scripts. ;)

 

There are a lot of basic management tasks in O365 that require knowledge of PowerShell, otherwise they take a LONG time. But, hey, it's free so I can't complain really. Thanks, anyway.

Posted

 

Wow! That's a really useful site. I'll definitely bookmark that one. I really appreciate the PM help from @nicholab and @sonofsanta, too.

 

I ended up just setting up the urgent ones with a basic bulk import from a .csv file, but I know I need to learn PowerShell for future use. The trouble is, there are already more holes in my ICT knowledge than a Swiss cheese, and I could do with filling some of those in before I start making more cheese! This is why Edugeek is such a lifeline for me. You guyz (and galz) is da best! :D

 

Edit: I found the automatic truncation to ...assword highly amusing!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...