Add Images to Word from Command (Powershell)

Really all the credit has to go to u/Pandapokeman on reddit.  All I did was add a single line that added the file name to the bottom of the picture. https://www.reddit.com/user/Pandapokeman/ Here is his script (be sure to use the full file path in the command) Function Add-OSCPicture { <# .SYNOPSIS Add-OSCPicture is an advanced […]


Control Panel Command Line CMD.exe

A quick look at commands to get things done faster; Network Adapters ncpa.cpl Firewall firewall.cpl Updates wuaucpl.cpl System Info msinfo.exe Computer Manager Compmgmt.msc Startup and control tabs msconfig   My references https://www.maketecheasier.com/20-run-commands-windows/ https://www.lifewire.com/command-line-commands-for-control-panel-applets-2626060 Control Panel Command Line Commands in Windows CMD Commands for Control Panel Applets Applet Command OS Version Accessibility Options control access.cpl XP […]


Show all Domain Computers that are Online

Quickie one liner; get-adcomputer -filter * | Where { Test-Connection $_.name -count 1 -quiet } | Select @{Name=”Computername”;Expression={$_.Name}} Reference : https://www.petri.com/test-network-connectivity-powershell-test-connection-cmdlet


Find all RDP (and Console) Sessions in the Domain

Quickie one liner $work = Get-ADComputer -filter * $work = $work.name foreach ($1 in $work){write-host $1 ; quser /server:$1} This also works (courtesy of jrv [technet]); Get-ADComputer -Filter *| ForEach-Object{ quser /server $_.Name}


Find the OS of all Computers in the Domain

Quickie one liner Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemService Pack,OperatingSystemVersion -Wrap –Auto Reference: https://serverfault.com/questions/585223/how-to-list-all-computers-operating-system-on-a-network-in-powershell


Powershell fun for the System Monitor

So, I like my monitors to do more then just blink.  Also, its good for people to come by and see something happening in IT, as most of the stuff we do is invisible.  I started out this script so I could do functions on ranges of IP’s, and it turned into this fun little […]