microsoft lab
microsoft lab
  • 1 629
  • 7 993 807
Use PowerShell - Add users to groups and automatically remove them after a specific time period
Use PowerShell - Add users to groups and automatically remove them after a specific time period
1. Prepare
- DC1 : Domain Controller(Yi.vn)
2. Step by step : Active EnableScopes parameter and add users to groups and automatically remove them after a specific time period
- Server Manager - Tools - Active Directory Users and Computers - Check group GIT
- Server Manager - Tools - Active Directory Module for Windows PowerShell :
+ (Get-ADForest).ForestMode # Make sure your AD forest is running at Windows Server 2016 forest function level (or higher)
+ Get-ADOptionalFeature -filter "name -eq 'privileged access management feature'"
# Check if the Privileged Access Management feature is enabled in the current forest using the command
+ Enable-ADOptionalFeature 'Privileged Access Management Feature' -Scope ForestOrConfigurationSet -Target Yi.vn # Active EnableScopes parameter
+ Get-ADOptionalFeature -filter "name -eq 'privileged access management feature'" # Check again
+ $ttl = New-TimeSpan -Minutes 1 # Test 1 minute (you can set -Hours, -Days )
+ Add-ADGroupMember -Identity GIT -Members HiepHR -MemberTimeToLive $ttl # Add HiepHR to GIT for 1 minute
+ Get-ADGroup GIT -Property member -ShowMemberTimeToLive # Check how much time a user will be a group member
- Active Directory Users and Computers - Check group GIT - HiepHR is member of GIT
- Wait for 1 minute - Active Directory Users and Computers - Check group GIT - HiepHR removed of GIT - Ok
----------------------------------------------------******************** UA-cam.com/c/MicrosoftLab ********************-----------------------------------------------
Переглядів: 146

Відео

