SCOM 2012 Webconsole on IIS 8 shows unexpected error

I installed successful Systemcenter Operations Manager 2012 Webconsole on a Windows 2012 SP1 Server with IIS 8. The installation was done with https and CU3 was applied after the installation.

Problem:

The Webgui ended in an “An unexpected error has occurred.” All tricks on the web did not help.

Solution:

The IIS log showed the last command was /OperationsManager/Services/Logon.svc. The svc is a WCF Web Service and this was the Problem . An installation of IIS 8 with .net according to setup guides did not install the features for WFC Web Service . Bad that all requirement checks during installation showed Green . After activating the features and restarting IIS the GUI finally appeared.

What to do:

  • Open Features installation
  • Select .Net Framework 3.5 ….
  • Mark HTTP Activation for Installation
  • Open .Net Framework 4.5 …
  • Open WFC Services
  • Mark HTTP Activation for Installation

Install it and restart IIS 8.

Posted in Information Technology | Tagged , | Comments Off on SCOM 2012 Webconsole on IIS 8 shows unexpected error

SQL alias connection refused from remote system

Situation:

There is an SQL 2012 server and a view remote Server requiting Connection to to this SQL  database Server.

Problem / Error:

No connection could be made because the target machine actively refused it.

SQL Server with alias shows an error when connecting from remote server via alias name.

Local connection ist working.

Solution:

The connection is working when the sql instance is added to the alias name(aliasname\instance). Adding the instance name to the alias in sql server configuration did not help .

Posted in Fix IT | Tagged | Comments Off on SQL alias connection refused from remote system

Terminal Server HKCU Registry Keys contain old values

Problem: Some Registry keys in HKCU change back to an old value

Reason: Long ago an installation was not correct terminated with “change user /execute”. So settings stayed in Registry as Master. (Shadow)

Solution:

  • Check HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software or HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software
  • Remove any settings leftover from old installations

Source: http://support.microsoft.com/kb/297379/en-us

Posted in Fix IT, Information Technology | Tagged , , | Comments Off on Terminal Server HKCU Registry Keys contain old values

Read and change Active Synch profile domain wide

To list or change Active Sync profiles from users in a forest use the following Powershell PS1 commands.
Run these lines in a Exchange 2010 PS1 box

# select the Forest as target
set-adServerSettings -viewEntireForest $true

# list user with default profile
get-user -resultsize Unlimited -filter "RecipientType -eq 'UserMailbox'" | get-casmailbox | where {$_.ActiveSyncMailboxPolicy -match 'Default'} | select PrimarySmtpAddress,ActiveSyncMailboxPolicy | export-csv c:\temp\currentProfile.txt

# Change user with default profile to existing NewProfile
# get-user -resultsize Unlimited -filter "RecipientType -eq 'UserMailbox'" | get-casmailbox | where {$_.ActiveSyncMailboxPolicy -match 'Default'} | set-casmailbox -ActiveSyncMailboxPolicy 'NewProfile'

Posted in Uncategorized | Tagged , | Comments Off on Read and change Active Synch profile domain wide

SQL Security : Restore User Mapping Database & SQL Management relation

To detect orphaned users, execute the following Transact-SQL statements per database:

USE <database_name>;GO;sp_change_users_login @Action=’Report’;GO;

Possible Response


The output lists the users and corresponding security identifiers (SID) in the current database that are not linked to any SQL Server login. For more information, see sp_change_users_login (Transact-SQL).

To repare the broken relation between sql user and db user you have to create the sql user . After this use the following procedure to recreate the relationship.

USE <database_name>;
GO
sp_change_users_login @Action='update_one', @UserNamePattern='<database_user>', @LoginName='<login_name>';
GO
 

Example:

sp_change_users_login @Action=’update_one’, @UserNamePattern=’T-PrintAccounting’, @LoginName=’ T-PrintAccounting”;

You need possible a change of the user password. To do this use

USE master
GO
sp_password @old=NULL, @new='password', @loginame='<login_name>';
GO
 


Posted in Fix IT, Information Technology | Tagged | Comments Off on SQL Security : Restore User Mapping Database & SQL Management relation

TempDB SQL 2012 splitting

Open SQL Management Studio.
Disconnect all server connections.
Leave GUI open as we need the Query Analizer

stop all SQL services

open services by running service.msc

open properties of the sql instance and copy the sql executing path
C:\Program Files\Microsoft SQL Server\MSSQL11.SQL1\MSSQL\Binn\sqlservr.exe -c -f -sSQL1

run this command line with additional option –c –f
now is a sql instance in single user mode running
Leave the process running, we come back later on

change to SQL Management Studio and run a new query as sa user
execute the following sql code after adjusting it to your needs

Use Master
go
 
ALTER DATABASE tempdb
MODIFY FILE (NAME = 'tempdev', NEWNAME = 'tempdev1', FILENAME = N'T:\SQL1\tempDB\tempdev1.ndf')
ALTER DATABASE tempdb
MODIFY FILE (NAME = 'tempdev1', SIZE = 5120000KB , FILEGROWTH = 51200KB )
go
 
ALTER DATABASE tempdb
MODIFY FILE (NAME = 'templog', SIZE = 2048KB , FILEGROWTH = 1024KB);
GO
 
ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev2', FILENAME = N'T:\SQL1\tempDB\tempdev2.ndf' , SIZE = 5120000KB , FILEGROWTH = 51200KB )
GO
 
ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev3', FILENAME = N'T:\SQL1\tempDB\tempdev3.ndf' , SIZE = 5120000KB , FILEGROWTH = 51200KB )
GO
 
ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev4', FILENAME = N'T:\SQL1\tempDB\tempdev4.ndf' , SIZE = 5120000KB , FILEGROWTH = 51200KB )
GO
 
Use Master
go
ALTER DATABASE tempdb
MODIFY FILE (NAME = 'templog', FILENAME = N'T:\SQL1\tempDBlog\templog.ldf')
GO

close the query window
Then got to the command line and press ctr+c to terminate the single user session
now remove all temp db files . they will be created on next sql service start.
next start all sql services and check the new settings

Posted in Fix IT, Information Technology | Tagged | Comments Off on TempDB SQL 2012 splitting

move user homes to an other drive using a link

If you don’t like to have your homes on C: .

  • Boot your computer using your installation CD and change to a command line prompt. Check where your drives are now. For this example lets say boot disk C: is on D: and your data disk D: is showing up on E:
  • Create a folder users on your target drive using  md e:\users
  • move all content of D:\users to e:\users , your new home folder
  • Now link your target to the original user home – mklink e:\users d:\users /j
  • After rebooting your system your OS thinks c:\users ist still the users home but the physical location is now the new drive.
Posted in Uncategorized | Tagged , | Comments Off on move user homes to an other drive using a link