Product: PowerShell Universal
Version: 2.6.2
So I ran into a strange issue this morning after reconfiguring my Default Script repo for Universal. The first issue I noticed is that the UI is presenting a completely different Directory than what is in the Default Folder I have specified in the settings. It’s displaying the whole UA Repository folder instead of the Folder I created to house scripts.
Also it seems that using extended folder paths for the scripts no longer works in the scripts.ps1 folder.
i.e., New-PSUScript -Name "Script1.ps1 -Path "\Logging\AuthAuditing\Script1.ps1"
Instead I’m having to use the full folder path in the script declaration.
Providing the whole folder path in scripts.ps1 is the only way I’ve been able to get my scripts to actually show up in the UI and they are only listed under the File List
option as the Folder List
option provides no scripts at all. With this method they are no longer usable via their name either only the file path.
Anyone else seen this? Did I stumble across a bug or did I do something completely wrong in the process of setting up the new folder?
EDIT:
Forgot to include what I’ve tried.
I tried to hard reset the configuration already using this below method.
Invoke-RestMethod http://myserver/api/v1/configuration -Method POST -Headers @{ Authorization = "Bearer adminAppToken" }
I’ve reset them using VsCode as well.
I’ve restarted the server entire and all IIS services.
Cleared Web Browser Cache data.
No Change from any of these so far nothing seems to be updating the UI or the configuration.