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 LICENSE NUMBERS, ACTIVATION 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.
This topic is 4 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
dreyrao
Posts: 5
Last visit: Fri Oct 11, 2019 6:50 am

Write-Ouput not showing result

Post by dreyrao »

To help you better we need some information from you.

*** Please fill in the fields below. If you l
  1. [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: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Write-Ouput not shopwing result

Post by Alexander Riedel »

Please provide all the requested information.
Product, version and build:
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
dreyrao
Posts: 5
Last visit: Fri Oct 11, 2019 6:50 am

Re: Write-Ouput not shopwing result

Post by dreyrao »

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: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Write-Ouput not showing result

Post by Alexander Riedel »

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 3253 times
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
dreyrao
Posts: 5
Last visit: Fri Oct 11, 2019 6:50 am

Re: Write-Ouput not showing result

Post by dreyrao »

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: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: Write-Ouput not showing result

Post by brittneyr »

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
SAPIEN Technologies, Inc.
User avatar
dreyrao
Posts: 5
Last visit: Fri Oct 11, 2019 6:50 am

Re: Write-Output not showing result

Post by dreyrao »

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: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: Write-Ouput not showing result

Post by brittneyr »

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
SAPIEN Technologies, Inc.
User avatar
dreyrao
Posts: 5
Last visit: Fri Oct 11, 2019 6:50 am

Re: Write-Output not showing result

Post by dreyrao »

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 2972 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Write-Ouput not showing result

Post by Alexander Riedel »

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.
This topic is 4 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.