Write-Ouput not showing result

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
dreyrao
Posts: 5
Joined: Thu Apr 12, 2018 10:26 am

Write-Ouput not showing result

Post by dreyrao » Mon Sep 16, 2019 12:40 pm

To help you better we need some information from you.

*** Please fill in the fields below. If you l

Code: Select all

[Codebox=powershell file=Untitled.ps1]
[/Codebox]eave fields empty or specify 'latest' rather than the actual version your answer will b
e delayed as we will be forced to ask you for this information. ***

Product, version and build:
32 or 64 bit version of product: 64 Bit
Operating system: Win10
32 or 64 bit OS: 64 Bit

Wrote up a very simple script to display the quarter but the write-output is not displaying on my output box. See below script below along with output.

$Month = Get-Date -UFormat %B
$Qtr = [math]::Ceiling((Get-Date).Month/3)
$Qtr = $Qtr # - 1
$Quarter = "Q$Qtr"

write-output $Month
write-output $Quarter

>> Running (Show Month.ps1) Script...
>> Platform: V5 64Bit (STA)
>> Script Ended

This scripts works on our production server but not on my desktop. Could it be a setup issue in PS Studio on my desktop? Any insight would help.

Thanks in advance.

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

User avatar
Alexander Riedel
Posts: 7049
Joined: Tue May 29, 2007 4:43 pm

Re: Write-Ouput not shopwing result

Post by Alexander Riedel » Mon Sep 16, 2019 12:50 pm

Please provide all the requested information.
Product, version and build:
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
dreyrao
Posts: 5
Joined: Thu Apr 12, 2018 10:26 am

Re: Write-Ouput not shopwing result

Post by dreyrao » Tue Sep 17, 2019 6:43 am

Alexander Riedel wrote:
Mon Sep 16, 2019 12:50 pm
Please provide all the requested information.
Product, version and build:
Product, version and build:
32 or 64 bit version of product: 64 Bit
Operating system: Win10
32 or 64 bit OS: 64 Bit

User avatar
Alexander Riedel
Posts: 7049
Joined: Tue May 29, 2007 4:43 pm

Re: Write-Ouput not showing result

Post by Alexander Riedel » Tue Sep 17, 2019 8:48 am

I was asking for the product's version information.
2019-09-17_8-47-19.png
2019-09-17_8-47-19.png (75.85 KiB) Viewed 855 times
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
dreyrao
Posts: 5
Joined: Thu Apr 12, 2018 10:26 am

Re: Write-Ouput not showing result

Post by dreyrao » Tue Sep 17, 2019 8:59 am

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.165
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

User avatar
brittneyr
Site Admin
Posts: 187
Joined: Thu Jun 01, 2017 7:20 am

Re: Write-Ouput not showing result

Post by brittneyr » Mon Sep 23, 2019 8:34 am

So far we haven't been able to reproduce this issue. Does this script work the same if you run it from the command line or ISE?
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
dreyrao
Posts: 5
Joined: Thu Apr 12, 2018 10:26 am

Re: Write-Output not showing result

Post by dreyrao » Mon Sep 23, 2019 9:13 am

Hi -

Yes this script does work on a command line ans ISE . We recently moved to Win10. Could this be causing it?

User avatar
brittneyr
Site Admin
Posts: 187
Joined: Thu Jun 01, 2017 7:20 am

Re: Write-Ouput not showing result

Post by brittneyr » Tue Sep 24, 2019 8:59 am

Maybe. I see you are on build 5.6.165. Can you try updating to the latest build (5.6.167) and see if that fixes your issue?
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
dreyrao
Posts: 5
Joined: Thu Apr 12, 2018 10:26 am

Re: Write-Output not showing result

Post by dreyrao » Tue Sep 24, 2019 9:10 am

When I do this I get the following message. See attachment. Let me follow up with our admin here too.
Attachments
SAPIEN Update Screen Shot.png
SAPIEN Update Screen Shot.png (105.5 KiB) Viewed 574 times

User avatar
Alexander Riedel
Posts: 7049
Joined: Tue May 29, 2007 4:43 pm

Re: Write-Ouput not showing result

Post by Alexander Riedel » Thu Oct 10, 2019 6:52 pm

Windows 10 is what we all use, that should make no difference.
What platform, version etc for PowerShell have you selected in the ribbon of PowerShell Studio?
Alexander Riedel
SAPIEN Technologies, Inc.