Solved

Batch file

Posted on 2004-10-06
4
227 Views
Last Modified: 2013-12-28
Hi Guys,

I use kixtart95 for as the logon script on my network. I was wondering whether it would be possible to attach a batch file to it that could be used to copy various dll's, pnl's etc to a designated folder on the PCs when they logon to the network?

Hope that makes sense.

Regards

Notorious.......
0
Comment
Question by:Notorious
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Expert Comment

by:GlenmoranUK
ID: 12246991
Yes it can..  

But it depends on what you need to do and whether what you want to do will require admin rights on the users machine.

To run a batch file in Kix use this command:

Run '%COMSPEC% /e:1024 /c "Path and name of batch file"'

Now heres the clever bit...  Say you needed to run this script and it needed admin rights but the users were just standard users..  What I did was create a specific NT account and made it a member of the domain admins group.  Now I call my batch program using this script:

SetTitle ("TITLEHERE")
Run '%COMSPEC% /e:1024 /c runas /user:[DOMAIN]\[USER] "Path and name of batch file"'
$trash= SetFocus ("Maxadm")
Sleep 3
$trash= SendKeys("kixtart{PASSWORD}")

I actually encrypt my script using kixcrypt (see www.kixtart.org) to prevent users from reading the password.

Hope this helps

G
0
 
LVL 1

Expert Comment

by:GlenmoranUK
ID: 12246997
Just noticed a mistake above..  

$trash=SetFocus("Maxadm")  should read:

$trash=SetFocus("TITLEHERE")

You need to set the title name and the set focus to be the same for the script to work..

Sorry

G
0
 

Author Comment

by:Notorious
ID: 12289280
Sorry guys,

Thanks for the above. However my script writing skills are limited. What would such a script look like?

Regards

Notorious..........
0
 
LVL 1

Accepted Solution

by:
GlenmoranUK earned 50 total points
ID: 12308878
Erm..   Like the above.

It depends what you want to do.  Have a look at www.kixtart.org for loads of sample scripts.

G
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question