The user accounts in this example are as follows:
homer - A member of Administrators
lisa - A Standard User
lisa.web - A Standard User
Lisa is our day to day account, where we spend most of our time.
We log in as homer and create a new, passworded, standard user account. We can give it any name. In this example, lisa.web
If you're using the Protected Administrator account as your daily account, you will need to also create the lisa account.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you haven't changed any integrity levels of things on your system, you can skip this next bit. Go straight to the part under the lines.
Mozilla Firefox needs to be initially started with medium integrity because it needs write access to a medium integrity directory, in order to create the user profile directories. If it is set to low, start an Administrator Command Prompt and change it back with the following command:
icacls "C:\Program Files (x86)\Mozilla Firefox\Firefox.exe" /setintegritylevel medium
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
We log in as lisa and modify the existing Mozilla Firefox shortcut (or create a secondary one):
Target: C:\Windows\System32\runas /user:lisa.web "cmd /c start \"\" \"C:\Program Files (x86)\Mozilla Firefox\Firefox.exe\"
Start in: C:\Program Files\Mozilla Firefox
We run Mozilla Firefox by clicking the shortcut. When prompted, type lisa.web password.
Close Mozilla Firefox.
Log in as homer, open an Administrator Command Prompt, and enter the following:
icacls "C:\Program Files (x86)\Mozilla Firefox" /setintegritylevel(oi)(ci) low /t
icacls "C:\Users\lisa.web\AppData\Local\Temp" /setintegritylevel(oi)(ci) low /t
icacls "C:\Users\lisa.web\AppData\Local\Mozilla\Firefox" /setintegritylevel(oi)(ci) low /t
icacls "C:\Users\lisa.web\AppData\Roaming\Mozilla\Firefox" /setintegritylevel(oi)(ci) low /t
icacls "C:\Users\lisa.web\Downloads" /setintegritylevel(oi)(ci) low /t
The /t switch causes the command to apply the settings recursively on objects within.
Note: There seems to be something funky going on as to how it is displaying some of the commands in the post. As you can see, on the third command, there is a space between Firef ox even though when creating the message, there isn't a space, it's perfectly fine. Before carrying out the command in a command prompt, make sure it reads as Firefox and not Firef ox.
And also, on the forth command, the " after Firefox is spaced out, make sure it reads as Firefox" and not Firefox " otherwise it won't work.
I'm not quite sure why it's displaying differently.
Log in as lisa and run Mozilla Firefox by clicking the shortcut. Test to see that it behaves as expected.
You can check that Mozilla Firefox is running as a low integrity process by downloading
Process Explorer. Once it is installed, make sure it is set to show the "integrity level" tab by just clicking on where it saids "Process" along the top (or anywhere along that toolbar) and the "firefox" process should be shown as running as "low".
You can also check to see if Mozilla Firefox is running as a different user by running Porcess Explorer again, double clicking on the "firefox" process and under the "Image" tab and near the bottom, it will say "User" followed by which user that process is running as.