Microsoft decided not to add the .NET 3.5 install bits to Server 2012 R2 for some reason. Maybe they were nostalgic for the old days of hunting for install media? Anyway, if you have had the pleasure of trying to add .NET 3.5 to Server 2012 R2 you have probably seen the error “Do you need to specify an alternate source path? One or more installation selections are missing source files on the destination.” Continue reading “Server 2012 R2 and .NET 3.5”
As promised, here is the safe restart PowerShell script version that includes writing output to the Event Log.
I used the Write-Eventlog command to get the output into the event log. I started by defining the variables. The eventID and eventSource can be anything, eventLog and eventType need to match the parameters of the Write-Eventlog command.
#eventlog vars $eventLog = "System" $eventType = "Information" $eventID = 212 $eventSource = "SafeRestart"
This is a script that reboots if day and time criteria are met and if the uptime is less than a given number of days.
I had, what I thought, was a simple request. I wanted any servers that had not rebooted as part of the monthly SCCM patch cycle to reboot at the end of the maintenance window. This way I know that the servers don’t have any unfinished patching and the servers have a reboot in the last 30 days. These are Windows servers and I’m old school, I like to routinely reboot them. Continue reading “Safe Restart Script”