#191540 - 2009-01-01 02:32 PM
Re: Create a file
[Re: Glenn Barnas]
|
chipped
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
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!
|
|
Top
|
|
|
|
#191543 - 2009-01-02 12:01 AM
Re: Create a file
[Re: Glenn Barnas]
|
chipped
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
|
|
|
|
#191545 - 2009-01-02 03:33 AM
Re: Create a file
[Re: Sealeopard]
|
chipped
Fresh Scripter
Registered: 2008-12-09
Posts: 40
|
aaaahhhhh, well that makes things easier
|
|
Top
|
|
|
|
#191561 - 2009-01-03 01:24 AM
Re: Create a file
[Re: Glenn Barnas]
|
chipped
Fresh Scripter
Registered: 2008-12-09
Posts: 40
|
Thanks for the help guys
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2419 anonymous users online.
|
|
|