Issue with oneWay Git Sync

avatar
(anonymous user)

Hi all,

I’m setting up PowerShell Universal with OneWay Git Sync (Bitbucket Server / Data Center) and I wanted to clarify expected behaviour around script registration.

Current understanding

From what I can see:

  • Git sync pulls all files into the PSU instance
  • But scripts only appear in the UI if they are explicitly registered in scripts.ps1
  • New .ps1 files added in Git do not automatically get registered as PSU scripts

Question

Is this correct, or is there any hidden behaviour where:

  • scripts.ps1 is auto-generated or auto-populated in OneWay mode?
  • PSU can optionally scan a folder and auto-register scripts without manual entries?

Version 4.3.2

All Comments (1)

avatar

This is correct. You will need to manually edit scripts.ps1 to add new scripts. There is a way for PSU to "import" scripts into the scripts.ps1 in the admin console but that isn't available if a node is in One-Way mode since the admin console is read only. We have an open item in our backlog to implement "auto import" that would just discover PS1 files and include them in the UI, even if they aren't part of scripts.ps1, but that is currently not the case with 2026.1.

Adam Driscoll
PowerShell Expert and Developer at Devolutions