Showing posts with label registry. Show all posts
Showing posts with label registry. Show all posts

04 February 2016

References greyed out in VBA window

I needed to add some references in an Access 2013 code module. Going to Tools, I found the References item greyed out. Research led to this article with a registry key to enable References:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Access\Security]
"AccessVBOM"=dword:00000001
Note that I am an admin on this machine, running Office 2013 (hence the "15.0") and need VBA in Access. You'll need to modify the above to your needs.

26 January 2016

Run a program on Windows startup

I had a shortcut to a batch file that needed to run on the startup of Windows 10 x64 Enterprise startup. All the various methods described (adding to the Startup folder, adding to regular Run key in registry) didn't work. Finally, this post on Stack Overflow solved the issue. This should work well on other versions of Windows too.

Because this is a 64-bit Windows, the change has to be made in Wow6432Node:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
There, you can add a new string value, give it a name, and then double-click to edit it. Place the full path of the program in double quotes. If it's something requiring administrator privileges, on startup, Windows will display the UAC dialog.

23 June 2011

Enable screensaver on Windows 7

On my current Windows 7 Enterprise 64-bit OS, the screensaver option was disabled: When I right-clicked on the desktop, chose Personalize, the Screen Saver item was greyed out. It also displayed the message at the bottom of the dialog: "One or more of the settings on this page has been disabled by the system administrator."

Some trial-and-error and research revealed the answer.
  1. Back up your registry using these instructions.
  2. Go to Start and in the search box, type regedit
  3. This will display the regedit program at the top of the Start dialog box.
  4. Right-click on the regedit link and choose "Run as Administrator."
  5. In regedit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System and create a new DWORD (32-bit) Value.
  6. Name the value NoDispScrSavPage
  7. Set the value to 0 (zero).
  8. Close the registry editor.
  9. Reboot your system.
Now the Screen Saver option should be available again in the Personalize area.

Update: One more step: You also need to follow the steps described here, as recommended by Ted Myers on the Windows Secrets Lounge. Finally, I have my screensaver back :)