How to: track the source of user account lockout using Powershell
In my last post about
how to Find the source of Account Lockouts in Active Directory I showed a way to filter the event viewer security log with a nifty XML query.
In this post I recomposed (Source:
Ian Farr) a Powershell script which will ask for the locked user account name and then will scan the active directory DCs security log for relevant events and will present the user lock time and source of the lock out like so:
Continue reading Using Powershell to Trace the Source of Account Lockouts in Active Directory
How to: Find the source of Account Lockouts in Active Directory
It is a very common problem in Active Directory when Users change their password in a domain environment, they might get locked out repeatedly and it can be a frustrating process to identify the source of the lockout.
Try the following steps to track the locked out user and also find the source of AD account lockouts. This procedure assume that you know the username which is locked out.
I recommend doing this procedure on ALL your Domain Controllers, not only your PDC Server, just to be sure you didn’t miss a lockout event.
Continue reading Find the source of Account Lockouts in Active Directory
Ways to power off a virtual machine in an ESXi host using the command line
Using the ESXi command-line utility vim-cmd to power off the virtual machine
SSH into your ESXi server
Get a list of all registered virtual machines, identified by their VMID, Display Name and path to the .vmx configuration file by running this command: vim-cmd vmsvc/getallvms
Get the current state of a virtual machine by running this command:
vim-cmd vmsvc/power.getstate VMID
Shutdown the virtual machine using the VMID found in Step 2 and run this command:
vim-cmd vmsvc/power.shutdown VMID
If the virtual machine fails to shut down, run this command:
vim-cmd vmsvc/power.off VMID
Continue reading Power off the virtual machine in an ESXi host
How to Configure Notepad++ to run a python script via python IDLE
If you are learning python and want to use notepad++ as a free as well as simple and easy to use editor, follow these simple steps:
Install python (2.7.x)
First thing: Download the python 2.7.x (current is 2.7.13) windows installer from
http://www.python.org/download/ using the default settings. It should install python in the folder: C:\Python27. You can use a different version of python, just substitute out the version number wherever you see 27. Continue reading How to run python script on notepad++
0x8007052e error in task scheduler
Symptom: You get 0x8007052e error when trying to run scheduled task from task scheduler.
There can be several causes for this including authentication problem like bad password.
But I did not easily find documented online records for this error being caused by a group policy, so I think this post might help you – system admins.
Continue reading 0x8007052e error in task scheduler