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!