Who Rebooted my Server

Ever wanted to know who initiated a server reboot?

The power shell one liner below will tell you. Simply change the <SERVER> portion to the name of the server you want to query and voila.

gwmi win32_ntlogevent -computername <SERVER> -filter "LogFile='System' and EventCode='1074' and Message like '%restart%'" | select User,@{n="Time";e={$_.ConvertToDateTime($_.TimeGenerated)}}

ANS2050E TSM needs to prompt for the password but cannot prompt because the process is running in the background.

Always drives me crazy, seems one day my Tivoli backups stop working and we have to enter the password again, this usually causes the service to stop working with the error that is the title of this article.

IF this occurs, do the following;

Continue reading ANS2050E TSM needs to prompt for the password but cannot prompt because the process is running in the background.