C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe –ExecutionPolicy ByPass -command "& {POWERSHELL-CODE}"
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe –ExecutionPolicy ByPass -command "& {$EventCount=0; $DateAfter = (Get-Date).AddHours(-1); Get-EventLog -LogName "Application" -EntryType "Error" -After $DateAfter | foreach {$_;$EventCount++} | Out-Null; $EventCount;}"
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe –ExecutionPolicy ByPass -command "& {Add-pssnapin -Name Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction SilentlyContinue; $DaysToExpiration = '31'; $expirationDate = (Get-Date).AddDays($DaysToExpiration);[array]$exchCerts = Get-ExchangeCertificate | Where {($_.Services -match 'IIS') -and ($_.NotAfter -lt $expirationDate)}; if ($exchCerts.Count -gt 0) {Write-Host 'Fehler'}else{Write-Host 'OK'}}"
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@ebertlang.com to your trusted senders list in your email software.