Windows 7 change cursor color
#WINDOWS 7 CHANGE CURSOR COLOR UPDATE#
“Something” has to happen to reread the values from the registry and update the pointer scheme. The problem arises when you just update the values, doing so, as you may expect, will not magically change the mouse cursors. $RegConnect.Close() A problem with just updating registry values $RegCursors.SetValue(“Wait”,”%SystemRoot%\cursors\busy_r.cur”) $RegCursors.SetValue(“UpArrow”,”%SystemRoot%\cursors\up_r.cur”) $RegCursors.SetValue(“SizeWE”,”%SystemRoot%\cursors\size3_r.cur”) $RegCursors.SetValue(“SizeNWSE”,”%SystemRoot%\cursors\size2_r.cur”) $RegCursors.SetValue(“SizeNS”,”%SystemRoot%\cursors\size4_r.cur”) $RegCursors.SetValue(“SizeNESW”,”%SystemRoot%\cursors\size1_r.cur”) $RegCursors.SetValue(“SizeAll”,”%SystemRoot%\cursors\move_r.cur”) $RegCursors.SetValue(“NWPen”,”%SystemRoot%\cursors\pen_r.cur”) $RegCursors.SetValue(“No”,”%SystemRoot%\cursors\no_r.cur”) $RegCursors.SetValue(“IBeam”,”%SystemRoot%\cursors\beam_r.cur”) $RegCursors.SetValue(“Help”,”%SystemRoot%\cursors\help_r.cur”) $RegCursors.SetValue(“Crosshair”,”%SystemRoot%\cursors\cross_r.cur”) $RegCursors.SetValue(“Arrow”,”%SystemRoot%\cursors\arrow_r.cur”) $RegCursors.SetValue(“AppStarting”,”%SystemRoot%\cursors\wait_r.cur”) $RegCursors = $RegConnect.OpenSubKey(“Control Panel\Cursors”,$true) $RegConnect = ::OpenRemoteBaseKey(”CurrentUser”,”$env:COMPUTERNAME”) I was able to script the registry updates by using the following code: The settings are referenced in the following screen shot. There are several registry values for each item in the Cursors key relative to the mouse pointer scheme. I did what any system administrator should do, start the “how does this actually work” process.īased on the research up to this point, I know the mouse pointer scheme settings are stored in the registry, specifically the “HKCU\Control Panel\Cursors” key. To my shocking surprise, there wasn’t a lot of information available.
#WINDOWS 7 CHANGE CURSOR COLOR WINDOWS#
Without any thought I said, “Sure it can, Windows PowerShell can practically do anything.” I began to search the “interwebs” for ideas on how I was going to accomplish this task.
To make a long story short, he wanted to have this script run for a specific user when launching a published application from Citrix. One of my co-workers asked if I could automate, with Windows PowerShell, of course, changing a user’s mouse pointer scheme. Have you ever encountered a problem where you almost gave up and thought, “Well … I guess it can’t be done.” I ran into that exact situation just the other day.
Take it away, Brian … Can Windows PowerShell change the mouse pointer scheme? Today, we have a guest blogger-Brian Wilhite is an Honorary Scripting Guy and member of the Charlotte PowerShell Users Group. Microsoft Scripting Guy, Ed Wilson, is here. Summary: Guest blogger and Honorary Scripting Guy Brian Wilhite talks about using Windows PowerShell to change a user’s mouse scheme.