GithubHelp home page GithubHelp logo

mohammad-alrousan / manage-azure-ad-daily-tasks Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 5.0 53 KB

Azure Active Directory automation PowerShell scripts, contains all functions that admin may need to manage Azure AD

PowerShell 100.00%
powershell powershell-script azure-ad administrator azure

manage-azure-ad-daily-tasks's Introduction

The Script is still under development- Feel free to contact me if you need any help

Azure-AD-Daily Admin Tasks

Azure Active Directory automation PowerShell scripts.

This repository contains automation PowerShell scripts for common Azure AD management scenarios such as:

  1. Connect to Azure AD
  2. Create New Users
  3. Delete Existing Users
  4. Add User to Group
  5. Remove user from Group
  6. Get Current License Status
  7. Assign License
  8. Remove License
  9. Add Azure Application
  10. Remove Azure Application
  11. Enable MFA/ Force MFA For Users
  12. Disable MFA For Users
  13. Recover Deleted Object We Will Explain each Option:

Connect to Azure AD

The script will connect to Azure AD and here you have two option • Uncomment the 4 lines code and store you credentials if you don’t like to keep entering them every time • do not change the function and you will be able to connect with new credential every time

Create New Users

The Script Will create one or multiple users in Azure AD as per data filled in CSV file The CSV has the below columns: • Firstname, MiddleInitials, Lastname, Department, JobTitle, Country, Mobile, Password, UserPrincipalName, MailNickName

UserPrincipalName, are MailNickName optional fields You need just to fill the CSV file and confirm on shell before you start the operation

Delete Existing Users

You can delete single or multiple users thru the CSV file, you just have to fill either UserPrincipalName or MailNickName

Add User to Group

You can add single or multiple users into the specific group thru the CSV file, you just have to fill either UserPrincipalName or MailNickName, the script will list all group you have and then you can select the desire group

Remove User from Group

You can remove single or multiple users from the specific group thru the CSV file, you just have to fill either UserPrincipalName or MailNickName, the script will list all group you have and then you can select the desire group

Get Current License Status

The script will list the available and the consumed licenses

Assign License

You can assign license for single or multiple users thru the CSV file, you just have to fill either UserPrincipalName or MailNickName, the script will list all licenses you have and then you can select the desire license you want to assign

Unassign License

You can unassign license for single or multiple users thru the CSV file, you just have to fill either UserPrincipalName or MailNickName, the script will remove all licenses you assigned for them

Add Azure Application

Create an Azure AD application that can access resources

Remove Azure Application

The Script will list all Azure AD application and then you can select which one you want to remove

Enable MFA/ Force MFA For Users

You can Enable and enforce MFA for single or multiple users thru the CSV file, you just have to fill either UserPrincipalName or MailNickName, the script will enable or enforce based on that

Disable MFA For Users

You can Disable MFA for single or multiple users thru the CSV file, you just have to fill either UserPrincipalName or MailNickName

Recover Deleted Object

The script will list all deleted object from Azure AD and then you can select which object you which to recover

manage-azure-ad-daily-tasks's People

Contributors

mohammad-alrousan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.