PowerShell / PowerShell/DSC

Doc update - Unblock-File for .zip DSC releases

Open
#539 1 comment 0 reactions 1 assignee View on GitHub

@michaeltlombardi is already working on this.

Since Sep 6, 2024.

Doc-Impact Issue-Bug Need-Review
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.