Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Power shell and batch files

$
0
0

Hi,

I don't know anything really about power shell but wanted to see if I could get some help.

I have a batch file that I created to remove and reinstall SCCM. Here is the code for the batch file.

cd\
cd windows\ccmsetup
ccmsetup.exe /uninstall
cmtrace.exe c:\windows\ccmsetup\logs\ccmsetup.log

xcopy \\servername\share c:\temp\sccm /s /I
cd\temp\sms
ccmsetup.exe smsmp=ohlewapp1125.nwie.net smssitecode=PRI fsp=ohlewapp1121.nwie.net
cmtrace.exe c:\windows\ccmsetup\logs\ccmsetup.log
cd\temp
rmdir /s /q sccm

 

The batch file runs great, but one thing we wanted to accomplish was the xcopy, if we can have it copy using bits so it will slow down if the network is impacted. Do you know of anyway to do that? Im not a programmer by any means.

Thanks all for any help you can provide.


Viewing all articles
Browse latest Browse all 6937

Trending Articles