How to Map Network Drives without GPOs: Logon Script - Active Directory (AD) | Windows Server 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2022
  • You can map multiple network drives using Active Directory (AD) Users Profiles tab by assigning a script. This demonstration is done using Windows Server 2022 (same steps apply for Windows Server 2019). This method use the "net use" commands to assign drive letters to specific shared folder locations in the Domain Controller. This is a very light weight script and can run in the background within seconds of a user logging in and any delays are often caused by network latencies.
    Windows Server default scripts location: {YOUR_SERVER_LOCATION}
    etlogon
    The end user will not have the permission to edit any scripts saved in netlogon network folder by default. The script can be saved as a .ps1, .cmd, .bat file, etc. You can only map one network location (network drive) to one drive letter per user per logon session. More information will be published on sanuja.com in the future.
    Microsoft documentations on net use commands:
    learn.microsoft.com/en-us/pre...
    learn.microsoft.com/en-us/tro...
    -Share Folders based on Group Permissions: • How to share folders b...
    -Create Home Folders for multiple users: • How to create Home Fol...
    -Create Active Directory OUs and Users: • Create Active Director...
    -Install AD DS on Windows Server 2022 Core: • Install Active Directo...
    -Initial configs: • Windows Server 2022 Co...
    -Windows Server Admin playlist:
    • Windows Server Adminis...
    -Microsoft Windows playlist:
    • Microsoft Windows
    Track: WhileART Sessions Episode 02 | Waramathi (වරමාතී) Fusion
    Watch: • WhileART Sessions Epis...
    sanuja.com
    Co-producer:
    Manuja Senanayake
    #windowsserver2022 #activedirectory #adds #sharefolders #networking
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 25

  • @lstanford23
    @lstanford23 10 หลายเดือนก่อน

    Hey man, GREAT VIDEO! Clear, concise, and it got me through my problem. Thanks!!!

    • @NetITGeeks
      @NetITGeeks  10 หลายเดือนก่อน

      You're welcome!

  • @samanbalal824
    @samanbalal824 ปีที่แล้ว +1

    This is useful for school labs. Thank you. :)

  • @hmry7615
    @hmry7615 ปีที่แล้ว

    Great video, ty!

    • @NetITGeeks
      @NetITGeeks  ปีที่แล้ว

      Glad it was helpful!

  • @xlite0060
    @xlite0060 2 หลายเดือนก่อน

    Спасибо! Очень полезное видео!

  • @dnyaneshwarkamble1149
    @dnyaneshwarkamble1149 9 หลายเดือนก่อน

    Thanks for guidance

    • @NetITGeeks
      @NetITGeeks  9 หลายเดือนก่อน

      You're welcome 😊

  • @FreeeWIFI
    @FreeeWIFI ปีที่แล้ว +1

    Tight video

  • @DavidBanner-gp2wp
    @DavidBanner-gp2wp 9 หลายเดือนก่อน +1

    I am a bit confuse, what if you have 200 users and they are in different departments and you want to to have there own H: Drive

    • @NetITGeeks
      @NetITGeeks  9 หลายเดือนก่อน

      In that situation, you can either create one H drive at a time for 200+ users, which is not ideal or you can write a Windows PowerShell script to create home directories and grant permissions. I am in the process of creating PS tutorials but right now. I will be going over useful scripts sometimes later. If you are a looking to learn PS, try: th-cam.com/play/PLLJXhnhyaJU_R6xVkDtvfk-fgZGOGG8l0.html&si=pyDzwTMuqI_4YZcc

    • @DavidBanner-gp2wp
      @DavidBanner-gp2wp 9 หลายเดือนก่อน +1

      @@NetITGeeks Amazing because at my place of work we all have our own H: drives but I want to know how this is done. Wouldn't they have access to each H drive??

    • @NetITGeeks
      @NetITGeeks  9 หลายเดือนก่อน

      Your Sys Admin or IT Analysts most likely have used a PowerShell script to create those folders and grant correct permissions to each user when the company first started. Then when new users comes it, if it is in large batches, a PowerShell script is most likely used at that point as well. But even in very large organizations, such as the org I work for, we just manually create home directories if it is just for handful of new users. I will create a video tutorial on one of those PS scripts sometimes in the future. If you Subscribe, you will get a notification :)

  • @santoshjaiswal6913
    @santoshjaiswal6913 3 หลายเดือนก่อน

    where i find out netlogon script in end user. if I need to manual run

    • @NetITGeeks
      @NetITGeeks  3 หลายเดือนก่อน

      If you want to allow your user the option to manually run it, you will have to place your script or scripts in either their home drive or a shared drive in which both the user and admin have access to. Most orgs would place it under individual home drives or H drives because it can be customized for each individual.

  • @TheTF01
    @TheTF01 ปีที่แล้ว

    Can you use gpo to map to a server that is not domain joined? The ability to map like that and use a particular username and password does not seem to be allowed any longer.

    • @NetITGeeks
      @NetITGeeks  ปีที่แล้ว

      I believe this can be done using a PowerShell script. But I have not gone over intermediate and advanced PS scripting on YT channel as of now. You may try Googling it or I will look into this at a later time and post a video.

    • @TheTF01
      @TheTF01 ปีที่แล้ว +1

      @@NetITGeeks thanks! After I posted that here I found another of your videos combine with a different video I think i got the answer. I think I understand how to script it and have a gpo apply that script based on a security group.

  • @Joshua-jf3df
    @Joshua-jf3df 9 หลายเดือนก่อน

    How come when i try and add the cmd file to netlogon i get access denied?

    • @NetITGeeks
      @NetITGeeks  9 หลายเดือนก่อน

      Are you logged into the server with the default Administrator account? If you are using any other secondary admin accounts, make sure your permissions are same as the default one or use the default domain admin account. Also check other GPOs and see if there is a one that you added that may be conflicting with this GPO.

  • @DavidBanner-gp2wp
    @DavidBanner-gp2wp 9 หลายเดือนก่อน

    Ok i rewatched the video will all the user be affected by this script?

    • @NetITGeeks
      @NetITGeeks  9 หลายเดือนก่อน

      If your question is if this script going to map this network drive for everyone in that OU or Security Group, the answer is no. You have to edit the "Logon script:" path on each user. Each users also must have permission to Read or higher level of access granted in the permissions as well. I have covered the folder permission in a different video. If you are interested, please check my channel.

  • @sergiol.3755
    @sergiol.3755 8 หลายเดือนก่อน

    can you add more than one script

    • @NetITGeeks
      @NetITGeeks  8 หลายเดือนก่อน

      There is a workaround I use when I need to pull multiple scripts at logon, which is to call-in other script files within the main script. The main logon script can reference scripts elsewhere and with PowerShell, you can do this very easily.