Install Evaluate Windows Server 2025
Переглядів 1532 місяці тому
Install Evaluate Windows Server 2025
Why i dont talk
Переглядів 529Рік тому
#Change
Setting Up VPN Authentication via RADIUS combine NPS in Windows Server 2022
Переглядів 1,1 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Setting Up VPN Authentication via RADIUS combine NPS in Windows Server 2022 1. Prepare - DC21 : Domain ControllerYi.vn, IP 10.0.0.21 | DC22 : RADIUS Server | DC24 : File Server, IP 10.0.0.24 # Gateway 10.0.0.23 - DC23 : VPN server, IP 10.0.0.23, 10.0.2.23 | WIN111 : Client, IP 10.0.2.111, Gateway 10.0.2.23 2. Step by step : Setting Up VPN Authentication Via RA...
Setting Up VPN Authentication via RADIUS in Windows Server 2022
Переглядів 1,2 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Setting Up VPN Authentication via RADIUS in Windows Server 2022 1. Prepare - DC21 : Domain ControllerYi.vn, IP 10.0.0.21 | DC22 : RADIUS Server, IP 10.0.0.22 | DC24 : File Server, IP 10.0.0.24 # Gateway 10.0.0.23 - DC23 : VPN Server, IP 10.0.0.23, 10.0.2.23 | WIN111 : Client, IP 10.0.2.111, Gateway 10.0.2.23 2. Step by step : Setting Up VPN Authentication Via ...
Set up an SSTP VPN in Windows Server 2022
Переглядів 1,9 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Set up an SSTP VPN in Windows Server 2022 1. Prepare - DC21 : Domain ControllerYi.vn, IP 10.0.0.21 | DC22 : Certificate Server, IP 10.0.0.22, Gateway 10.0.0.23 | DC24 : File Server, IP 10.0.0.24 # Gateway 10.0.0.23 - DC23 : VPN Server, IP 10.0.0.23, 10.0.2.23 | WIN111 : Client, IP 10.0.2.111, Gateway 10.0.2.23 2. Step by step : Set up an SSTP VPN, WIN111 acces...
Configure NPS for VPN in Windows Server 2022
Переглядів 886Рік тому
Donate Us : paypal.me/MicrosoftLab Configure NPS for VPN in Windows Server 2022 1. Prepare - DC21 : Domain Controller Yi.vn, IP 10.0.0.21 | DC22 : File Server, IP 10.0.0.22 # Gateway 10.0.0.23 - DC23 : VPN Server, IP 10.0.0.23, 10.0.2.23 | WIN111 : Client, IP 10.0.2.111, Gateway 10.0.2.23 2. Step by step : Configure NPS for VPN, WIN111 access to File Server using IT department account GIT - DC2...
Set up the VPN Server in Windows Server 2022 (Site to Site)
Переглядів 2 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Set up the VPN Server in Windows Server 2022 Site to Site 1. Prepare - DC21 : Domain Controller Yi.vn, IP 10.0.0.21 | DC23 : File Server, IP 10.0.0.23 | WIN111 : Client, IP 10.0.0.111 Gateway 10.0.0.25 - DC22 : Domain Controller Yz.vn, IP 10.0.3.22 | DC24 : File Server, IP 10.0.3.24 | WIN112 : Client, IP 10.0.3.112 Gateway 10.0.3.26 - DC25 : VPN Server Yi.vn, ...
Install and configure the VPN Server in Windows Server 2022 (Site to Site - Workgroup)
Переглядів 4,1 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Install and configure the VPN Server in Windows Server 2022 Site to Site 1. Prepare - DC21 : File Server, IP 10.0.0.21 | WIN111 : Client, IP 10.0.0.111 | DC22 : VPN ServerSite1, IP 10.0.0.22, 10.0.2.22, Default Gateway to 10.0.2.23 | All Workgroup, turn off local firewall - DC24 : File Server, IP 10.0.3.24 | WIN112 : Client, IP 10.0.3.112 | DC23 : VPN ServerSi...
Install and configure a VPN Server in Windows Server 2022 (Client to Site - Workgroup)
Переглядів 468Рік тому
Donate Us : paypal.me/MicrosoftLab Install and configure a VPN Server in Windows Server 2022 Client to Site - Workgroup 1. Prepare - DC21 : File ServerWorkgroup, IP 10.0.0.21 | DC22 : VPN ServerWorkgroup, IP 10.0.0.22Inside, 10.0.2.22Outside | WIN111 : ClientWorkgroup, IP 10.0.2.111 2. Step by step - Turn off local Firewall at all - DC21 : Set the Default Gateway to 10.0.0.22, create and sharin...
Install and configure a VPN Server in Windows Server 2022 (Client to Site)
Переглядів 2 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Install and configure a VPN Server in Windows Server 2022 Client to Site 1. Prepare - DC21 : Domain ControllerYi.vn, IP 10.0.0.21 | DC22 : File Server, IP 10.0.0.22 # Default gateway 10.0.0.23 - DC23 : VPN Server, IP 10.0.0.23Inside, 10.0.2.23Outside | WIN111 : ClientOutside, IP 10.0.2.111, Default gateway 10.0.2.23 2. Step by step : Install and configure a VP...
Configure Active Directory Rights Management Service (AD RMS) in Windows Server 2022
Переглядів 3,5 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Configure Active Directory Rights Management Service AD RMS in Windows Server 2022 1. Prepare - DC1 : Domain Controller Yi.vn | DC2 : Exchange Server - DC23 : Domain Member install AD RMS server | DC24 : Domain Memberinstall Certificate Server - WIN101, WIN102 : Clients | Turn off Firewall local at all 2. Step by step : Configure Active Directory Rights Manage...
Adding a Windows Server 2022 Domain Controller to an Existing Domain with a Windows Server 2008 R2
Переглядів 3,3 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Adding a Windows Server 2022 Domain Controller to an Existing Domain with a Windows Server 2008 R2 Domain Controller 1. Prepare - DC21 : Domain Controller(Yi.vn) | DC25 : Workgroup running Windows Server 2022 2. Step by step : Join DC25 to Yi.vn and promote to Domain Controller role - DC25 : Join to Yi.vn and promote to Domain Controller role Join to Yi.vn Res...
Delete a Failed Active Directory Domain Controller running Windows Server 2022
Переглядів 380Рік тому
Donate Us : paypal.me/MicrosoftLab Delete a Failed Active Directory Domain Controller running Windows Server 2022 1. Prepare - DC21 : Domain Controller(Yi.vn - Available) | DC22 : Domain Controller(Yi.vn - Unavailable) 2. Step by step : Delete DC22 from Active Directory - DC21 : Delete DC22 from Active Directory Server Manager - Tools - Active Directory Module for Windows PowerShell, type : Get...
Configure a NAT server running Windows Server 2022
Переглядів 1,8 тис.Рік тому
Donate Us : paypal.me/MicrosoftLab Configure a NAT server running Windows Server 2022 1. Prepare - DC25 : OS Windows Server 2022, 2 Adapters Network VMnet2 : IP 10.0.0.25, connect to LAN VMnet6 : IP 192.168.1.253, Default Gateway : 192.168.1.1, DNS : 192.168.1.1, connect to a modem Internet or Router Internet - WIN101 : Client, VMnet2 : IP 10.0.0.101, Default Gateway : 10.0.0.25, DNS : 192.168....
Install Certificate Services and export a SSL certificate in Windows Server 2022 (for lab)
Переглядів 3,7 тис.Рік тому
Install Certificate Services and export a SSL certificate in Windows Server 2022 (for lab)
Transfer FSMO From a Failed Domain Controller (Running Windows Server 2022)
Переглядів 939Рік тому
Transfer FSMO From a Failed Domain Controller (Running Windows Server 2022)
Rename Active Directory Child Domain running Windows Server 2022
Переглядів 1,5 тис.Рік тому
Rename Active Directory Child Domain running Windows Server 2022
Configure Certificate for Web Server 2022
Переглядів 848Рік тому
Configure Certificate for Web Server 2022
Remove a Child Domain from Root Domain running Windows Server 2022 (Child Domain unavailable)
Переглядів 311Рік тому
Remove a Child Domain from Root Domain running Windows Server 2022 (Child Domain unavailable)
Configure Active Directory Sites and Services in Windows Server 2022
Переглядів 1,2 тис.Рік тому
Configure Active Directory Sites and Services in Windows Server 2022
Install Active Directory Federation Services in Windows Server 2022
Переглядів 2,8 тис.Рік тому
Install Active Directory Federation Services in Windows Server 2022
Active Directory Migration from Windows Server 2019 to Windows Server 2022
Переглядів 2,7 тис.Рік тому
Active Directory Migration from Windows Server 2019 to Windows Server 2022
Active Directory Migration from Windows Server 2016 to Windows Server 2022
Переглядів 5 тис.Рік тому
Active Directory Migration from Windows Server 2016 to Windows Server 2022
Direct OS upgrade 2019 Domain Controller to Windows Server 2022 (for lab environment - Child domain)
Переглядів 1,2 тис.Рік тому
Direct OS upgrade 2019 Domain Controller to Windows Server 2022 (for lab environment - Child domain)
Direct OS upgrade 2019 Domain Controller to Windows 2022 (for lab environment - single domain)
Переглядів 626Рік тому
Direct OS upgrade 2019 Domain Controller to Windows 2022 (for lab environment - single domain)
Direct OS upgrade 2016 Domain Controller to Windows Server 2022 (for lab environment - Child domain)
Переглядів 1,1 тис.Рік тому
Direct OS upgrade 2016 Domain Controller to Windows Server 2022 (for lab environment - Child domain)
Direct OS upgrade 2016 Domain Controller to Windows 2022 (for lab environment - single domain)
Переглядів 482Рік тому
Direct OS upgrade 2016 Domain Controller to Windows 2022 (for lab environment - single domain)
Install and Configure WDS in Windows Server 2022
Переглядів 2,8 тис.Рік тому
Install and Configure WDS in Windows Server 2022
Configuring Windows Server 2022 Hyper-V Replication
Переглядів 2,2 тис.Рік тому
Configuring Windows Server 2022 Hyper-V Replication

