Page 2 of 2 <12
Topic Options
#191540 - 2009-01-01 02:32 PM Re: Create a file [Re: Glenn Barnas]
chipped Offline
Fresh Scripter

Registered: 2008-12-09
Posts: 40
Actually thats more likely to be removed by a common cleaner like ccleaner as they scan for unnecessary registry keys, a ".txt" can not be determined as being necessary or not.

Plus having the script run as an admin requires me to put the account details in an unprotected script that anyone has read access to. Thats why I would run it when a admin logs in. I know there are programs to package it into an exe that can run at login but that costs money.

I also run this script when nobody is in so im not worried about saturating the network, plus I can have the login script schedule this script to run when I specify.

This is for a schools, so the permissions for users and what they can do is more restricted. It has to be as tight as possible,

Thank you for the pointers though, you have given me some ideas and helped me troubleshoot the script.

Top
#191542 - 2009-01-01 06:22 PM Re: Create a file [Re: chipped]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
I'm not sure where you got the idea that any script had credentials in it..

An admin script runs from your workstation, either when you log in as an admin, or employ RunAs to elevate your rights before you run the script (which is what we generally do). Then, from your workstation, you can perform functions against one or many remote systems. You control what runs, when it runs, where it runs, and what account runs it, without ever leaving your chair. You'll have to find another way to exercise this way. ;\)

Alternatively, creating scheduled tasks allows the task to run on the remote system, either under direct software control or as a scheduled event. You specify the credentials that the task runs under, but no credentials are ever visible.

As for the registry key issue, I've never had one of my tags removed by a reg cleaning utility (which seems to be the first thing that the help desk does.. well, maybe second, after runing a file cleaner \:\( ). Almost every one of my Kix-based utilities employs registry settings to control certain parameters.

Glenn

PS - after teaching at and supporting the classroom environments at two colleges and our training center over the past 15 years, I'm aware of the challenges of maintaining a school environment. You've got my respect and sympathy! ;\)
_________________________
Actually I am a Rocket Scientist! \:D

Top
#191543 - 2009-01-02 12:01 AM Re: Create a file [Re: Glenn Barnas]
chipped Offline
Fresh Scripter

Registered: 2008-12-09
Posts: 40
Wait... So can I schedule the task to run on a remote machine with admin rights when, the computer is logged out and sitting at the login screen?

I thought it would have to have the script login or specify the credentials for the script which would mean putting a password in?

Would be great if I could run it at an elevated level without putting admin credentials in plain text.

Top
#191544 - 2009-01-02 01:50 AM Re: Create a file [Re: chipped]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, that's right. The Task Scheduler runs the script under an administrative account and there's no screen interaction, either.

Edited by Sealeopard (2009-01-02 04:47 AM)
_________________________
There are two types of vessels, submarines and targets.

Top
#191545 - 2009-01-02 03:33 AM Re: Create a file [Re: Sealeopard]
chipped Offline
Fresh Scripter

Registered: 2008-12-09
Posts: 40
aaaahhhhh, well that makes things easier \:D
Top
#191546 - 2009-01-02 03:43 AM Re: Create a file [Re: chipped]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
The penny has dropped! \:\)
_________________________
Actually I am a Rocket Scientist! \:D

Top
#191561 - 2009-01-03 01:24 AM Re: Create a file [Re: Glenn Barnas]
chipped Offline
Fresh Scripter

Registered: 2008-12-09
Posts: 40
Thanks for the help guys \:D
Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 973 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.169 seconds in which 0.14 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org