Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»VB Script to move the Files

    VB Script to move the Files

    Eswar KonetiBy Eswar KonetiSeptember 12, 7:27 am1 Min Read SCCM 2007 131 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Here is simple script that helps to move the required files to different Drive.

    I use this script frequently to move the PCK files(only the required PCK files from a near site) from one to other folder after building my site sever before I run my Preload Tool for all the packages at one go. You can do cut and paste the files what are needed but only selected pck file will be preloaded .

    dim objfso
    Set objfso = CreateObject ("Scripting.FileSystemObject")

    Set ReadFile = objfso.OpenTextFile ("F:\PCKFiles\all-files.txt", 1)

    Do While Not computerList.AtEndOfStream
    FileName = Readfile.ReadLine
    SourceFile="D:\SCCM\\" & FileName
    DestinationFile="F:\SMSPKG\"

    objfso.MoveFile SourceFile, DestinationFile

    Loop

    Move files PCK files moving Script Script to move files VB Script
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Application Deployment with Hybrid Joined Requirement Rules in Intune

    October 06, 8:59 pm

    Troubleshooting Windows KMS Activation Issues with SCCM scripts feature

    September 09, 11:07 pm

    Migrating Windows Update Workloads from SCCM to Intune: How to Verify Management Tool

    August 23, 9:55 pm

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.