Get-Host.UI.RAWUI

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

Get-Host.UI.RAWUI

Post by MigrationUser »

03 Apr 2009 11:30
*SCRIPTER*


I'm having a bit of trouble changing the the rawUI properties
for the window postion.
.\ps1 would be appreciated for this task.
I know the method
$a = (Get-Host).UI.RawUI
$b = (Stuck Here)
And if you could point me in the direction
Of how to obtain help on this subject
from the console, that would also be appreciated
Get-Help Get-Host -properties etc... something.....
I would like to position the window at 0
or better yet I just want the console full size
So I'm probably making this question harder
than it needs to be.
Thank you Thank you very much for your
time and expertise.

Batch files are the cancer we die with not of.

----------------------------

#2 05 Apr 2009 06:32
*SCRIPTER*


Answered my own question...

(SomeStuff) | Get-Member :pc:

Batch files are the cancer we die with not of.

----------------------------

#3 07 Apr 2009 21:35
Simon Sheppard


I'm late to the party on this but the easy way to resize the Powershell is to just use the trusty MODE command

It works just fine in powershell and its not like you really need to pipe the result into something else, so I dont think it matters much that its not a 'proper' powershell command.

Code: Select all

MODE con:cols=80 lines=35
Also ALT-Enter will switch into full screen just like CMD

----------------------------

#4 08 Apr 2009 06:53
*SCRIPTER*


Thank You Very Much SIMON.
I'm just getting started using
Powershell and I really like what I'm
seeing, just have not as of yet found
the right resources.
Would you happen to have any
good starting suggestions?
And kudos on this site you have by far
some of the best resources online
Job well done :clap:

Batch files are the cancer we die with not of.

----------------------------

#5 08 Apr 2009 18:49
Simon Sheppard


see this page
https://ss64.com/links/pslinks.html

I'll add more as I find it

----------------------------

#6 09 Apr 2009 01:23
*SCRIPTER*


Again Simon,
Thank You.
Those would be the resources
I'm looking for lol.
One Stop Shopping. big_smile

Batch files are the cancer we die with not of.

----------------------------

#7 09 Apr 2009 01:25
*SCRIPTER*


Re: Get-Host.UI.RAWUI
*SCRIPTER* wrote:

And kudos on this site you have by far
some of the best resources online
Job well done :clap:
Quote Changed.
You Have The BEST Resources.
Post Reply