PowerShell DSC - Unable To Access a Share using Script Resource

fja 1 Reputation point
2020-07-30T15:44:00.643+00:00

Hi,

I am looking to set up a DSC Script to download some files from a network share and unzip them to a location on the remote node.

I cannot get the script to work, I have granted the correct permissions to the share, the receiving node has Full Control to the share, here is my script

Configuration ScriptTest
{
    Import-DscResource -ModuleName 'PSDesiredStateConfiguration'

    Node Node1
    {
        Script ScriptExample

        {
            SetScript = {Expand-Archive -Path \\node0\reposhare\example.zip -DestinationPath c:\repos -Verbose}

            TestScript = { Do Nothing }
            GetScript = { Do Nothing }
        }
    }
}

ScriptTest -OutputPath C:\DSC

Start-DscConfiguration -Path C:\DSC -Verbose

I am running this from Node0 (control node as-well as where the share lies).

So basically, i want to run this script which then pulls the files across to the local machine and i cannot get it working!

Help please!

Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
421 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2020-08-03T08:05:44.243+00:00

    Accroding to this question, we are still looking for useful information and will recover you as soon as possible.
    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    0 comments No comments