Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Text File

Status
Not open for further replies.

rhnewfie

Programmer
Jun 14, 2001
267
CA
Is there a way that I can use SMS to simply copy a text file from the server to the client once per day? Do I have to go through the package creation for this?
 
I think you will have to create a package for this.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
I have tried doing this but it doesn't seem to be working. There are a couple of parameters that I am not sure about

Command Line
Start in Folder (or something similar)
 
What are you using to create the package? SMS Installer, Wise, etc?

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
I am just creating a new package through the console so I would assume that this is the SMS installer.
 
The SMS Installer looks like this (There are some screen shots in this link)


You can create a very basic package using the SMS Installer to copy the file. I use WISE, but the two products are very similar. The SMS Installer can be used to create an EXE file. This EXE file can then be used by SMS to be used for distribution. The EXE can be configured to contain the file that you want to distribute. You can also use the SMS Installer to check and verify that the file copied exists and even get version information. You'll have to practice a with the installer but it is pretty simple.



Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
How can you verify that a target machine has picked up the advertised package?
 
In the SMS Console, go to reports. Run the "All Advertisements" report.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
What usually causes this :)

An error occurred while preparing to run the program for advertisement "***20001" ("***00003" - "****"). The operating system reported error -2147024894: The system cannot find the file specified. Additional program properties: Command line: *******.EXE Working directory: C:\ Drive letter (? = any): Possible cause: This message most commonly occurs when the program’s command-line executable file could not be found, when a required drive letter connection to a distribution point could not be established, or when the program is configured to use the SMS Software Installation Account but the account is not specified, could not be found, or does not have the appropriate permissions. Solution: Check each of the items listed above.
 
Did you push the package to any distribution points? The problem is that when the package started the client couldn't find the filename.exe file.

Here are some possible causes:

Possible cause: This message most commonly occurs when the program’s command-line executable file could not be found, when a required drive letter connection to a distribution point could not be established, or when the program is configured to use the SMS Software Installation Account but the account is not specified, could not be found, or does not have the appropriate permissions. Solution: Check each of the items listed above.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
The distribution point has been assigned and updated with the latested version of the package.

What is the best way to determine if a drive letter connection is available?

Should I be using the SMS Software Installation account? Where is that set, the account is set up that is.
 
If the workstation is configured to download the software install shouldn't I see it in the CCM\Cache dir once the client has received the package?
 
Hmmmmmmmmm, I have yet to be able to catch it in there at all. Will it remain there after the install attempt or get deleted? What would cause it to NOT show up there?

Thanks again!!
 
It will remain. I would check the report for the advertisement:

In the SMS Console, go to reports. Run the "All Advertisements" report.



Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
I have looked at that and that is where I get the error message that I posted above. It also lists Failed (bad environment)

Should the folder on my SMS server where the package is stored be shared to that machine admin account or anything like that?

This is killing me!
 
Here is the error from the StatusAgent.log file

<![LOG[Raising event (#1 of 1):
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramBadEnvironmentEvent
{
AdvertisementId = "ADM20001";
ClientID = "GUID:C2DBF323-6566-4874-AAF3-C376AE398147";
CommandLine = "ProgInstall.EXE";
DateTime = "20050602130156.735000+000";
DriveLetter = "";
MachineName = "*****";
PackageName = "ADM00003";
ProcessID = 1444;
ProgramName = "Program Install";
SiteCode = "ADM";
ThreadID = 1580;
Win32ErrorCode = 2147942402;
WorkingDirectory = "C:\\";
};
]LOG]!><time="08:01:56.755+300" date="06-02-2005" component="StatusAgent" context="" type="1" thread="1580" file="eventprovider.cpp:201">
 
This is either a problem with the package itself (did you try to run this outside of SMS to see what happens? does the program work?) or a problem with the distribution point.

I would guess maybe the distribution point isn't updated. Every time you make a change to the package, you should also update your distribution points. (Right click distribution point and choose update).

Take a look at this link, it shows the troubleshooting process you should go through to diagnose this problem:


-late

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
I will have a look at that link

Yes, I have run my package alone on the workstation and on the server and it works properly on both locations.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top