Entries in the ‘Scripting’ Category:

Lock your workstation using PowerShell

One other nice thing IĀ found with PowerShell is it’s ability of using APIs by importing DLLs. Below is one example, where user32.dll is imported and LockWorkstation Function is invoked to lock the desktop. Btw, I grabbed this script from TechNet Library Function Lock-WorkStation { $signature = @” [DllImport("user32.dll", SetLastError = true)] public static extern bool [...]

Leave a Comment

Script to ping machines part of Active Directory Security Group

Today I want to turn my some of the scripting efforts to public. Sometimes I get requirements to see how many machines are online which are part of a AD security group. I worst method I used to follow was dumping the group member list to some text file and making use of a batch [...]

Comments (1)

Quick way to find hotfix installation status

I know there are varioud menthods for finding the hotfix installation status, but I felt this as very easy one. To find the hotfix installation status on local machine: wmic qfe where hotfixid=”KB958644″ list full To find on a remote machine: wmic /node: qfe where hotfixid=”KB958644″ list full To find on list of machines: o [...]

Leave a Comment