PowerShell Remoting Project Home

Wednesday, March 22, 2006

Script to Resize Remote Client Console Window

There is an intersting msh script from Web ChangeLog blog to demonstrate RawUI functionality of my Monad Remoting tools.

MSH: Remote scripting host

Interstingly, if you run this script in msh.exe, you will probobly get some exception. But it works fine for my Monad Remoting tools.

Exception setting "WindowSize": "Window cannot be wider than the screen buffer.
Parameter name: value.Width Actual value was 85."
At D:\msh\script\resizewin.msh:7 char:18

Actually, This is a bug of my tools. I simply applied all RawUI operation directly to client console and but did not check screen buffer.

Have Fun!



Post a Comment

Links to this post:

Create a Link

<< Home