BITS DSC Resource?

Welcome Forums DSC (Desired State Configuration) BITS DSC Resource?

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
4 years, 9 months ago.

  • Author
    Posts
  • #20437

    Participant
    Topics: 12
    Replies: 68
    Points: 9
    Rank: Member

    Does any one know of a DSC Resource that can copy files via BITS?

  • #20439

    Keymaster
    Topics: 13
    Replies: 4872
    Points: 1,843
    Helping HandTeam Member
    Rank: Community Hero

    I'm not aware of one, but you're welcome to jump in and write one ;). It shouldn't actually be too tough, and I know the guys who run our GitHub repo (on the DSC Hub tab here) would likely be willing to help out if you get stuck.

  • #20441

    Member
    Topics: 9
    Replies: 2322
    Points: 0
    Rank: Member

    Implementing that resource seems easy enough, but defining its use cases might be a bit tricky... should the DSC engine wait for the BITS transfer to complete before it returns from the Set-TargetResource? Or is it enough to kick off the asynchronous BITS job and allow the rest of the configuration to process? (Which would mean that the rest of the configuration cannot assume that the file transfer is done.) Most likely, both scenarios should be supported, with the behavior controlled by a parameter to the resource.

    If it's asynchronous, then the Test-TargetResource and/or Set-TargetResource functions would need to be smart enough to detect that a copy job for the file is already in progress, and not create a new one.

  • #20446

    Participant
    Topics: 12
    Replies: 68
    Points: 9
    Rank: Member

    I figured it would have to detect.

    My problem is I have an 8gig file I need to move. and when it's on a T1 instead of 10Gbps the file resource chokes.

The topic ‘BITS DSC Resource?’ is closed to new replies.