/build/static/layout/Breadcrumb_cap_w.png

Simple question - Deploying VBS/BAT to label

It's been a few months since I've had to use the K1000 since we've been in full-out imaging/K2000 mode for a while. Now that I've been put in charge of most KBOX deployments, I want to know what you guys think the best way of deploying a VBS script to a set of machines is.

 

We just deployed 500 machines that were set to sysprep...and unfortunately, after sysprep the WOL "let this device wake machine" setting on the NIC is disabled. I have a VBS script that I would like to deploy to those machines the next time they check in. 

What is the best procedure for deploying a simple VBS or BAT file one time upon next check-in, then not do it again to that machine?


0 Comments   [ + ] Show comments

Answers (3)

Posted by: dugullett 12 years ago
Red Belt
2

This is what I would do, but with Kace there's always about 8 ways to accomplish your task.

Run an Offline Kscript.

Make sure to check mark "Enabled"

Select your new label under "Limit Deployment to Selected Labels". 

Select your OS.

Select your Schedule options. I would probably use "run at next client check in" in your case. I also usually set to run every 8 hours.

Dependecies:

(upload your vbsscript)

Verify:

(This step checks for a reg key, file, version number. Since I haven't seen your script I'm going to assume it's changing a reg key. If your script does not set anything obvious then have it create a reg key.)

Verify a registry Value is exactly...

Key: HKLM\Software\Kace

Name: Test
Equal To: 1

On Success

Log Message.... Reg key is already set.

Remediation

(This is the step that is taken if the verify step is not equal to in this case the reg key does not exist.

Launch a program...

Directory :$(KACE_SYS_DIR)

File: csript.exe

Parameters: $(KACE_DEPENDENCY_DIR)\script.vbs

 

On remediation Success

Log message ..... Script is successful.

On remediation Failure

Log message ..... Script has failed.

Once the reg key is set by your script then the next time the machine checks in it will verify that key is "whatever" and if it is it will just log a message, and not run again.

Posted by: jagadeish 12 years ago
Red Belt
1

You can add a RunOnce key in registry which will execute your vbscript only one time..

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce

Posted by: SMal.tmcc 12 years ago
Red Belt
1

They have answered this but for the future:

If you are all Dell machines, think about adding the CCTK to your pxe boot and your images.  That will allow you to make changes to the bios during imaging and when the OS is up and running.  Allows quick fixes when a oops happens, I had a tech leave a classroom booting nic 1st then hdd, I was able to do a push to the machines and change the boot order via CCTK commands.


Comments:
  • I have even added this to my academic post task in the k2000 to prevent it on new machines
    "c:\program files\dell\cctk\x86\cctk.exe" bootorder --sequence=hdd.1,hdd.2,embnic,usbdev,cdrom --valsetuppwd=************ - SMal.tmcc 12 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