keyongtech


  keyongtech > sms.* > sms.swdist > 08/2006

 #1  
08-01-06, 04:16 PM
Lepi
Hi,

I wrote a little bat script that changes names of some folders on
client, and copies some files from shared network folder to local disk.
Script works if I start it from command line, but if I try to distribute
it with SMS, it fails, I get error code 1 (or 4), and cannot find out
where the error is?

Can someone help me?

Thanks

Tom
 #2  
08-02-06, 09:32 AM
Lepi
I found out that it won't copy files. I redirected output to a file and
it states 0 files copied. I've used xcopy.

Ideas anyone??


Lepi wrote:
[..]
 #3  
08-02-06, 09:50 AM
Lepi
One more thing. I tried with simple copy command and it returned access
denied. What is the user that is used in this case???

Thanks

Lepi wrote:
[..]
 #4  
08-02-06, 01:03 PM
BerkHolz, Steven
The local machine account.

I have had success with adding "Domain Computers" to our software share's file and share security.
This lets Computers mount the share.

I have also used http://www.joeware.net/win/free/tools/cpau.htm which does like a runas, but encrypts the password in a binary file.
The script runs as a specified user and is able to mount the shares. (like old SMS did)



--
 #5  
08-07-06, 12:43 PM
Hans Pierre
Did you enable the requires drive letter, on the program's environment tab ?


kind regards,


Hans

"BerkHolz, Steven" wrote:
[..]
 #6  
08-08-06, 05:00 PM
DJ Washington dTechnology Partners, inc.
I belive you need to map the drive prior to the UNC share path commnad
execution. I do not think you can use \\ to execute the command within
the advertisment regardless of the account.
DJ
Lepi wrote:
[..]
Similar Threads
Distribution of Registry key script

Hello, I am interested in a solution for distributing a registry key to my vista users that disables IPV6. My scripting knowledge is limited and so I was wondering if anyone...

Get the Distribution point name using VB script

Hi All When running an SMS advertisement the SMS 2003 Advanced client will contact it's Mangement Point and through that get the name of the distribution point. My question...

Distribution List Warning script?

Hi There, In our company we often engage contractors to work on various projects and add their email address to Active Directory as a contact. Our users can then find the...

vba script: add contact + distribution list

I've set up a rule so that when a certain subject is received then a message pops up and that email is copied to a certain folder - simple enough and no mystery how to do...

SMS Script, software distribution

I'm using SMS 2.0 to push out Adobe Acrobat Reader 6.0 to about 650 workstations. What I would very much like to do is to write a script that I can add to the SMS package...


All times are GMT. The time now is 02:53 PM. | Privacy Policy