Tag Archives: Windows

MS Windows

Can’t Find Groups Management On Windows 7 Home and Vista Home Editions

How to Manage Local Groups on Windows Home

Ever helpful, Microsoft provides a GUI interface for managing users and groups on Windows. Unless you have a Vista home edition or a Windows 7 home edition, in which case you can’t find the interface to manage groups because it isn’t there. You can however manage groups very easily from the command line.

Manage Windows Groups from the Command Line

Simples. Find Command Line in your Start Menu Programs so that you can right-click on it and choose ‘Run As Administrator’
Type:

net localgroup /?
net localgroup MyNewGroupName /Add
net localgroup MyNewGroupName MyFirstUserName /Add
net localgroup MyNewGroupName MySecondUserName /Add
... and so on

And voila. You can now set security on folders in explorer, and use your new group to grant access.
If your Windows permissions are not working after you’ve granted new permissions, the usual trick is to lock and unlock your session (Start Menu — The Power/LogOff/Hibernate/Lock/Sleep button). Failing that, log out and back in again.

Net Localgroup Reference

Is here: http://technet.microsoft.com/en-us/library/cc725622(WS.10).aspx

iTunes Home Sharing Not Working

There’s a handful of reasons that can cause this. The probably definitive list can be found by combing the apple tech support discussion thread for it at https://discussions.apple.com/thread/2586385?start=105&tstart=0
I recommend you start at the end of the thread where you’ll find the answers rather than at the beginning of the thread where’ll you find the kind of posts that people write when they’re tearing their hair out because their shiny expensive toy DOESN’T WORK.
The one that worked for me was:

  • Restart the windows Bonjour service. If you don’t know how to do that, just restart your computer.
  • The other popular one is: “Sorry bud, you need a new router.” Or if you’re ‘lucky’ just a firmware update (Have you ever tried updating your router firmware? I did it once). You can’t win then all.

I want to set a Windows Environment Variable for my whole user login session

Use setx to permanently set an environment variable

If you’ve used windows environment variables at all, you’ve probably wished you could set them in a command window for use in another program.
You can’t change the environment of an already-running program – the environment is copied when a program starts – but you can set environments values for your user session that will be picked up by any new programs you launch with setx:

setx myvariable thenewvalue

Much easier than right-clicking to get to My Computer properties.
setx /? will also tell you about setting permanent, machine-wide and remote machine environment values.

setx comes with Windows 7 or in the Windows Resouce Kit.

How to unset a variable set with setx

setx myvariable ""

See http://support.microsoft.com/kb/195050 for more details.

Asp.net / IIS7 : System.BadImageFormatException: Could not load file or assembly

You have something like this:


Server Error in ‘/Vendorapplication’ Application.
Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

It’s because you are trying to run 32 bit dlls on a 64 bit system. Fix it in IIS manager by changing the advanced settings on you application pool to enable 32 bit applications. Or create a new app pool specifically for them.

Alex James Brown has a nice picture: change app pool to 32 bit

Escape Characters in Windows Command Line

Escape Characters in Windows’ CMD.EXE doesn’t entirely work for me. I wanted to embed or escape quote characters in a command line, to give to the binPath parameter of sc.exe to create a windows service. But this contribution from John McNelly in the comments did give the solution:

John McNelly •  Jun 4, 2009 @1:10 pm

You can also use ^ as a line continuation character for readability.
To escape an embedded ” use a backslash, useful with paths within “c:\Program Files” :

sc.exe create Foo ^
binPath= "\"C:\Program Files\foo.exe\" \"C:\Program Files\foo.ini\"" ^
displayName= "Hello, world"

Thanks John.