Home
Microsoft 365
Linux
Windows
Powershell
Cloud Computing
    Citrix Xendesktop
    Citrix XenApp
Useful links
About
ajni.IT -
  • Home
  • Microsoft 365
  • Linux
  • Windows
  • Powershell
  • Cloud Computing
    • Citrix Xendesktop
    • Citrix XenApp
  • Useful links
  • About

Update domain computer group membership without rebooting a client

January 11, 2022 by AJNI No Comments

If you ever wondered if there is a cooler or faster way to update a computer's group membership without having to reboot: well there is. If you delete or "purge" the kerberos tickets on the machine and then perform a gpupdate, the client is going to retrieve a new kerberos ticket with the new group membership.

Here are the two (well, if have never heard of gpupdate /force):

klist -lh 0 -li 0x3e7 purge

gpupdate /force

References:

https://www.shellandco.net/update-computer-membership-without-reboot/

Reading time: 1 min

Best practice: You should enable DNS Aging and Scavenging

September 29, 2021 by AJNI No Comments

In an Active Directory environment, it is best practice to enable DNS Aging and Scavenging. Aging and Scavenging will ensure that old DNS entries (such as decommissioned servers or computers) are deleted regularly. You will find this option by opening the properties in DNS Manager under the advanced tab or in the properties of a Forward Lookup Zone.

For detailed information, check out https://www.windowstechno.com/dns-aging-and-scavenging/.

Reading time: 1 min

Migrate Sysvol from FRS to DFSR

March 31, 2021 by AJNI No Comments

On old Windows Active Directory environments, you might need to upgrade the Sysvol share from File Replication Service to Distributed File System Replication. This is very easy to do and it should be done asap in your environment.

Unfortunately I do not have screenshots to share with you, but here are the steps:

With dfsrmig /getmigrationstate you can see the status of the migration. Dfsrmig has 4 states starting from 0:

  • State 0 - started
  • State 1 - prepared
  • State 2 - redirected
  • State 3 - eliminated

Step 1:

dfsrmig /setglobalstate 0

Wait untill all Domain Controllers have the state "started". You can check the state with dfsrmig /getmigrationstate. Be very patient as it might take some time to replicate changes particularly if you have Domain Controllers on remote offices.

Step 2:

dfsrmig /setglobalstate 1

Wait until all Domain Controller have the state "prepared". You can check the state with dfsrmig /getmigrationstate. Once again, be very patient and double check the output.

Step 3:

dfsrmig /setglobalstate 2

Wait until all Domain Controller have the state "redirected". You can check the state with dfsrmig /getmigrationstate. Be very patient and double-check the output.

Step 3:

dfsrmig /setglobalstate 3

Wait until all Domain Controller have the state "eliminated". You can check the state with dfsrmig /getmigrationstate. Be very patient and double-check the output.

In addition to the last migration state, make sure the File Replication Service service is disabled on every Domain Controller.

References:

https://www.rebeladmin.com/2015/04/step-by-step-guide-for-upgrading-sysvol-replication-to-dfsr-distributed-file-system-replication/

Reading time: 1 min

AD Group Membership into a CSV/Excel

February 14, 2021 by AJNI No Comments

With this awesome script, you can read Active Directory group membership and convert that information into a CSV file, which can be imported in Microsoft Excel.

The file will be saved inside C:\Temp. The result looks something like this (I'm no Excel wizard):

https://github.com/ajnik/AD-Group-Membership-to-Excel/blob/main/AD-Groups-To-CSV.ps1

Note: Not my script. Check credits.

Reading time: 1 min

Automatic program start at logon with GPOs

November 28, 2020 by AJNI No Comments

You can easily run one or multiple programs at logon without messing with the Registry by using Group Policy Object (GPOs).

Under User (or Computer) configuration > Administrative Templates > System > Logon > Run these programs at user logon you can insert the path of the executable. Very clean and straight forward.

Reading time: 1 min
Page 1 of 3123»

Tip Of the Day

  • Reconnect a soft deleted Exchange Online mailbox to another account

    3 days ago

Keep in touch

Oh hi there 👋
It’s nice to meet you.

Sign up to receive my awesome blog posts in your inbox, every week.

Check your inbox or spam folder to confirm your subscription.

Recent Posts

  • Reconnect a soft deleted Exchange Online mailbox to another account
  • Remote Desktop Services session freeze with Windows 10/11 Clients
  • Convert Microsoft 365 Cloud users into Azure AD Synced users
  • Install Microsoft Teams system-wide on RDS (VDI environment is not detected)
  • Printer Redirection on Citrix Workspace for Mac OS not working

Categories

  • Azure (13)
  • Citrix XenApp (12)
  • Citrix Xendesktop (7)
  • Cloud Computing (27)
  • Coding (1)
  • Hyper-V (8)
  • Linux (8)
  • Microsoft 365 (13)
  • Powershell (12)
  • Security (5)
  • VDI (8)
  • Virtualization (15)
  • VMware (8)
  • Windows (20)
  • Windows Client OS (20)
  • Windows Server (49)

Archives

  • June 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019

ajni IT © 2019