Jump to content


tniaudit.exe error on logon script


  • Please log in to reply
8 replies to this topic

#1 Guest_smteleco_*

Guest_smteleco_*
  • Guests

Posted 21 January 2009 - 10:36 AM

Hi

I've put in the logon script on my domain for auditing my pc's.

Some users obtain an "c:\tniaudit.exe" error.

It'S like the file cannot be copied on the c drive of some users.

Is it possible to force the copy? or run the tniaudit with administrative privilège?

#2 Rick-VQ

Rick-VQ

    Member

  • Members
  • PipPip
  • 16 posts

Posted 21 January 2009 - 11:08 AM

Hi !

Have you tried running your script with "Run As" using Administrator account ?

#3 Guest_smteleco_*

Guest_smteleco_*
  • Guests

Posted 21 January 2009 - 11:18 AM

Hi !

Have you tried running your script with "Run As" using Administrator account ?


What do yo mean?

How can I run a script with administrative privilege?

#4 Rick-VQ

Rick-VQ

    Member

  • Members
  • PipPip
  • 16 posts

Posted 21 January 2009 - 11:29 AM

Try the following

RUNAS USAGE:

RUNAS [/profile] [/env] [/netonly] /user:<UserName> program

/profile if the user's profile needs to be loaded
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote access only.
/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
program command line for EXE. See below for examples

Examples:
> runas /profile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""

#5 Rick-VQ

Rick-VQ

    Member

  • Members
  • PipPip
  • 16 posts

Posted 21 January 2009 - 11:32 AM

Check the site for more help on the login scripts.

http://www.rlmueller...onScriptFAQ.htm

#6 Rick-VQ

Rick-VQ

    Member

  • Members
  • PipPip
  • 16 posts

Posted 21 January 2009 - 11:37 AM

Onther thing you can try is a batch file with:

@ECHO OFF
XCOPY <SOURCE> <DESTINATION> /Y
EXIT

or go have a look at the Microsoft guides for Logon Scripts at http://technet.micro...y/cc757263.aspx

#7 Guest_smteleco_*

Guest_smteleco_*
  • Guests

Posted 21 January 2009 - 11:52 AM

I'm not sure to understand exactly the command runas!

I use this script:

@ECHO OFF
SET COPYCMD=/Y
xcopy \\my_Server\netlogon\tni*.* c:\ /D
start c:\tniaudit.exe /scripted


Should I replace the last line with:

RUNAS /env /user:administrator@My_domain.com "c:\tniaudit.exe /scripted"

???

Thanks for your help

#8 Zak

Zak

    Administrator

  • Root Admin
  • PipPipPip
  • 747 posts
  • Gender:Male

Posted 22 January 2009 - 02:22 AM

RUNAS command will ask for the administrator's password, so that's not a very good solution for login script.
Some users may have no rights to write to the root of disk "C:". I would recommend to change the script as the following:
@ECHO OFF
SET COPYCMD=/Y
xcopy \\my_Server\netlogon\tni*.* %TEMP% /D
start %TEMP%\tniaudit.exe /scripted
I suppose that "savepath" parameter in the file tniaudit.ini points to some shared folder so you will not have to look for the result files in %TEMP% directories instead of C: roots.
Softinventive Lab support

#9 Guest_smteleco_*

Guest_smteleco_*
  • Guests

Posted 22 January 2009 - 05:19 AM

thanks! it'S working!!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users