Pages

Monday, April 20, 2015

Disable Slow mouse movement in Windows 2012

Whenever we are working on a rdp session on Windows 2012 it seems that we are working on a dialup connection even if connected with a good link.

To get rid of slow connection all you need to do is disable Pointer Shadow from Mouse control panel, Follow the steps below:

From control panel open Mouse applet and go too the Pointers Tab, Uncheck Enable pointer Shadow from the bottom and hit Apply.

Alternatively you can open command prompt and type
  • Start main.cpl ,1  (It will open the mouse control panel applet and with pointers tab active)
  • Press Alt key and E,  (It will uncheck the Enable Pointer shadow Checkbox)
  • Press Alt key and A, (It will apply the changes)
  • Press Esc key and the applet disappears (YOu already applied the changes :) )

Move the cursor and feel the difference :)

List all users in domain with Membership to each AD Group.

To list all the users from a domain with whatever groups they are member of, Use the below script (Remember it needs Quest PowerShell for Active Directory installed on the server where it is being run from) :

get-qaduser * | foreach-object {
$User = $_
(get-QADuser $user).memberof | Get-Qadgroup | select @{n="UserSAMID";e={$User}},Name,SAMAccountname,DisplayName,Type,canonicalname
} | export-csv Users_Memberof.csv -notypeinformation


This will generate a CSV file which will have user's Samid in the first column and Group name (direct membership) in the second column with other group attributes in subsequent columns.

get-qaduser * | foreach-object {
$User = $_
(get-QADuser $user).allmemberof | Get-Qadgroup | select @{n="UserSAMID";e={$User}},Name,SAMAccountname,DisplayName,Type,canonicalname
} | export-csv Users_Memberof.csv -notypeinformation



This will generate a CSV file which will have user's Samid in the first column and Group name (indirect nested group membership) in the second column with other group attributes in subsequent columns.