DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Doc update - Unblock-File for .zip DSC releases

Open anmenaga opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

Summary

Started noticing this on GE builds (e.g. Windows Server 2025). If a DSCv3 release was downloaded as a zip file (e.g. DSC-3.0.0-preview.9-x86_64-pc-windows-msvc.zip), then PS scripts in PSAdapter will be marked as downloaded from web and will not be executed by PowerShell by default, resulting in DSC errors like AuthorizationManager check failed.

In such cases Unblock-File needs to be run on PSAdapter files to make them runnable. Example: Get-ChildItem -Recurse -File -Path <dsc_folder>\psDscAdapter | Unblock-File

DSC docs need to be updated to include this guidance.

Steps to reproduce

NA

Expected behavior

NA

Actual behavior

NA

Error details

No response

Environment data

NA

Version

v1

Visuals

No response

anmenaga avatar Sep 06 '24 18:09 anmenaga