Your site slogan.

Red Hat Enterprise Linux Training - Notes

Notes from RHEL 7 Partner Training… You can access Red Hat Support via the CLI tool redhat-support-tool The tool gives you access to the KB, which you can search from the CLI and you can work with support tickets. Running sosreport will create an archive file with logs and other info that can be attached to a ticket.

Use PowerShell to test connection to a port

To quickly test if you can communicate with a server on a specific port use this command: Test-NetConnection (hostname/ip) -Port (tcp port number) You are looking for TcpTestSucceeded : True in the output. Example: PS C:\Users\Clint> Test-NetConnection www.google.com -port 80 ComputerName : www.google.com RemoteAddress : 74.125.28.103 RemotePort : 80 InterfaceAlias : vEthernet (LAN) 2 SourceAddress : 192.168.0.5 TcpTestSucceeded : True

Powershell script to get all computers last logon time

Update I’ve posted an updated version of this script in a new section of my blog. Because all the comments below relate to the original version of the script I’m going to leave that version posted here. You can find the new version of the script here. I wrote a script to get the last time each computer logged into the domain.