Posts

Showing posts from June, 2021

Bulk AD User creation Powershell Script

Image
 As a follow up, I want to post of one of my most recent scripts.  This script is used to do bulk AD user creation.   My company has been growing rapidly and it takes up a lot of my time when creating and setting up new employee accounts and mailboxes.  I recently spent some time writing a script to automate this process.  This script takes a CSV file that has been filled out by HR with the new employee's name and other information.  It imports that information into Active Directory and creates a user profile.   Our hiring managers often include in the service ticket the name of an employee who would have the same rights/permissions/and memberships as the new employee.  So to simplify things, I put in my CSV file a column that is the "User to Copy".  This tells the script to copy that user's profile/OU/memberof details and apply them to the new user.   Once created, the script then starts a remote session into our On-prem Exchange Server, sets up a mailbox and links i

One of my first PowerShell scripts.

 In my current role I have been afforded the opportunity to learn and expand my knowledge of Powershell.  I've been reading books and watching videos to get the basics down.  The most helpful thing that I have found is to actually have a project to work on and to spend lots of time googling.   My first Powershell script came about due to a ticket that had sat in the que for quite some time.  The ticket requested to have location and organizational (tile/department) information displayed in Exchange.  I first had to contact HR to get a list of all employees with their department, and job title.  Lucky for me, they pulled this information from our HR database in the form of a CSV which saved me time editing and inputting the information into an excel spreadsheet and converting it to a CSV. With this information in hand I could get to work.  I needed a script that imported the CSV, and updated the provided information.  This is what I came up with: 1 2 3 4 5 6 7 8 9 10 11 12

It's been a while

 It's been a while since I've posted on this page, but I wanted post and update.  I an currently working as a Service Desk Analyst for a Transportation company.  Its a small group of guys but they have a TON of experience.  I started at the end of November 2020 and have learned a lot in the past 6 months.   For starters, I have gained experience with Active Directory.  I learned how to add, disable, edit users.  I've also learned how OU's affect everything from Network Folder access to permissions.  Part of my responsibilities include new user creation and account deactivation.  I have written a script in Powershell that creates a new user from information provided in a CSV file, it will copy the permissions of a user in a similar role.  Additionally it will create and link an exchange mailbox for the new user. On the less technical side of things, I am responsible for hardware maintenance and replacement/upgrades.  We have been transitioning away from HDD to SSD in our