MSFN Forum: interactive script for all users - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

interactive script for all users Rate Topic: -----

#1 User is offline   viroman 

  • Group: Members
  • Posts: 2
  • Joined: 21-November 07

Posted 21 November 2007 - 12:49 PM

I made an interactive script that I need to run for all users
on xp pro (sp1 or sp2) or on w2k3 machines at a scheduled time.
Is this possible without having to know the password for
every user so the script runs as them?
I tried using schtasks.exe but that will only work
if I know the login credentials for every user that
I need the scheduled task to run for. Any ideas?


#2 User is offline   PC_LOAD_LETTER 

  • Well, I stole something else
  • Group: Super Moderator
  • Posts: 1,829
  • Joined: 13-October 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 November 2007 - 02:49 PM

well the first thing would be to add it as a scheduled task either using

Command Line: at.exe 14:35 /interactive "cmdline of script"
or
Start - > Programs -> Accessories -> System Tools -> Scheduled Tasks

the problem is Task Scheduler runs under the system account and will run the script with system level privledges and all the profile specific variables are screwed up

get http://www.robotronic.de/runasspc/ it allows you to create a cryptfile that embeds an admin accounts password for use with a utility similar to runas. (the cryptfile is only good for running the commands you specify)

when creating your cryptfile with runasspcadmin.exe, set logon to Env under optional settings and the cmd will execute as whatever user is logged on whenever the script runs

#3 User is offline   viroman 

  • Group: Members
  • Posts: 2
  • Joined: 21-November 07

Posted 23 November 2007 - 11:47 AM

Thank you very much.
It is really what I was searching for.
:hello:

#4 User is offline   PC_LOAD_LETTER 

  • Well, I stole something else
  • Group: Super Moderator
  • Posts: 1,829
  • Joined: 13-October 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 November 2007 - 03:12 AM

Sure. glad I could help out lemme know if you need anything else. Oh and welcome to MSFN :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy