NetSetMan Support
You are not logged in.
- Topics: Active | Unanswered
#1 2016-05-03 03:34
- ChrisElsen
- Member
- Registered: 2016-04-21
- Posts: 8
Profile scripts are executed as Admin, not as user
I noticed that profile scripts are executed with Administrator privileges, not with user privileges.
This is e.g. problematic with Outlook, that doesn't like to be started at all with Administrator privileges (Search e.g. doesn't work in that case).
But one of my main use cases for NetSetMan Pro is to start Outlook only when connected to the corporate network.
Is this something that can be fixed?
Offline
#2 2016-05-03 09:15
- NetSetMan Support
- Administrator
- Registered: 2005-08-06
- Posts: 1,878
Re: Profile scripts are executed as Admin, not as user
Why don't you use the Program feature in the same dialog? There you have the possibility to choose whether to run the process with restricted or elevated user privileges.
Offline
#3 2016-05-03 19:40
- ChrisElsen
- Member
- Registered: 2016-04-21
- Posts: 8
Re: Profile scripts are executed as Admin, not as user
Nice! That did the trick.
I'm now calling the script as a program.
The reason I'm not calling Outlook directly is that I only want to open it, if it's not already running.
Outlook is pretty dumb when it comes to starting multiple times.
Therefore my script looks like this:
@echo off
tasklist /FI "IMAGENAME eq Outlook.exe" | find /i "Outlook.exe"
IF ERRORLEVEL 1 start "" "C:\Program Files (x86)\Microsoft Office\Office15\OUTLOOK.EXE"
Offline