1. Remote into AZ-ITMANAGEMENT with your Admin Credentials
2. Open “newuserstocreate.csv”. It is located in E:\Scripts
3.Fill out all relevant information for the new hire(s) based on the new hire ticket. (Company and Office must be filled out with exact names based on CreateUserNEW.ps1 script)
a. Required Fields are as follows: First, Last, Title, Company, Department, Supervisor, and Password *NOTE: Business Unit in New Hire ticket = Department, Department in New Hire ticket = Group, Supervisor = username of supervisor
b. Additional Fields need to be filled out to match the column name: Laptop, iPhone, iPad, MiFi, Project, Visio, Bluebeam, HeavyJob, Procore, P6, Adobe, Odrive, AutoDesk, and OST
4. Once you have filled out your new hire information, click the save button in the upper left
5. Click the windows icon in the lower left and type Powershell
6. Right click Windows Powershell ISE and click Run as Administrator
7. Click Yes
8. Wait for the red square to go dim inside of PowerShell. In the prompt type ‘changed’ and press ‘tab’
9. You should now see the ChangeDir.ps1 script in the field you just typed
10. Press Enter and you will be on the ‘E:\Scripts’ file path
11. Type ‘creds’ and press ‘tab’
12. The command will change to the ‘Creds.ps1’ script
13. Press ‘Enter’
14. Login with your Admin Credentials
15. You will be asked two more times to confirm your administrator account. You won’t have to enter your password this time.
After you are passed all three barriers, PowerShell will be connected to Exchange Online.
16. Open E:\Scripts\NewUserLicenses.ps1 so it shows its code in the script area.
17. Type ‘create’ and press ‘tab’ in the command area (blue area).
18. You will see that the CreateUserNew.ps1 script replaces what originally typed.
19. Click Enter and the Script will start creating the user(s) in ‘newusertocreate.csv’ (For each user, it will take about 4 minutes to create.)
(Running script will look like this)
20. For each user, the email address will be saved to a temporary .csv (E:\Scripts\tempusers.csv)
21. Once all users have been created, a sync to Azure starts. There is a 1000 seconds (just under 17 minutes) wait time that is kicked off after the ADSync has been started (to give enough time for the new user accounts to sync to Azure).
22. Adding licenses step will now automatically start. You will be prompted for admin credentials again.
23. If the licenses script finishes properly you will get an option to Open Output File.
If you don't see this prompt you'll need to skip to 24b. If it completes, click Yes at this prompt to open the file.
24. This will open the log for these users. If you don't see "License assigned successfully" for each user (2 each), then you'll need to rerun this script manually.
a. If it is successful, then you can go to next step
b. If it isn't successful, then run with the NewUserLicense script open, click the Run Script button again (Repeating this step)
25. Once it is successful, highlight everything right of the # on the last line of the NewUserLicenses.ps1 and click the Run Selection button
(This will clear out the tempusers.csv file)
26. You can now verify in the Admin portal to see if the new users have their licenses applied (Office 365 E3 and Enterprise Mobility + Security E3)