{"id":180,"date":"2025-04-01T02:17:40","date_gmt":"2025-04-01T02:17:40","guid":{"rendered":"https:\/\/aasiftoday.com\/?page_id=180"},"modified":"2025-07-06T05:53:02","modified_gmt":"2025-07-06T05:53:02","slug":"active-directory-account-automation","status":"publish","type":"page","link":"https:\/\/aasiftoday.com\/?page_id=180","title":{"rendered":"Active Directory-Account Automation"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"180\" class=\"elementor elementor-180\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f872e60 e-flex e-con-boxed e-con e-parent\" data-id=\"f872e60\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-808a8cc elementor-widget elementor-widget-image\" data-id=\"808a8cc\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.15.25-AM-1024x466.png\" class=\"attachment-large size-large wp-image-282\" alt=\"\" srcset=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.15.25-AM-1024x466.png 1024w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.15.25-AM-300x137.png 300w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.15.25-AM-768x350.png 768w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.15.25-AM-1536x699.png 1536w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.15.25-AM-2048x933.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-400b77e e-flex e-con-boxed e-con e-parent\" data-id=\"400b77e\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3682639 elementor-widget elementor-widget-html\" data-id=\"3682639\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Lab Description<\/title>\n  <style>\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: black;\n      font-family: \"Courier New\", Courier, monospace;\n      font-size: 22px;\n      font-weight: bold;\n      color: #ffffff;\n      line-height: 2;\n      width: 100%;\n    }\n\n    .content {\n      max-width: 100%;\n      padding: 60px;\n      box-sizing: border-box;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <div class=\"content\">\n    \n      This PowerShell script creates new Active Directory users from a CSV file.\n      It first loads the Active Directory module and reads user details from <code>C:\\Users\\Administrator\\Desktop\\AD\\Marketing.csv<\/code>.\n      For each user, it takes their username, first name, last name, display name, password, and organizational unit (OU).\n      The password is securely converted, and a new AD user is created with their details.\n      The account is enabled, and the user will need to change their password on their first login.\n      After each user is created, a message is displayed to confirm it.\n    <\/p>\n  <\/div>\n\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9627b45 e-flex e-con-boxed e-con e-parent\" data-id=\"9627b45\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9878238 elementor-widget elementor-widget-image\" data-id=\"9878238\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"479\" src=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.03.52-AM-1024x479.png\" class=\"attachment-large size-large wp-image-276\" alt=\"\" srcset=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.03.52-AM-1024x479.png 1024w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.03.52-AM-300x140.png 300w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.03.52-AM-768x359.png 768w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.03.52-AM-1536x718.png 1536w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.03.52-AM.png 1544w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f89f0c9 e-flex e-con-boxed e-con e-parent\" data-id=\"f89f0c9\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6205996 elementor-widget elementor-widget-html\" data-id=\"6205996\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Lab Description<\/title>\n  <style>\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: black;\n      font-family: \"Courier New\", Courier, monospace;\n      font-size: 22px;\n      font-weight: bold;\n      color: #ffffff;\n      line-height: 2;\n      width: 100%;\n    }\n\n    .content {\n      max-width: 100%;\n      padding: 60px;\n      box-sizing: border-box;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <div class=\"content\">\n    \n      To get this script to work, you need to create an Organizational Unit (OU), which, as you can see, I have already done.\n      My OU name is Marketing.\n    <\/p>\n  <\/div>\n\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2b26c96 e-flex e-con-boxed e-con e-parent\" data-id=\"2b26c96\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f9d0d76 elementor-widget elementor-widget-image\" data-id=\"f9d0d76\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"521\" src=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.06.08-AM-1024x521.png\" class=\"attachment-large size-large wp-image-277\" alt=\"\" srcset=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.06.08-AM-1024x521.png 1024w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.06.08-AM-300x153.png 300w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.06.08-AM-768x390.png 768w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.06.08-AM-1536x781.png 1536w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.06.08-AM.png 1538w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f74ed88 e-flex e-con-boxed e-con e-parent\" data-id=\"f74ed88\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-96c2781 elementor-widget elementor-widget-html\" data-id=\"96c2781\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>CSV Description<\/title>\n  <style>\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: black;\n      font-family: \"Courier New\", Courier, monospace;\n      font-size: 22px;\n      font-weight: bold;\n      color: #ffffff;\n      line-height: 2;\n      width: 100%;\n    }\n\n    .content {\n      max-width: 100%;\n      padding: 60px;\n      box-sizing: border-box;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <div class=\"content\">\n    \n      In this step, I created a CSV file that contains the username, password, and organizational unit for each user.\n      This file serves as the input for the PowerShell script, ensuring that all necessary user details are structured correctly.\n      By including these attributes in the CSV, we can efficiently automate the process of adding users to Active Directory while maintaining consistency and accuracy.\n    <\/p>\n  <\/div>\n\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3a6538b e-flex e-con-boxed e-con e-parent\" data-id=\"3a6538b\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c96395b elementor-widget elementor-widget-image\" data-id=\"c96395b\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"396\" src=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.16.32-AM-1024x396.png\" class=\"attachment-large size-large wp-image-286\" alt=\"\" srcset=\"https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.16.32-AM-1024x396.png 1024w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.16.32-AM-300x116.png 300w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.16.32-AM-768x297.png 768w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.16.32-AM-1536x594.png 1536w, https:\/\/aasiftoday.com\/wp-content\/uploads\/2025\/04\/Screen-Shot-2025-04-07-at-1.16.32-AM-2048x792.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-14fc155 e-flex e-con-boxed e-con e-parent\" data-id=\"14fc155\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e25bcf0 elementor-widget elementor-widget-html\" data-id=\"e25bcf0\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Script Execution<\/title>\n  <style>\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: black;\n      font-family: \"Courier New\", Courier, monospace;\n      font-size: 22px;\n      font-weight: bold;\n      color: #ffffff;\n      line-height: 2;\n      width: 100%;\n    }\n\n    .content {\n      max-width: 100%;\n      padding: 60px;\n      box-sizing: border-box;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <div class=\"content\">\n    \n      I successfully executed the PowerShell script to import user data from a CSV file into Active Directory.\n    <\/p>\n  <\/div>\n\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-e1b966b e-flex e-con-boxed e-con e-parent\" data-id=\"e1b966b\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c5fea1e elementor-widget elementor-widget-html\" data-id=\"c5fea1e\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Project Summary<\/title>\n  <style>\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: black;\n      font-family: \"Courier New\", Courier, monospace;\n      font-size: 22px;\n      font-weight: bold;\n      color: #ffffff;\n      line-height: 2;\n      width: 100%;\n    }\n\n    .content {\n      max-width: 100%;\n      padding: 60px;\n      box-sizing: border-box;\n    }\n\n    .heading {\n      font-size: 28px;\n      margin-bottom: 30px;\n      text-decoration: underline;\n      text-align: center;\n    }\n\n    footer {\n      text-align: center;\n      margin-top: 40px;\n      font-size: 18px;\n      color: #888888;\n    }\n  <\/style>\n<\/head>\n<body>\n\n  <div class=\"content\">\n    <div class=\"heading\">Summary<\/div>\n    \n      This project shows how I used PowerShell and a CSV file to automatically create user accounts in Active Directory.\n      Instead of adding users one by one, the script reads user details from a CSV file and adds them all at once.\n      I first created a special folder in Active Directory called an Organizational Unit (OU) named \"Marketing\".\n      Then, I made a CSV file with each user's name, password, and group information.\n      The PowerShell script uses that file to create each user, set a password, and require them to change it when they first log in.\n      If a user in the file is missing a password, the script skips them.\n      This makes it faster and easier to add many users at the same time.\n    <\/p>\n  <\/div>\n\n  <footer>\n    &copy; 2024 All rights reserved.\n  <\/footer>\n\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Lab Description This PowerShell script creates new Active Directory users from a CSV file. It first loads the Active Directory module and reads user details from C:UsersAdministratorDesktopADMarketing.csv. For each user, it takes their username, first name, last name, display name, password, and organizational unit (OU). The password is securely converted, and a new AD user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_theme","meta":{"footnotes":""},"class_list":["post-180","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/aasiftoday.com\/index.php?rest_route=\/wp\/v2\/pages\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aasiftoday.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aasiftoday.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aasiftoday.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aasiftoday.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":26,"href":"https:\/\/aasiftoday.com\/index.php?rest_route=\/wp\/v2\/pages\/180\/revisions"}],"predecessor-version":[{"id":736,"href":"https:\/\/aasiftoday.com\/index.php?rest_route=\/wp\/v2\/pages\/180\/revisions\/736"}],"wp:attachment":[{"href":"https:\/\/aasiftoday.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}