Windows 7

Cannot allocate memory Issue

There has been a few times I have seen this message. Each time it had to do with my moving files in and out of a mounted network share from my Linux box. Tonight while moving files around and doing some scanning. I found myself with the error above.

After rebooting my Windows 7 host I am able to once again access files, only to have the issue all over again after moving a large number of files. I guess someone doesn’t want a Windows 7 desktop acting as a server. Well I have a quick fix that has worked for that.

On the Windows 7 host open the registry editor and set the following: 

Locate the following registry key: 
HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache and set its value to 1

Then locate the following registry key:
HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize and set the value of 3

Then *reboot*

Windows 7 Power Report

Do you have a laptop, are you running Windows 7, and most of all, does your battery seem like its running low faster than it should be?  If so perhaps running the following command from the command prompt will give you more information about what’s going on:

powercfg -energy

This will run for about 1 minute, more on a slower system. The report will be placed in the following location: C:Windowssystem32energy-report.html

– jermal

Windows 7 ‘GodMode’

I remember this little trick from back in my Windows Vista days, it seems that this also exists in the Windows 7 world. The trick is simple to execute, just enter the following commands::

up up down down left right left right b a select start

By creating a new folder in Windows 7 and renaming it with a certain text string:  GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} you are able to have a single place to do everything from changing the look of the mouse pointer to making a new hard-drive partitions.  This is more like a control panel #2 for Windows 7, and I suggest you give it a try and see how you like it.

Windows 7: Auto Login to Domain Account and lock the desktop

For some of you that like to play with automation tools, or just want to auto login and have your programs start up, and well don’t necessarily want your desktop open to the world.

Tech Warning!  You need to play in the registry, so know what your doing or don’t do.

 

  1. Open Registry Editor (Start Orb –> type Regedit.exe)
  2. Browse to this location: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon
  3. Edit DefaultUserName key and type your domain user name (domainuserid)
  4. If doesn’t exist, Create DefaultDomainName (string or REG_SZ) key and edit it with your domain name
  5. If doesn’t exist, create DefaultPassword (string or REG_SZ) key and edit it with your password
  6. If doesn’t exist, create AutoAdminLogon (string or REG_SZ) key and edit with “1”.
  7. Close Registry Editor
  8. Open Notepad
  9. Type this:
    On Error Resume Next
    DIM objShell ‘sleep(“1”) Set objShell = CreateObject(“Wscript.Shell”)
    objShell.Run “%windir%System32rundll32.exe user32.dll,LockWorkStation”

    Sub Sleep(strTime)
    strTime2 = (strTime * 60) * 1000
    wscript.sleep strTime2
    End Sub

  10. Save it as “LockDesktop.vbs”
  11. Click Start –> All Programs. Right click on Startup and select Open.
  12. On Startup Folder, right click on empty space and select New –> Shortcut.
  13. Select your script (LockDesktop.vbs) on your saved location and create a shortcut.
  14. That’s it. Reboot your computer and watch your computer auto login with your account and locks the desktop right away.

If you change your password, remember to edit the registry (DefaultPassword)

Configure applications as “Run as an Administrator”

User Account Control kicks in when you try to run some applications (Administrative tools for example), you have to click UAC window. Or some times you simple want to run an application with high privileges and your lazy you don’t want to right click and select “Run as an Administrator” option. Here is the easy way.

1. On the Start menu, locate the program that you want to always run as an administrator.
2. Right-click the application’s shortcut, and then click Properties.
3. In the Properties dialog box, click the Compatibility tab.
4. Do one of the following:

  • To apply the setting to the currently logged-on user, select the Run This Program As An Administrator check box, and then click OK.
  • To apply the setting to all users on the computer and regardless of which shortcut is used to start the application, click Change Setting For All Users to display the Properties dialog box for the application’s .exe file, select the Run This Program As An Administrator check box, and then click OK twice.