Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Software Delivery for Only Online Computers

Updated: 02 Jun 2010 | 8 comments
noodleNT's picture
0 0 Votes
Login to vote

I need to push out a batch file that cleans up an IE Favorites folder under the users profile and then runs GPUPDATE to pull the current IE favorites policy. Obviously I can only run GPUPDATE when the computer is connected to the corporate network. I tried using the Network Required and Speed thresh hold options but it only works for general network access, not confirmation of corporate access.

@ECHO Off

Echo Cleanup ACAS Web Tools

Set WebTools="%HOMEDRIVE%%HOMEPATH%\Favorites\ACAS Web Tools"

ECHO IE: %WebTools%

If Exist %WebTools% (
 ECHO Removing Web Tools
 RD /S /Q %WebTools%
)

ECHO n |GPUPDATE /force

Comments

Brandon's picture
25
Nov
2009
0 Votes 0
Login to vote

Can't you use the option to

Can't you use the option to "run as soon as computer is notified" in addition to the "network required"? If the machine is online to get the policy then it's online.

noodleNT's picture
25
Nov
2009
0 Votes 0
Login to vote

you could... but if you want

you could... but if you want to schedule it to run at a set time it will cause an issue.

I figured out another way to write the script so it doesn't have to run in the user session. I then scheduled it with DS. So I found a work around, however, it would be good to know however.

New Script if you are interested:

@ECHO OFF
ECHO Clean Up ACAS Web Tools

cd c:\
for /f "Tokens=*" %%a in ('dir /S /B "ACAS Web Tools"') do (
 ECHO Deleting %%a
 RD /S /Q "%%a"
)

Echo Run GPUPDATE
ECHO n |GPUPDATE /force

 

Brandon's picture
25
Nov
2009
0 Votes 0
Login to vote

To run it at a set time then

To run it at a set time then use the 'only run at scheduled time' option in addition to the network speed option.

ludovic_ferre's picture
25
Nov
2009
1 Vote +1
Login to vote

 What about the option to

 What about the option to Run from the Server (in Software Delivery Task > Advanced tab as illustrated below) ?

SWDTask_RunFromServer.png

Ludovic FERRÉ
Principal Remote Product Specialist
Symantec 

1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect

noodleNT's picture
25
Nov
2009
0 Votes 0
Login to vote

Maybe... not great if the

Maybe... not great if the package is large though.

Could write a batch file to ping a server first.

 ping -w 1000 %MACHINE% |findstr /r /c:"Reply from" 1>NUL 2>NUL
 if errorlevel 1 goto Offline
 if errorlevel 0 goto Online
 

ludovic_ferre's picture
25
Nov
2009
1 Vote +1
Login to vote

The ping option looks

The ping option looks good.

And I agree that running from the server is not necessary the best option but it has the merits of being there ;).

I have seen customers staging package in multiple step for very large roll-out.

One week to deliver the binaries throught-out the site and subnet hierarchy and a week-end to run the task in groups.

Ludovic FERRÉ
Principal Remote Product Specialist
Symantec 

1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect

KSchroeder's picture
01
Dec
2009
0 Votes 0
Login to vote

Layin' the bits down!

We did that with a few large packages or ones we wanted to ensure ran ASAP at the scheduled time...we called it "Laying the Bits down" by assigning a SWD task set to Manual execution with the user notification disabled, then a secondary Task with a schedule that was applied at some later date.

Thanks,
Kyle
Symantec Trusted Advisor

For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.

KSchroeder's picture
01
Dec
2009
0 Votes 0
Login to vote

Hmm, what about configuring the Program

I was reasonably certain that the checkbox/dropdown on the Programs tab of the package checked for transfer speed to the package source, either a package server or more likely the Notification Server itself.  Of course if your NS is accessible over the internet (in the DMZ) then that is harder to account for a connection to the actual corp. network.

The issue with "Run from server" with a batch file is that you may run into problems with the current directory being a UNC patch to your package server or NS, which usually throws an error message and fails the batch.

Thanks,
Kyle
Symantec Trusted Advisor

For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.