#195079 - 2009-07-28 04:51 PM
Run Kix Script as a different user
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
We have PC's that login with a generic account and run Kix. I want to create a batch file that calls a different user other then the local %username% account that is currently logged in on the PC and map that users drives.
|
Top
|
|
|
|
#195081 - 2009-07-28 05:28 PM
Re: Run Kix Script as a different user
[Re: Mart]
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
Is there anyway to pass a password variable? We are using Sentillion's Vergence for Single Sign on. Have you had any experience with using this product and launching Kix Scripts?
|
Top
|
|
|
|
#195193 - 2009-07-31 08:18 PM
Re: Run Kix Script as a different user
[Re: Mart]
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
Okay - thanks now I am bit confused, probably since I don't quite understand the syntax yet. I have tried passing the PW variable and it did not work for me. And what is a tokenized file? Thanks again for your help...
|
Top
|
|
|
|
#195197 - 2009-07-31 08:49 PM
Re: Run Kix Script as a different user
[Re: Glenn Barnas]
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
Yes - actually using ruNN-as with the 2 NN's - I have been searching this site for samples of how it would look to pass the PW credentials and have not found any...Is there a good source, or anyone know what the syntax would look like? Thanks
|
Top
|
|
|
|
#195209 - 2009-07-31 10:13 PM
Re: Run Kix Script as a different user
[Re: AlexG]
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
Here is my example
"C:\Program Files\Sentillion\runnas.exe" /user:%1 %logonserver%\netlogon\logon.bat /pass:%2
not working of course
Authenticator passes the following arguments to the script at Logon (no arguments are passed at Logoff): %1 = current username %2 = current user’s password %3 = current user’s domain
|
Top
|
|
|
|
#195374 - 2009-08-10 05:41 PM
Re: Run Kix Script as a different user
[Re: Glenn Barnas]
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
What I am doing is that the logon.bat will map drives for users. I can get the kixscript to run, and is shows the users drives mapping. The problem is that the local account USERA already has mapped drives, and the drives that are getting mapped by USERB do not show up. Can RuNNas be used for user drive mappings?
|
Top
|
|
|
|
#195384 - 2009-08-11 04:52 PM
Re: Run Kix Script as a different user
[Re: BradV]
|
AlexG
Fresh Scripter
Registered: 2009-07-28
Posts: 7
Loc: Philadelphia
|
Correct - We have workstations that auto login using a generic account and maps a set of drives that are public. What I am trying to do is create a batch file where someone can map to there own personal, and department drives exlusively to them. What we are using is a product called Sentillion Vergence which has Single Sign on Cabability. The user is presented with a login box and they enter their credentials. I can get the Kix Login script to run, and it looks like the drives are mapping. But when I go to my computer, the Generic Accounts Drives are still there...I did check the Application Event Logs and got this error:
Event Type: Error Event Source: KIXTART Event Category: None Event ID: 5 Date: 08/10/2009 Time: 3:47:03 PM User: N/A Computer: LKLKBLR Description: The description for Event ID ( 5 ) in Source ( KIXTART ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Failed to create cookie Error : Access is denied. (0x5/5).
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 515 anonymous users online.
|
|
|