This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
10
Script doesn't output data like I thought it would
Post Flair (click to view more posts with a particular flair)
Post Body
$COMPUTERNAME = Read-Host 'Input PC Name'
Get-WmiObject -Class Win32_OperatingSystem -ComputerName $COMPUTERNAME | Select Description
Pause
Hi, I'm still new at this stuff. When I run this simple script in a PS window it works. But when I "run with PowerShell" it pauses like I expected; however, it closes after the pause is complete. So I can't read the remote PC's description in time.
Could use some help.
Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,473
Link Karma
2,641
Comment Karma
1,797
Profile updated: 1 day ago
Posts updated: 1 year ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...