Search found 8178 matches

by Alexander Riedel
Wed Feb 01, 2023 1:53 am
Forum: Customer Service
Topic: Getting "A referral was returned from the server" msg
Replies: 1
Views: 159

Re: Getting "A referral was returned from the server" msg

A quick Google search indicates that your group policy only allows signed executable files to run elevated.
Disable that policy or use a certificate to sign your executable.
by Alexander Riedel
Sun Jan 29, 2023 12:22 pm
Forum: PowerShell Studio
Topic: Details on Start sequence and use of Startup.pss and globals.ps1
Replies: 4
Views: 1063

Re: Details on Start sequence and use of Startup.pss and globals.ps1

Here is an example I found on twitter recently that illustrates this: #PowerShell tip: if you're using `Get-Content` to simply read a file, it's much faster to use [http://System.IO.File]::ReadAllBytes() or [http://System.IO.File]::ReadAllText() even in a pipeline. About 95% faster! `Get-Content` is...
by Alexander Riedel
Sun Jan 29, 2023 12:10 pm
Forum: PowerShell Studio
Topic: Details on Start sequence and use of Startup.pss and globals.ps1
Replies: 4
Views: 1063

Re: Details on Start sequence and use of Startup.pss and globals.ps1

As you stated, knowing PowerShell is obviously key. PowerShell itself is deeply rooted in .NET and so is WinForms. I would strongly recommend to take a beginner's class in C#. May it be online video, book or in person, it will enable you to read and understand concepts. Many tips and tricks and samp...
by Alexander Riedel
Fri Jan 27, 2023 2:53 pm
Forum: PowerShell Studio
Topic: Script engine missing PS7
Replies: 2
Views: 890

Re: Script engine missing PS7

That is not how PowerShell 7 and the underlying framework works. All these DLLs and associated files are not generated for fun, they are required. Here is an article from a while ago that explains things in more detail: https://www.sapien.com/blog/2020/08/12/packaging-scripts-for-powershell-7-and-ne...
by Alexander Riedel
Thu Jan 26, 2023 11:39 am
Forum: PowerShell Studio
Topic: PowerShell Studio not switch out on Alt-Tab
Replies: 5
Views: 2676

Re: PowerShell Studio not switch out on Alt-Tab

Yes that tracks. It seems a genuine Windows 11 machine acts differently than an updated one.
This, by the way, is not the only thing that is different. Keeps it interesting. We will keep looking.
by Alexander Riedel
Thu Jan 19, 2023 2:59 pm
Forum: PowerShell Studio
Topic: Issues with Invoke-Webrequest in Build 214 and 215
Replies: 2
Views: 2092

Re: Issues with Invoke-Webrequest in Build 214 and 215

We have identified the issue. It will be part of an upcoming service build.
by Alexander Riedel
Thu Jan 19, 2023 1:37 am
Forum: PowerShell GUIs
Topic: Version in file name
Replies: 1
Views: 107

Re: Version in file name

Use a name of Exename.xx.xx.xx
Create a post- build script that retrieves the version number of Exename.xx.xx.xx.exe
and renames the file.
(Get-Command "Exename.xx.xx.xx.exe").FileVersionInfo.FileVersion
will retrieve the version number.
You can take it from there.
by Alexander Riedel
Wed Jan 18, 2023 9:28 am
Forum: PowerShell Studio
Topic: Powershell Studio 2023 - Packager (.exe) Build Problem
Replies: 2
Views: 1721

Re: Powershell Studio 2023 - Packager (.exe) Build Problem

If the file disappears or is blocked from writing, it is your anti-virus scanner. It quarantines the newly created file.
Check your logs and submit a quarantined file to your anti-virus vendor.