System administrators depend a lot on WMI objects to query various information from local or remote computers. That means if any of the WMI query is taking long time or never ending, the automatons placed by System administrator may fail. I ran into same situation yesterday. Query against a WMI Class(given by third party application) [...]

{ 0 comments }

I have seen many complaining that message recall is not working as expected in their environments. I too often receive queries related to it. Today one of my colleague asked me whether the message recall that she/he did will work for sure or not. My answer is “YES/NO/MAYBE”. Because I never seen it working in [...]

{ 0 comments }

When working with paths it is often required to find out the drive letter of of a path. I generally do this using Dotnet methods, but just realized that PowerShell has a buil-in way to do this. The Split-Path cmdlet can help you doing this. Look at the before sample code. function Get-DriveLetterFromPath { [cmdletbinding()] [...]

{ 0 comments }

In this post, I will show you how to use Powershell for enabling or disabling OU protection in Active Directory. In my last post, we have seen how to query Organization Units in Active Directory that has protection enabled. Now we will see how to enable or disable this protection option using PowerShell. As I [...]

{ 1 comment }

In this post, I will show you how to find list of Organization Units(OUs) in Active Directory that has protection enabled on them using Powershell We know that, Active Directory now has built-in protection for Organization Units to prevent accidental deletions. This helps in unnecessary loss of data and saves the time that one need [...]

{ 0 comments }

In this post, I will take you through a PowerShell script that helps in setting up the password for HP Integrated Lights-Out (ILO) console. All these years, I was under kind of wrong impression that HP ILO can be managed via web console and a few utilities given by HP. Today I realized that it [...]

{ 2 comments }

In my previous post, I talked about how to query CD ROM Drive letter using PowerShell. In this post, I will show you how to change the drive letter of CD Drive in remote computers. This will come handy when you want to assign a specific drive letter to CD ROM drive. In the below [...]

{ 0 comments }

Do you ever wanted to know if a remote computer is having CD drive attached to it? or drive letter of CD drive on remote computer? I got similar requirement today and came with below method after some research. There is a WMI class named Win32_CDROMDrive in Windows which stores the details of CD ROM [...]

{ 1 comment }

While working on some PS stuff today related to active directory, I came across a need to verify if the given OU(Organization Unit) exists or not. Basically, I am taking OU as input to one of my scripts and would like to validate if that OU exists before doing any processing.  After a little bit [...]

{ 1 comment }

For troubleshooting weird issues, we need debug logging to be enabled at VM side in a Citrix XenDesktop VDI environment. This article explains how to enable this debug logging. Find WorkstationAgent.exe.config in C:\Program Files\Citrix\Virtual Desktop Agent folder and edit it Take a back of workstationagent.exe.config file. We can revert to this if something screwed up. [...]

{ 0 comments }