Search found 161 matches

by owinsloe
Fri Oct 06, 2023 5:29 pm
Forum: PowerShell Studio
Topic: Pasting source into ps1 files generating errors when run
Replies: 8
Views: 2081

Re: Pasting source into ps1 files generating errors when run

Hey Brittney, Yes, that's exactly what the issue was but how on earth would so many of my files all have their encoding incorrectly set? That status-bar setting is not something I would have inadvertently clicked on for several files (kinda unlikely even doing it on one without noticing). Could the ...
by owinsloe
Fri Oct 06, 2023 4:18 pm
Forum: PowerShell Studio
Topic: Pasting source into ps1 files generating errors when run
Replies: 8
Views: 2081

Re: Pasting source into ps1 files generating errors when run

I have attached an example of what I have been referencing. It runs fine from the PSS editor but errors when running under powershell shell cmd. I have a lot of scripts now doing the same things so need some way to rectify
by owinsloe
Fri Oct 06, 2023 4:12 pm
Forum: PowerShell Studio
Topic: Pasting source into ps1 files generating errors when run
Replies: 8
Views: 2081

Re: Pasting source into ps1 files generating errors when run

I have tried three variations to copy. Select all text in the IDE copy then paste Used the export to clipboard under Deploy tab and paste Opened the actual ps1 file in notepad and selected all text, copy and paste All three give the same results and this appeared to only have started over the last f...
by owinsloe
Thu Oct 05, 2023 8:13 pm
Forum: PowerShell Studio
Topic: Pasting source into ps1 files generating errors when run
Replies: 8
Views: 2081

Re: Pasting source into ps1 files generating errors when run

I should mention that I also tried the [export to clipboard] button but same problem, appears to be stuff thats embedded into the source and I dont really have a good way to clean my hundred of source files.
by owinsloe
Thu Oct 05, 2023 7:59 pm
Forum: PowerShell Studio
Topic: Pasting source into ps1 files generating errors when run
Replies: 8
Views: 2081

Pasting source into ps1 files generating errors when run

Product: PowerShell Studio 2023 (64 Bit) Build: v5.8.232 OS: Windows 11.0.22621 PS Version(s): 5.1.22621.1, 7.2.14 Prior packaging code, I often grab the ps1 content and paste it into a test.ps1 file on a variety of servers to make sure everything is fine prior packaging. Recently, something has cha...
by owinsloe
Wed Sep 27, 2023 12:10 pm
Forum: PowerShell Studio
Topic: Losing Packager Settings
Replies: 4
Views: 1070

Re: Losing Packager Settings

Actually, I have just answered my own question (took a look at the file).
Disregard previous post and apologies for being a time waster :(
by owinsloe
Wed Sep 27, 2023 12:08 pm
Forum: PowerShell Studio
Topic: Losing Packager Settings
Replies: 4
Views: 1070

Re: Losing Packager Settings

Build is in PSS and not sure about the .psbuild file.

Can you please confirm....is the psbuild file a config file that stores the detail from the package properties?

If so, I'll ensure that I dont have any process that cleans these up as this may be where I'm having issues.
by owinsloe
Tue Sep 26, 2023 7:34 pm
Forum: PowerShell Studio
Topic: Losing Packager Settings
Replies: 4
Views: 1070

Re: Losing Packager Settings

Whoops, I forgot to mention that I also lost icon file details
by owinsloe
Tue Sep 26, 2023 7:28 pm
Forum: PowerShell Studio
Topic: Losing Packager Settings
Replies: 4
Views: 1070

Losing Packager Settings

Product: PowerShell Studio 2023 (64 Bit) Build: v5.8.231 OS: Windows 11.0.22621 PS Version(s): 5.1.22621.1, 7.2.13 I have finally got around to posting about this issue which has been occurring through many earlier PSS builds including this one. I can not reproduce and not sure what causes this but ...
by owinsloe
Sun Aug 13, 2023 5:16 pm
Forum: PowerShell
Topic: Trying to extract Registry Name, Data, Type
Replies: 3
Views: 2230

Re: Trying to extract Registry Name, Data, Type

Your results are correct. reg_sz is a fixed length text string. A google on windows registry data types will explain this for you.
eg. https://learn.microsoft.com/en-us/windo ... /hkey-type