Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Antworten
nicolaslebrun
Beiträge: 112
Registriert: 18 Apr 2011, 11:43

Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Beitrag von nicolaslebrun »

Hi all !

We're trying at the moment to execute some tasks at login (using module userprofile) in the context of the "LoggedOn User".

The aim is potentially to replace logon scripts...

We want to use a section "Winbatch /RunAsLoggedOnUser" but we can't ensure it is really working as expected.... We're working on Win7 and Win10.

Any hint ? advice ? about this functionnality ...

Best regards
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Beitrag von n.wenselowski »

Hi,

as noted in the docs: insufficient tested on NT6 and possibly of limited effect. ;)
The releasenotes for 4.0.6 also mention that this is currently being developed and further extended.

If you could give some more information about what currently does fail I'd happily relay this to Detlef.


With kind regards

Niko

Code: Alles auswählen

import OPSI
nicolaslebrun
Beiträge: 112
Registriert: 18 Apr 2011, 11:43

Re: Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Beitrag von nicolaslebrun »

Hi !

Code: Alles auswählen

Winbatch_add_printer /RunAsLoggedOnUser

[Winbatch_add_printer]
rundll32.exe printui.dll,PrintUIEntry /q /in /n\\printserver\myprinter
Doesn't work in a profileActions section... despite it works if I launch it from command line...

Has anybody have an idea to get round this problem ?

Regards,
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Beitrag von n.wenselowski »

Hi,

installing printer drivers?
Tricky :)
Have a look at the german section here. Seems like they posted some solutions on how to handle it.


Kind regards

Niko

Code: Alles auswählen

import OPSI
nicolaslebrun
Beiträge: 112
Registriert: 18 Apr 2011, 11:43

Re: Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Beitrag von nicolaslebrun »

Hi Niko,

My problem is not really printers installation ...
Viel Danke...
Aber schade ist mein Deutch sehr schlecht...
Encore pire que mon anglais ;-)

Is there a place where i can see the code to try to understand what is done when RunAsLoggedOnUser is set ?

Regards,

Nico
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Does "Winbatch /RunAsLoggedOnUser" work properly on 4.06 ?

Beitrag von n.wenselowski »

Hi Nico,
nicolaslebrun hat geschrieben:Is there a place where i can see the code to try to understand what is done when RunAsLoggedOnUser is set ?
You'll find it in here: https://svn.opsi.org/listing.php?repname=opsi-winst


Regards

Niko

Code: Alles auswählen

import OPSI
Antworten