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

Quick Tip: Sending CTRL+Alt+Del to RDP Session

April 7, 2019 by AJNI No Comments

Did you know?

Since CTRL+ALT+DEL affects your local machine, you can send CTRL+ALT+END to your RDP Session in order to do tasks like Task Manager, Lock the Session or change your admin password, all inside your RDP connection.

Reading time: 1 min
Powershell•VMware•Windows•Windows Server

Powershell: Installing VMware PowerCLI

March 25, 2019 by AJNI No Comments

Hi Folks!

Here is a quick tip to install the VMware PowerCLI, which is – like the name says – for Windows PowerShell.

To initiate the installation process, type this command into the Powershell Console:

Install-Module -Name VMware.PowerCLI

Powershell will ask you if you wish to install “NuGet”, which is required to automatically download and install VMware PowerCLI from PSGallery. You also have to trust the PSGallery repository in order to proceed with the installation.

Now you can list all of the VMware PowerCLI Modules:

Get-Module -ListAvailable | where { $_.Name -match “vmware” }

Or just check your currently installed VMware PowerCLI version:

Get-PowerCLIVersion

Enjoy!

Reading time: 1 min
Hyper-V•Powershell•VMware•Windows•Windows Server

How to enable AD Recycle Bin

March 23, 2019 by AJNI No Comments

With Windows Server 2008 R2, Active Directory has now a recycle bin. With this feature you do not have to use for example Windows Server Backup to initiate an authoritative AD restore, instead you can quickly recover deleted Users, OUs, Groups and other objects through Active Directory Administrative Center (Windows Server 2012 an upwards) or PowerShell

Enabling AD Recycle Bin (PowerShell commands

Enable-ADOptionalFeature ‘Recycle Bin Feature’ -Scope ForestOrConfigurationSet -Target ajni.lab

Type A (=Yes to All) to enable the feature

(Optional) Check Deleted Object’s Lifetime

Get-ADObject “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=ajni,DC=lab” -Property msDS-DeletedObjectLifetime | fl

If you do not see the Property named “msDS-DeletedObjectLifetime”, it means that it has the default value of 60 days.

You can change is with this command – do not forget to replace DC=ajni, DC=lab with your domain name:

Set-ADObject -Identity “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration, DC=ajni,DC=lab” -Partition “CN=Configuration, DC=ajni,DC=lab” -Replace:@{“msDS-DeletedObjectLifetime” = 120}

Checking the property again, you‘ll see your new value:

You can also have a look at this property with ADSIedit:

Restoring an Object

In our example we deleted an OU called “ImportantOU”

Let’s list all Deleted Objects:

Get-ADObject -filter ‘isdeleted -eq $true -and name -ne “Deleted Objects”‘ -includeDeletedObjects

And then restore our important OU. Before Restoring we can check if the Filter finds our OU:

Get-ADObject -Filter ‘msDS-LastKnownRDN -eq “ImportantOU”‘ -IncludeDeletedObjects

Now restore:

Get-ADObject -Filter ‘msDS-LastKnownRDN -eq “ImportantOU”‘ -IncludeDeletedObjects | Restore-ADObject

Our important OU is back from the dead:

We can also restore from Active Directory Administrative Center (ADAC)

Note that while AD Recycle Bin gives you the flexibility of quickly restoring deleted AD Objects, you should also have a functional Windows Server Backup and VM Backup with solutions like HPE Data Protector or VEEAM. Just in case something goes horribly wrong!

Reading time: 1 min
Powershell•Windows•Windows Server

Get Locked Out Users in Active Directory (Powershell)

March 15, 2019 by AJNI No Comments

Hi Folks!

Here is a quick command to find locked out users in your domain. Pretty straightforward:

If that’s too much Information you can only select the username:

The command is not getting recognized? Be sure to install the RSAT (Remote Server Administration Tools) for AD DS (Active Directory Domain Services), which also install the Powershell Snap-In via Server Manager (if you are using a Windows Server OS to manage your AD):

Alternatively you can download the RSAT for Windows 10.

Reading time: 1 min
Windows Client OS

Windows 10 Update brings serious performance issues for gamers

March 7, 2019 by AJNI No Comments

If you have performance problems with your computer, specifically while playing a video game, your computer might have installed a faulty patch. After installing KB4482887, as stated on the Microsoft page, “users may notice graphics and mouse performance degradation with desktop gaming when playing certain games, such as Destiny 2.” Check Microsoft’s site for full details: https://support.microsoft.com/en-us/help/4482887/windows-10-update-kb4482887

How to uninstall this update

You can easily uninstall this update from control panel – just search for it – or you can hit Run > control.exe. Under Programs & Features hit View Installed Updates. You can also use the Modern System Settings App to achieve the same goal.

Locate the correct update and uninstall it. Your PC will reboot.

That’s it!
Another way of preventing such things is not to download/install updates on day one. By installing them you are essentially beta testing for Microsoft. ?

Reading time: 1 min
Page 21 of 21« First...10«18192021

Like what you are reading? Buy me a coffee.

Tip Of the Day

  • Add Alias to Windows Fileserver (Server 2019, 2022, 2025)

    1 day ago

Keep in touch

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

Sign up to receive awesome content in your inbox, every month.

Check your inbox or spam folder to confirm your subscription.

Categories

  • AI & Deep Learning (1)
  • Azure (20)
  • Citrix XenApp (21)
  • Citrix Xendesktop (13)
  • Cloud Computing (40)
  • Coding (1)
  • Hyper-V (10)
  • Linux (8)
  • Microsoft 365 (26)
  • Powershell (21)
  • Security (7)
  • VDI (16)
  • Virtualization (21)
  • VMware (12)
  • Windows (21)
  • Windows Client OS (39)
  • Windows Server (92)

Archives

  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • 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