PS: Windows UI Automation/Scripting

Windows Automation Snapin for PowerShell WASP is a PowerShell snapin for Windows Automation tasks like selecting windows and controls and sending mouse and keyboard events. It has automation cmdlets like Select-Window, Select-Control, Send-Keys, Send-Click, Get-WindowPosition, Set-WindowPosition, Set-WindowActive, Remove-Window … etc.   BELT (A PowerShell Snapin for IE Browser Automation) BELT is a PowerShell snapin for IE browser automation. BELT makes it easier to control IE by PowerShell. “BELT” originally stands for “Browser Element Locating Tool”    

Read more

PS: Managing Windows Services

List all services that a service is dependent on on: [5]: Get-Service -Name LanmanWorkstation -DependentServices Status   Name               DisplayName                           ——   —-               ———–                           Running  SessionEnv         Remote Desktop Configuration          Running  Netlogon           Netlogon                              Stopped  Browser            Computer Browser                        This will be helpful in identifying the possible service start up failures due to dependent service unavailability. List all services that depend/require a selected service: [6]: Get-Service -Name LanmanWorkstation -RequiredServices Status   Name               DisplayName                           ——   —-               ———–                           Running  MRxSmb10           SMB 1.x MiniRedirector                Running  NSI                Network Store Interface Service       Running  MRxSmb20           SMB 2.0 MiniRedirector                Running  Bowser             Browser Support Driver                This will be helpful in assessing the impact of […]

Read more

PS: Managing Disks and Space

List all locally installed disks along with their VolumeName, Drive Letter, Total Size and Free size: PS C:> GWMI -query “select * from Win32_LogicalDisk where DriveType =’3′” | ft -auto DeviceID,VolumeName,Size,FreeSpace DeviceID VolumeName        Size   FreeSpace ——– ———-        —-   ——— C:                  53684989952 23350935552 X:       New Volume 53683941376 48905629696 PS C:> Note: use DriveType ‘2’ for “Removable Disk” and ‘4’ for “Network Drive” Refer to Win32_LogicalDisk class document for more details. More to follow…

Read more