Re: VBScript package



What I put in the Program definition was:

CSCript.exe ClearCache.vbs

When the script executes on the clients the 10005 messages shows the
following:

Command line: "C:\WINNT\system32\cscript.exe" ClearCache.vbs
Working directory: C:\WINNT\system32\CCM\Cache\<Package Dir>\
User context: NT AUTHORITY\SYSTEM

I have run the program under the system Account manually and it works
correctly so I know the syntax of the script is correct but when it
runs unattended it nothing appears to run. I do however get a
successfully completed status message.

ISokkar wrote:
What is the command line you wrote in SMS Program ?

ISokkar

"TimInJax@xxxxxxxxx" wrote:

I have been using some frequently used vbscript to clear the cache of
our advanced clients:

on error resume next
dim oUIResManager
dim oCache
set oUIResManager = createobject("UIResource.UIResourceMgr")
if oUIResManager is nothing then
wscript.echo "Couldn't create Resource Manager - quitting"
end if
set oCache=oUIResManager.GetCacheInfo()
if oCache is nothing then
set oUIResManager=nothing
wscript.echo "Couldn't get cache info - quitting"
end if
wscript.echo "Cache Location: " & oCache.Location
set oUIResManager=nothing
set oCache=nothing

I created a package with the script and deployed it to a collection of
my clients, the advertisement is successfully run but the cache is
never deleted. Running the same command that is posted to the 10005
status message manually removes everything from the cache. Currently I
have the package set to run "Whether or not a user is logged on". Is
there a special consideration that I need to take into account for
vbscripts to run?



.



Relevant Pages

  • Re: slow logon
    ... in the logon time have been reduced so far. ... update the time for the clients that talk to the dc as the logon server. ... start up script in AD to apply updates to the clients machines which is ...
    (microsoft.public.windows.server.active_directory)
  • Re: slow logon
    ... that i tell the software not to restart the services when new virus updates ... update the time for the clients that talk to the dc as the logon server. ... > We have a Start up script and a login script for users as well as> folder ...
    (microsoft.public.windows.server.active_directory)
  • Re: slow logon
    ... DNS is AD integrated and we have dhcp servers ... All clients are XP pro sp2. ... Not everyday is updates applied ... Make sure that the script detects if that update already has been made, ...
    (microsoft.public.windows.server.active_directory)
  • slow logon
    ... All clients are XP pro sp2. ... We have a Start up script and a login script for users as well as folder ... start up script in AD to apply updates to the clients machines which is ... The client powers on the pc and within 1 minute he or she sees the logon ...
    (microsoft.public.windows.server.active_directory)
  • Re: Error using LDAP query
    ... If your clients are XP, they have the ADSystemInfo object, so don't worry ... Most likely all of your users have "Domain Users" as their ... member of at least 2 other groups, ... Your script runs without error for me when I am logged into a ...
    (microsoft.public.windows.server.scripting)