Search found 15 matches

by Philaubur
Wed Nov 13, 2024 6:08 am
Forum: PowerShell
Topic: PowerShell Console freeze
Replies: 2
Views: 756

PowerShell Console freeze

Hello,

After the write-progress command sometimes my Powershell console freezes and I have to press a key to continue.
How can this be fixed?

Thanks for your help,
by Philaubur
Fri Oct 11, 2024 5:16 am
Forum: PowerShell
Topic: Console freeze
Replies: 0
Views: 740

Console freeze

Hello, I use the function below. It works well except that sometimes the console screen is frozen until a key is pressed. Do you have any idea what is wrong. function Start-Sleep-Progression($seconds) { $doneDT = (Get-Date).AddSeconds($seconds) while ($doneDT -gt (Get-Date)) { $secondsLeft = $doneDT...
by Philaubur
Thu Jun 27, 2024 8:09 am
Forum: PowerShell GUIs
Topic: module malfunctions after compilation
Replies: 4
Views: 3639

Re: module malfunctions after compilation

I solved my problem.
In my .psf script the formalism
"#requires -Modules ImportXML"
does not work
In explicit mode it works better
"Import-Module ImportXML"
thanks anyway
by Philaubur
Tue Jun 25, 2024 9:36 am
Forum: PowerShell GUIs
Topic: module malfunctions after compilation
Replies: 4
Views: 3639

Re: module malfunctions after compilation

Yes, this module is indeed located in $env:PSModulePath.
Yes, I created this module which works perfectly well in Powershell Studio environment.
by Philaubur
Mon Jun 24, 2024 7:10 am
Forum: PowerShell GUIs
Topic: module malfunctions after compilation
Replies: 4
Views: 3639

module malfunctions after compilation

Hello, I am confronted with a strangeness. I use: #requires -Modules xxx at the start of my script. It works perfectly when I run the script from Powershell studio. However, once transformed into an executable, the module no longer loads and its variables are no longer available. The variables are i...
by Philaubur
Fri Dec 21, 2018 5:26 am
Forum: PowerShell Studio
Topic: Modify variable on debug console
Replies: 3
Views: 2596

Re: Modify variable on debug console

Hi,
Is there an other way to make that ?
for an effective and practice debbuging, i must change a variable in this mode.
by Philaubur
Tue Dec 18, 2018 6:43 am
Forum: PowerShell Studio
Topic: Modify variable on debug console
Replies: 3
Views: 2596

Modify variable on debug console

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: Powershell Studio ...
by Philaubur
Thu Dec 06, 2018 4:47 am
Forum: PowerShell
Topic: Problem with cmdlet New-PSDrive and parameter server
Replies: 5
Views: 5489

Problem with cmdlet New-PSDrive and parameter server

Hello, This cmdlet make me a problem New-PSDrive ` -Name $NomProvider ` -PSProvider ActiveDirectory ` -Root "" ` -Scope Global ` -credential $cred ` -Server $Domaine On a powershell console, it works very well but, on SPS 2018 it's not work. This error message is displayed: "A paramet...
by Philaubur
Thu Dec 06, 2018 2:18 am
Forum: PowerShell Studio
Topic: resize command line debug console
Replies: 3
Views: 2183

Re: resize command line debug console

Hi David,

I found !
you just have to select the lines of script concerned then with the right button of the mouse choose "to send on the console of debug".

Regards,
by Philaubur
Wed Dec 05, 2018 12:47 am
Forum: PowerShell Studio
Topic: resize command line debug console
Replies: 3
Views: 2183

Re: resize command line debug console

For a best lisibility i wrote this command in several lines in my script ? New-PSDrive ` -Name $NomProvider ` -PSProvider ActiveDirectory ` -Server $Domaine ` -Root "//RootDSE/" ` -Scope Global ` -credential $cred To write it in the Debug console pane, i must transform it in one ligne. Tha...