Is it possible to set an application's height and width using WMI? If so, how? For example, change the height and width of Notepad.
From VBScript, VBA, etc is is indeed possible to resize a window. Below is an example of how to resize a window using its handle. You would need to provide the hWnd (windows handle) of the specific window you'd want to resize. Other win32 apis can be used to determine the hWnd from, for example, the window's title.
Const HWND_TOPMOST = -1 Const SWP_NOACTIVATE = &H10 Const SWP_SHOWWINDOW = &H40 Private Declare Sub SetWindowPos Lib "User32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) Private Sub ResizeWindow(ByVal hWnd as Long,ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long) SetWindowPos hWnd, HWND_TOPMOST, X, Y, cx, cy, SWP_NOACTIVATE Or SWP_SHOWWINDOW End Sub