PowerShell Script To Restart Service And Dependents
Some of my Windows 2008 R2 servers have been reaching over our 80% committed memory threshold more often than preferred. There is a hotfix out as noted on Kevin Holman’s OpsMgr Blog – http://blogs.technet.com/b/kevinholman/archive/2010/06/09/wmi-leaks-memory-on-server-2008-r2-monitored-agents.aspx , however the server admins have not tested and deployed the hotfix yet so in the mean time I needed an efficient way to bounce the WMI service along with dependencies.
In case anyone else if having this issue… This is the script I am using as a Recovery Task with Winmgmt as its parameter to run and sorry if I made any mistakes this is only my third PowerShell script! Feel free to change and let me know if there is a better way! .. NOTE: You will probably need to sign the code unless you changed the PowerShell script execution policy to Unrestricted !
Sponsors, article continues below...
Read more…
iPhone iOS 4 Keeps Saying Password Expired
For those that have iPhones and want to upgrade to iOS 4 and are using the a profile find solution below….
Sponsors, article continues below...
Read more…
IOS upgrade on Cisco routers causes RightFax to stop working
After many hours wasted troubleshooting RightFax because everyone was thinking it was at fault, we had to prove that something changed on the network end that hosed up RightFax. RightFax has been running for 2 years with ”0″ issues. So it turns out our network engineers decided to upgrade the IOS (version 12.4.24T2) on their voice routers last week, which hosed up all fax communications when using RightFax. They said it changed the way the t.38 protocol talks between the voice routers. After they opened a support case with Cisco TAC they suggested inputting the following commands on the voice routers and it solved the issue for us. I don’t recall rebooting RightFax after the fix was put in place….
HP Systems Insignt Manager – Contract and Warranty SQL Query
UPDATE: 6-23-2010
You will need the following function added to your DB before running…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | /****** Object: UserDefinedFunction [dbo].[fn_ConvertDate] Script Date: 06/22/2010 15:21:56 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[fn_ConvertDate] (@Datetime BIGINT) RETURNS DATETIME AS BEGIN DECLARE @LocalTimeOffset BIGINT; DECLARE @AdjustedLocalDatetime BIGINT; SELECT @LocalTimeOffset = DATEDIFF(second,GETDATE(),GETUTCDATE()) SELECT @AdjustedLocalDatetime = (@Datetime – @LocalTimeOffset)/1000 RETURN (SELECT DATEADD(second,@AdjustedLocalDatetime, CAST(’1970-01-01 00:00:00′ AS datetime))) END; GO |
….
It was time to renew our warranty contacts with HP and we needed a quick and efficient way to gather and submit all of our HP hardware’s information to our vendor for renewal. The canned “Warranty-Contract – Servers” query is not very useful as there are no serial numbers, product name, product numbers, addresses or contact information in the report. If you try to add the other columns it outputs to separate tables, proving to be a useless report. These other pieces of information are hidden in other views and tables in the Insight database. After much tinkering around and much help from our DBA we came up with the following query (note a new view is required to be created in the DB)…
Read more…
How to deploy SCOM Operations Console to Clients
It was a tough find but after much digging I came across the command to run for a silent install of the Systems Center Operations Manager 2007 Operations Console.
Read more…
OpsMgr ACS SecureVantage Noise Filter (Combined)
As many of you know collecting all security events on a server using the Audit Collection Service (ACS) can get very “noisy”. Thankfully SecureVantage has come up with a list of noise filters, unfortunately they are all separate queries. I took the time to combine all the queries and thought I would share to save anyone else the trouble…
Automatically uninstall Altiris Agent on ESX and Linux
I’ve recently configured a HP Rapid Deployment (RDP) script to automate the deployment of VMWare ESX to our HP servers. However I did not want to leave the Altiris client on the server after the installation was complete in order to avoid any mistakes (like wiping out the server) after it went into production. Here is how you automate the uninstall of the Altiris agent…
Read more…
Running SCOM Agent On Domain Controller as Local System
After deploying the OpsMgr agent to a DC you may receive some errors concerning scripts not being able to run. An example of an error you may receive is below:
Forced to terminate the following process started at 1:01:51 PM because it ran past the configured timeout 120 seconds.
Command executed: “C:\Windows\system32\cscript.exe” //nologo “C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 5\3201\AD_Replication_Partner_Op_Master_Consistency.vbs” DC01.domain.pvt false
Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 5\3201\
This is do to the fact that the SCOM HealthService be default only allows for “NT AUTHORITY\Authenticated Users” Users to access the service. However the service is running as LocalSystem by default. LocalSystem doesn’t fall under the Authenticated Users scope. This is where the hslockdown tool comes in.
Error Installing SQL 2008 SP1 on Windows 7
You are required to install Microsoft SQL 2008 SP1 after installing SQL 2008 on Windows 2008 and 7. After launching the SP1 setup you might receive the following error:
TITLE: SQL Server Setup failure.
——————————
SQL Server Setup has encountered the following error:
Invoke or BeginInvoke cannot be called on a control until the window handle has been created..
——————————
BUTTONS:
OK
——————————
SCOM 2007 R2 MOM Agent Activation context generation failed
I came across the following errors today on the server I’m trying to push the SCOM MOM Agent to a Windows 2008 server:
Log Name: Application
Source: SideBySide
Date: 10/15/2009 9:29:04 AM
Event ID: 33
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: USHUBICE01.Exterran.pvt
Description:
Activation context generation failed for "C:\Program Files\System Center Operations Manager 2007\MOMConnectorPerformance.dll". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.1" could not be found. Please use sxstrace.exe for detailed diagnosis.
Read more…