Damn Admin

Category: PowerShell

Attach to remote Exchange Shell

The first thing we need is a set of (Exchange Administrative) credentials to access the Server The next thing is setting up a variable containing the remote PowerShell Session And last we need…

Monitor the tail of a log file in real-time

Simply replace ‘myTestLog.log’ with your file name (or path)Power Shell will read the file to the screenThen remain open and display any new lines appended to the file automatically.

Get current user logged into a different machine

You will need: the IP or FQDN of the remote PC Remote WMI Must be enabled Be a domain administrator