КОМЕНТАРІ

  • @yc6855
    @yc6855 День тому

    this is not a properly process... Then when i saw comment i understood why.. :)

  • @hehehehe-ox6xl
    @hehehehe-ox6xl 6 днів тому

    Hey bro i need your help will pay you for that

  • @A_YouToobe_User
    @A_YouToobe_User 16 днів тому

    Thanks

  • @HestnetIT
    @HestnetIT 16 днів тому

    Why does it have to display a warning message when you subscribe the server. I spent ages thinking there was a problem where there wasn't one. Unbelievable.

  • @b4cktr4k24
    @b4cktr4k24 17 днів тому

    This one works, picking the default "NAT" option in the first stage does not. Thanks for this!

  • @user-up1ds4yn8l
    @user-up1ds4yn8l 23 дні тому

    Wondering if one should upgrade the AD Schema from 2016 (87) to 2019/2022 (88) first? THX!

  • @Alexander-s3h
    @Alexander-s3h 25 днів тому

    Is a real?

  • @Alexander-s3h
    @Alexander-s3h 25 днів тому

    Can you idea Windows 2019 upgrade to windows 2012 Can you do that?

  • @talbayoussoufa8805
    @talbayoussoufa8805 29 днів тому

    Exactly what I searched for. Thanks a mill

  • @davidjosemoreno6435
    @davidjosemoreno6435 29 днів тому

    Just a note. With this same configuration you can change the protocol in the client to IKEv2 and it will work too.

  • @goncayldrm2723
    @goncayldrm2723 Місяць тому

    The window of utilman.exe can not opening. just one second is seemed. After that it is closed by itself.

  • @microsoftlab
    @microsoftlab Місяць тому

    Donate Us : paypal.me/MicrosoftLab

  • @todmacgover7115
    @todmacgover7115 2 місяці тому

    brooo thanks you are awesome!!

  • @NgirgisFayez
    @NgirgisFayez 2 місяці тому

    Thanks for your nice arrangement video for Install Hyper-V on Windows Server 2019

  • @perfectstrc
    @perfectstrc 2 місяці тому

    3 years later and it still only work if we put the home page settings under "Computer configuration" in the groupe policy. Do you know why its not working under "User configuration" ?? Firefox is the only browser that does that.

  • @cristianxho
    @cristianxho 2 місяці тому

    The step "+ click 'Ease of Access' " was not seen in the video!!!

  • @spatt833
    @spatt833 2 місяці тому

    Where did DC31 come from?????

  • @ajithsasi7635
    @ajithsasi7635 2 місяці тому

    Superb it works for me on may 2024

  • @riazkm9136
    @riazkm9136 2 місяці тому

    what will happen if the user account used to create the cluster is deleted after the user leaves the company? please advice. or should we create a common account like we do for the service accounts.

  • @AngelinaJoaquim-mh3jk
    @AngelinaJoaquim-mh3jk 2 місяці тому

    Obrigado muito bom vídeo

  • @BushgangNBA
    @BushgangNBA 2 місяці тому

    i get access denied error

  • @coodyman
    @coodyman 2 місяці тому

    is it work with host AAA?

  • @abubakarmahir1352
    @abubakarmahir1352 2 місяці тому

    thanks bro, it worked like a charme

  • @Bukr3j
    @Bukr3j 3 місяці тому

    When I run the "dir" command, the files don't show up?

  • @nitinarora39
    @nitinarora39 3 місяці тому

    is this affects user logon, like user profile damage

  • @tranlong6843
    @tranlong6843 3 місяці тому

    coi chục video r gặp video này mới làm dc , + 1 like

  • @Srifactstelugu
    @Srifactstelugu 3 місяці тому

    Thank you thank you so much man🤩

  • @gudetawoyo231
    @gudetawoyo231 3 місяці тому

    Ur video quality is very poor but it's a best performance

  • @maheshbhardwaj798
    @maheshbhardwaj798 3 місяці тому

    How much time it took to upgrade

  • @sanogoibrahim8498
    @sanogoibrahim8498 3 місяці тому

    do i need to reactivate the license again ? or it will keep the old license windows 2016

  • @ArjunShresthaVlog
    @ArjunShresthaVlog 3 місяці тому

    No sound bro

  • @user-uf2jw6ds3o
    @user-uf2jw6ds3o 3 місяці тому

    Tip: Next time include audio and say what you're doing. It helps focusing as a viewer, and allows you to tell some details of what you do, or reasons why you it this way.

  • @user-uf2jw6ds3o
    @user-uf2jw6ds3o 3 місяці тому

    Best "setup DFS" video on youtube! (Also best prepared environment with two DCs an three fileservers...)

  • @mouatachereil1215
    @mouatachereil1215 3 місяці тому

    salut! je suis bloquer au niveau de la publication de la topologie

  • @user-fl1iq9oi9z
    @user-fl1iq9oi9z 4 місяці тому

    How to Stop schedule restart

  • @user-fl1iq9oi9z
    @user-fl1iq9oi9z 4 місяці тому

    How to stop automatic restart in windows server

  • @user-qh8fi7th9e
    @user-qh8fi7th9e 4 місяці тому

    easy simple not long and right on the point

  • @itpscasjp4182
    @itpscasjp4182 4 місяці тому

    Hi, is it posible to send for multiple users? I was happy with this function when Server 2008 R2, now on 2019 im struggling. There are 30 users logged through rdp app, and Im sendind one by one, losing my time.

  • @JoshAlkar
    @JoshAlkar 4 місяці тому

    you are the best

  • @khordi
    @khordi 4 місяці тому

    Great video I used this today only after finding out 2019 is EOL this year lmao.

  • @AymanNady
    @AymanNady 4 місяці тому

    i can not connect to cluster "Active Directory Rights Management Services A connection with the AD RMS cluster •nc-rms01• could not be established because of the following reason: The underlying connection was closed: An unexpected error occurred on a send. Ensure that your connection is the correct protocol, such as HTTP or HTTPS, and that the port number is correct." even when i add the cluster name same error

  • @AlanHomobono2
    @AlanHomobono2 4 місяці тому

    What can I do if utilman.exe doesn't exist? Even after copy it from cmd.exe, after reboot it doesn't appear.

  • @jen0vanaka
    @jen0vanaka 4 місяці тому

    I follow step by step but it's not works for me

  • @mt-nu6lj
    @mt-nu6lj 4 місяці тому

    Very usefull for production server. Thanks !

  • @thamaraipoo-rj3eo
    @thamaraipoo-rj3eo 4 місяці тому

    User Running enterprise tests on : Jbc.local Starting test: LocatorCheck Warning: DcGetDcName(GC_SERVER_REQUIRED) call failed, erro A Global Catalog Server could not be located - All GC's ar Warning: DcGetDcName(PDC_REQUIRED) call failed, error 1355 A Primary Domain Controller could not be located. The server holding the PDC role is down. Warning: DcGetDcName(TIME_SERVER) call failed, error 1355 A Time Server could not be located. The server holding the PDC role is down. Warning: DcGetDcName(GOOD_TIME_SERVER_PREFERRED) call fail A Good Time Server could not be located. ......................... Jbc.local failed test LocatorChe

  • @thamaraipoo-rj3eo
    @thamaraipoo-rj3eo 4 місяці тому

    User hi i get error. anu solution Running enterprise tests on : Jbc.local Starting test: LocatorCheck Warning: DcGetDcName(GC_SERVER_REQUIRED) call failed, erro A Global Catalog Server could not be located - All GC's ar Warning: DcGetDcName(PDC_REQUIRED) call failed, error 1355 A Primary Domain Controller could not be located. The server holding the PDC role is down. Warning: DcGetDcName(TIME_SERVER) call failed, error 1355 A Time Server could not be located. The server holding the PDC role is down. Warning: DcGetDcName(GOOD_TIME_SERVER_PREFERRED) call fail A Good Time Server could not be located. ......................... Jbc.local failed test LocatorCheck

  • @adelmarei8836
    @adelmarei8836 4 місяці тому

    Do domain users have dependencies ?

  • @orlandopachecorodriguez5770
    @orlandopachecorodriguez5770 4 місяці тому

    Hi, friend, very goog video. I have a Fujitsu PRIMERGY RX 2540 M5 server with a PRAID EP520i card and I want to configure a RAID1 with two disks just to install Proxmox, so far so good. The problem is that I want the other remaining albums, to leave them as independent, but I don't know how to do it. If you can help me, I would appreciate it.

  • @Kannadakasthoori
    @Kannadakasthoori 5 місяців тому

    Thankyou, it worked

  • @dizayz
    @dizayz 5 місяців тому

    Thank you, it's working.