myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Bat File deployment in SCCM

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Bat File deployment in SCCM Page: [1]
Login
Message << Older Topic   Newer Topic >>
Bat File deployment in SCCM - 9/9/2008 12:10:24 PM   
ghernandez211

 

Posts: 24
Score: 0
Joined: 5/15/2008
Status: offline
Is it possible to deploy a bat.file as an advertisement within sccm. I have a bat file that I created that does a couple of things on the computer which needs to be ran on clients. Now I can deploy this using the login script but I dont want to risk the fact that users may login to certain computers that I dont want this running on. Or can I deploy a vbscript. Currenlty I created the packagae and the Advertisement and in the command line parameters I point it to the bat file, I dont think this is correct though, 
Post #: 1
RE: Bat File deployment in SCCM - 9/9/2008 12:11:29 PM   
mreavis


Posts: 780
Score: 77
Joined: 9/10/2002
From: Olathe, Kansas
Status: offline
need to rename it to a CMD instead of BAT.

_____________________________

Michael Reavis
SMS Admin
MCSE, MCDBA, MCDST
Johnson County Goverment

(in reply to ghernandez211)
Post #: 2
RE: Bat File deployment in SCCM - 9/9/2008 12:23:33 PM   
ghernandez211

 

Posts: 24
Score: 0
Joined: 5/15/2008
Status: offline
Sweet , I will try that right away and post back.

(in reply to mreavis)
Post #: 3
RE: Bat File deployment in SCCM - 9/9/2008 12:52:01 PM   
gjones


Posts: 824
Score: 50
Joined: 6/5/2001
From: Ottawa, Ontario, Canada
Status: offline
Batch File will deploy with ConfigMgr or SMS. The only issue is that you must create your batch file correctly.
 
For example, if you try to copy a file DONT do this.
Copy \\Servername\Sharename\Filename.EXT  C:\...
 
Instead
Copy Filename.Ext C:\...
 
There are other issue that you have to watch out for too. Basically you need to remember that ConfigMGr use the local system account and therefore has limited access to anything no on the PC.


_____________________________

Garth@enhansoft.com

For a List of my Articles
http://www.myitforum.com/contrib/default.asp?cid=116
Blogs:
http://smsug.ca/blogs/garth_jones/default.aspx
http://myitforum.com/cs2/blogs/gjones/default.aspx


(in reply to ghernandez211)
Post #: 4
RE: Bat File deployment in SCCM - 9/9/2008 7:25:50 PM  2 votes
asalazar

 

Posts: 161
Score: -12
Joined: 8/10/2001
Status: offline
I have this in the Powe On...

F NOT EXIST C:\WINDOWS\system32\ccmsetup\{35BE0386-E1B9-4F59-8DBD-E5B390AA8A09}\client.msi \\...\ccmsetup.exe /noservice SMSSITECODE=xxx

or

.....\ccmclean.exe /all /q
.....\ccmsetup.exe /noservice SMSSITECODE=xxx
....\ReinstallCert.bat
NET STOP "SMS Agent Host"
NET START "SMS Agent Host"

And the SCCM Template for AD

< Message edited by asalazar -- 9/9/2008 7:26:24 PM >

(in reply to gjones)
Post #: 5
RE: Bat File deployment in SCCM - 9/10/2008 1:30:18 AM   
palle

 

Posts: 27
Score: 0
Joined: 8/29/2007
Status: offline
http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/15/121348.aspx

(in reply to asalazar)
Post #: 6
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Bat File deployment in SCCM Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.221