Page 3 of 3 <123
Topic Options
#171953 - 2006-12-23 01:46 AM Re: @error handling? and redirection to a text file (append) [Re: NTDOC]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
working on mcse not yet
what do you mean NTDOC explain
the the schedular cant be run without admin rights
and the permissions on the folders have to be there or else it wont run
explain what you mean..

it just.
copies at night to each pc the setup.exe file
then it runs the file with admin rights only
then it sets permission with those folders only
then shuts off.

NTDOC explain where i am fuk$$ up
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#171954 - 2006-12-23 01:50 AM Re: @error handling? and redirection to a text file (append) [Re: NTDOC]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
Quote:
oy your users could have FULL admin rights in no time with that method.

Just add a few commands of their own to the file. Boot from a Windows PE and take rights to that folder if needed. Then add or remove stuff as they see fit without you ever being the wiser.


CD boots disabled! on all workstations! in bios!
2nd please explain where the commands they will run if i have RUN disable
in policy!
dont slam me too much; i am not that dumb! hee hee
but explain NTDOC where they will run the commands from if i have CD diabled form boot
and (though you can use BartPE from boot up windows!
the job scheduler is admin rights the machine is not.
run is removed CD boot is disable as well as USB disabled in bios

so explain where i may have said something wrong

WIP: MCSE buut i do not see my security breach explain big guy!
oh yeah i have the cacls file deleted when done and the setup.exe deleted
when done


Edited by itdaddy (2006-12-23 01:52 AM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#171955 - 2006-12-23 01:54 AM Re: @error handling? and redirection to a text file (append) [Re: NTDOC]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
NTDOC
if you have great msi builder let me know i would rather
use my GPO (mcse skills) to assign my install to computer vs my
scripting but work is cheap! trying to make it easy and secure.
but please explain in detail where you see i am screwing up
GPO is the preferred but with out software you have to modify it.


Edited by itdaddy (2006-12-23 01:55 AM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#171956 - 2006-12-23 02:01 AM Re: @error handling? and redirection to a text file (append) [Re: itdaddy]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
The issue is that you should not have a file that contains commands that will run with elevated Privileges residing on the local box (imho)

It is quite simple to run the BIOS and change (unless you have also password protected the BIOS, but that too could be problematic for you as an Admin when you or other support personnel need to work on it). You can also boot from USB devices now days as well.

Bottom line is that when ever possible it is better to keep as much as possible off of the local box that contains control features.
Use GPO when and where possible, you can force GPO refresh as well if needed.

Or at the very least keep the control file on a server where you have control of it at all times.

Top
#171957 - 2006-12-23 02:11 AM Re: @error handling? and redirection to a text file (append) [Re: NTDOC]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
Quote:
The issue is that you should not have a file that contains commands that will run with elevated Privileges residing on the local box (imho)


NTDOC
i see what you mean but we run Defrag with admin rights cause you have to.
but when the job is done i make sure it deletes them. when the copy takes place from the server it copies setup.exe and cacls1.bat program to local pc and runs with admin rights at night time when all are gone.

i am aware of programs that can run on local machines and do things to Active Directory as well. i have seen them...but in this case i am still looking for a MSI package which would prefer and yes, the Self healing technology i like as well. i dont want to use zap files and publish them; it needs to be done at night so all is ready in the morning. so i am still looking for the gpo way. nice that big MS$$ didnt make and MSI installer to package stuff up and to allow addes switches. But i think even MCSEs have to sort of jerry rigs stuff; but since my files are delete when done off of each pc and the job will be disabled; i feel okay; but like i said i am looking for the gPO way cause it is slick and self healing is great.
this software package we have is cheesy! but my scripting works.
the only thing is the install via job schedular with admin rights while
all are gone home. and then deletes self. and disble job !
so doing my best; i have talked with cert mcse and they even say theyhave had to do stuff like that! but echo what i do try to get msi.
amem to that!

Merry christmas guys!
hey NTDOC next time before you slam me; be easy! big guy!
WIP means work in progress and get all the facts i have done my homework
and disable many things in bios and password out with our admin pass word
for our admins on each pc so i am working it!

have agood one dude!

Robert(itdaddy)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#171958 - 2006-12-23 02:20 AM Re: @error handling? and redirection to a text file (append) [Re: itdaddy]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
LOL - No problem. Didn't mean it as a slam.

Merry Christmas guy.

Top
#171959 - 2006-12-23 02:42 AM Re: @error handling? and redirection to a text file (append) [Re: NTDOC]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
thanks NTDOC

hahaa might be my precious IT ego! ahahhaha
i really try hard to do things right; i am pissed that MS$$ doesn't have a nice MSI tool to create custom MSI packages? do they? i haven't seen one.
and it is nice that 3rd party vendors get to make some money making them
but they get pricey when you want a good one that is well supported.
and well i try to use what we got on hand. but i will keep looking.
i am going to talk with our financial vendor they should make us their own msi when we get it from them but they are cheesy i think! it is on a windows platform you would think they would be able to do that!
hey this forum has a spell checker; better use it huh cool!
very cool! if i find a cool msi packager i will send it to this forum!
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#171960 - 2006-12-23 03:00 AM Re: @error handling? and redirection to a text file (append) [Re: itdaddy]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well can't vouch for any of them but here are some links maybe you'll find useful.

Advanced Installer 4.6.2
http://www.advancedinstaller.com/

Auto Installer 1.3
http://www.digitalliquid.com/dldata/soft.html

Installer2GO
http://dev4pc.com/installer2go_download.html

INF Generator
http://www.inner-smile.com/dl_inf.htm

Windows 2000 Resource Kit Tool : Installation Monitor
http://www.microsoft.com/downloads/detai...&displaylang=en

NSIS (Nullsoft Scriptable Install System)
http://nsis.sourceforge.net/Main_Page

RedShift - Installation System
http://www.stormdance.net/software/redshift%20freestyle/download.htm


.

Top
#171966 - 2006-12-23 06:34 PM Re: @error handling? and redirection to a text file (append) [Re: NTDOC]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
thanks NTDOC
will look into them
now let us go and celebrate christmas!

haahha
or should i say hooooohooohooooo
my son coming from california; we are going snowboarding! yeah!
freaking going to break my legs! oucch
see you guys next week!
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#171998 - 2006-12-25 12:42 AM Re: @error handling? and redirection to a text file (append) [Re: Glenn Barnas]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
Hey Glenn

can you point me to your tcLib functions? and how to set it up on one of my servers. so let me get this straight if i read you right? or am i dreaming.

i can say put the script engines on that say server in choice,
then i can (after setting up a certain task on each PC in my domain)
basically invoke all PCs task in paticular with just say a script running from a server say for example. One click, turns on all the schedules to run? and i can turn them off with the same script?
if that were true point me in the right direction genius!
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#172010 - 2006-12-25 05:47 PM Re: @error handling? and redirection to a text file (append) [Re: itdaddy]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Just search the UDF Forum for scheduler related UDFs, there's Glenn's tclib UDF and my ScheduleTask UDF.
_________________________
There are two types of vessels, submarines and targets.

Top
#172011 - 2006-12-25 05:55 PM Re: @error handling? and redirection to a text file (append) [Re: Sealeopard]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
or just follow the link in Glenn's sig to http://www.innotechcg.com/
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#172021 - 2006-12-26 02:25 AM Re: @error handling? and redirection to a text file (append) [Re: Les]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
SeaLeopard and Les
thanks will do!
merry christmas funny us techies still look at these forums
while the rest enjoy turkey and ham and cookies;
we are surfing the web! and our tech forums; true nerds we are!
ahahhaha

thanks guys!
will tell you how it turns out!
wow! wow! wow ~i just look at his stuff; wow if i can pull this off
i can work my magic; and have this install work freaking sweet
will show what i did when i get this perfect and post code here. when done to; but i think it is going to be great!
yeahhh! if i can get it to work!


Edited by itdaddy (2006-12-26 02:58 AM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#172034 - 2006-12-26 06:00 PM tcLib Help [Re: itdaddy]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
Hey guys (Glenn)
I want to use your tcLib functions.
I want do this.
I have this script that copies a new setup.exe, first.bat, second.bat files to the root of c: on each PC in our domain. Then I want to create and execute a task to run the first.bat which executes setup.exe with an /s switch and then runs the second.bat file(on each PC).

How do I setup credentials for these functions, and the path to the first.bat program for this task to run with?

I am confused. I tried to add the tcInit() in a kix file and run it with say kix32 test1.kix command line and it didn't know what the tcInit() was.
I have in the running folder JT.exe and the tcLib.kxf.
What am I doing wrong does anyone have an example of how and where to place what in what file?
itdummy!
ps. i guess what i might be saying is where do i include the tcLib.kxf
and tcInit(). do i include it in my kix file and if so how ??????
==========================================================
what i want to do:
something like this (my pseudo code)
so how do include the lib tclib() and do i set it to (1)?
my thinking it goes into a kix file *.kix something but how?

foreach $Element
tcDefineTask()
tcExecute()
next
sleep 60 minutes
foreach $Element
tcTerminate()
next





Edited by itdaddy (2006-12-26 06:37 PM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#172036 - 2006-12-26 08:11 PM Re: tcLib Help [Re: itdaddy]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
1. READ the document in the DOCS folder from the ZIP you downloaded - it has a lot of examples, including a step-by-step process for defining, deleting, and changing a task event.

2. Make sure you place JT.EXE into the \Windows folder, or some other folder that is in your PATH. It will NOT WORK otherwise, unless you modify the tcInit() udf, as shown below.
Code:
    ; Define the path to the JE.EXE command. This should be simply 'jt.exe'
    ; if JT.EXE is in the system PATH.
    $tcJTEXE = 'jt.exe'

3. Like any other UDF, you need to place it into your script, either directly or via call or include statements.

If you simply want to interactvely run a task using alternate credentials, look for the runnas.exe tool, which works like RunAs, but accepts the password on the command line.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#172055 - 2006-12-26 11:30 PM Re: tcLib Help [Re: Glenn Barnas]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
Code:
INCLUDE tcLib.kxf

tcLib()
tcExecute("flend1","fspinstall")


Glenn
be patient with me I am a bit rusty!
above is an already existing scheduled task on the workstation in our domain.I was just testing a basic script to get it running to see if i have
my setup correct. can you guide me a little on my terrible code?

okay above i have a file called test.kix
and i have kix32.exe and its driver in C:\windows and the jt.exe in C:\windows so it is in the path and can be accessed universally. I get that.
but how do you include the kxf file for me to use the tcLib() functions.
I am a bit rusty on this: once i get it included correctly and i already have the jt and kix engines in place. I just need to include the kxf library to use the functions in my kix doc correct? and just follow your examples in your KIX tcLib document; i see them.

robert(itdummy)


Edited by itdaddy (2006-12-26 11:58 PM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
#172063 - 2006-12-27 12:22 AM Re: tcLib Help [Re: itdaddy]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Please see the FAQ on how to use UDFs. Also, strat with re-creating some of Glenn's samples before you move on to coding your own scripts, this will help you understand how to use tcLib. and for smaller tasks you can always use the ScheduleTask UDF, which also schedules tasks but doesn't have all the bells and whistles that glenn offers. Then again, sometimes, simple is sufficient.
_________________________
There are two types of vessels, submarines and targets.

Top
#172065 - 2006-12-27 12:59 AM Re: tcLib Help [Re: Sealeopard]
itdaddy Offline
Starting to like KiXtart

Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
sealeopard,


awwwaaa I see thanks! sorry guys for reinventing the wheel!
oops my bad! newby!!!!!!!!!!!!!
thanks a bunch
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin

Top
Page 3 of 3 <123


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

Who's Online
0 registered and 255 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.074 seconds in which 0.026 seconds were spent on a total of 15 queries. Zlib compression enabled.

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