Delete/Sendt items in Shared mailbox in Exchange 2013

If you have a shared mailbox and deletes or send a items it will go to your own mailbox

You have to use thise to fix it:

Office 2010
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSoftwareMicrosoftOffice14.0OutlookPreferences]
“DelegateSentItemsStyle”=dword:00000001

[HKEY_CURRENT_USERSoftwareMicrosoftOffice14.0OutlookOptionsGeneral]
“DelegateWastebasketStyle”=dword:00000004

————————————————————————-

Office 2013
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSoftwareMicrosoftOffice15.0OutlookPreferences]
“DelegateSentItemsStyle”=dword:00000001

[HKEY_CURRENT_USERSoftwareMicrosoftOffice15.0OutlookOptionsGeneral]
“DelegateWastebasketStyle”=dword:00000004

WSUS reset

How to Do a Reset:

Note: You may want to execute the procedure below during off hours as your WSUS server will be downloading quite a bit of data.

1) Correct any settings above or disapprove any unneeded updates.

2) Close any open WSUS consoles.

3) Go to Administrative Tools – Services and STOP the Update Services service.

4) In Windows Explorer browse to the WSUSContent folder (typically D:WSUSWSUSContent or C:WSUSWSUSContent)

5) Delete ALL the files and folders in the WSUSContent folder.

6) Go to Administrative Tools – Services and START the Update Services service.

7) Open a command prompt and navigate to the folder: C:Program FilesUpdate ServicesTools.

8) Run the command WSUSUtil.exe RESET

-This command tells WSUS to check each update in the database, and verify that the content is present in the WSUSContent folder. As it finds that the content is not present in the folder, it executes a BITS job to download the content from Microsoft. This process takes quite a bit of time and runs in the background.

How do you tell when the process is complete?

Other than noticing that the WSUSContent folder is no longer growing you can also check the SoftwareDistribution.log:

C:Program FilesUpdate ServicesLogFilesSoftwareDistribution.log

When you start the reset process, you should see a line towards the bottom of the log which looks like this:

WsusService.13  ExecutionContext.runTryCode     State Machine Reset Agent Starting

After waiting for some time, check the log again and search for the text “State Machine Reset Agent Finished”

WsusService.13  ExecutionContext.runTryCode     State Machine Reset Agent Finished

SQL database in suspect or emergency mode

If you have a database that is in suspect or emergency mode do this to get it online:

ALTER DATABASE XXX SET ONLINE

If this work is’s all fine, else you have to kill all active connections with this:

select
t1.session_id,
t1.start_time as request_start_time,
db_name(t1.database_id) as DatabaseName,
t1.reads,
t1.writes,
t1.logical_reads,
t1.logical_reads*8/1024/1024 as logical_reads_GB,
t1.cpu_time as cpu,
t1.total_elapsed_time,
t1.wait_time,
t1.wait_type,
t1.wait_resource,
t1.open_transaction_count,
t1.blocking_session_id,
SUBSTRING(text, (statement_start_offset/2)+1,
((CASE statement_end_offset
WHEN -1 THEN DATALENGTH(text)
ELSE statement_end_offset
END – statement_start_offset)/2) + 1) AS statement_text,
text as full_statement_text,
login_time,
program_name,
login_name,
client_net_address,
query_plan
from
sys.dm_exec_requests t1
outer apply sys.dm_exec_sql_text(sql_handle) t2
outer apply sys.dm_exec_query_plan(t1.plan_handle)
inner join sys.dm_exec_sessions t3 on t1.session_id = t3.session_id
inner join sys.dm_exec_connections t4 on t1.session_id = t4.session_id
where t1.session_id > 50 and t1.session_id <> @@spid

When all connections is terminatet do this:

ALTER DATABASE XXX SET EMERGENCY
ALTER DATABASE XXX SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CHECKDB (XXX, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE XXX SET ONLINE
ALTER DATABASE XXX SET MULTI_USER

To see the status on this you this command:

SELECT
session_id ,
request_id ,
percent_complete ,
estimated_completion_time ,
DATEADD(ms,estimated_completion_time,GETDATE()) AS EstimatedEndTime,
start_time ,
status ,
command
FROM sys.dm_exec_requests

 

Change SQL max memory

Log on the SQL Server and start a new Query

– Set the SQL Server in Operation Mode –

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
go

– View Settings that are running on the server –

EXEC sp_configure;

– Set Max Memory (MB) – (in this example the max is set to 6 GB)

EXEC  sp_configure'max server memory (MB)',6000;

Activate the Settings

RECONFIGURE;
GO

Add server to WSUS

Create a .reg file with this: (this is for 24.00)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftwindowsWindowsUpdate]
“WUServer”=”http://wsus.xxx.dk”
“WUStatusServer”=”http://wsus.xxx.dk”

[HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU]
“NoAutoUpdate”=dword:00000000
“AUOptions”=dword:00000004
“ScheduledInstallDay”=dword:00000000
“ScheduledInstallTime”=dword:00000000
“UseWUServer”=dword:00000001
“RescheduleWaitTimeEnabled”=dword:00000001
“RescheduleWaitTime”=dword:00000005
“DetectionFrequencyEnabled”=dword:00000001
“DetectionFrequency”=dword:00000001
“AutoInstallMinorUpdates”=dword:00000001
“RebootWarningTimeoutEnabled”=dword:00000001
“RebootWarningTimeout”=dword:00000005
“RebootRelaunchTimeoutEnabled”=dword:00000001
“RebootRelaunchTimeout”=dword:00000005
“NoAUShutdownOption”=dword:00000001

Then to get Windows to accept the changes type this in a CMD:

net stop “Windows Update”

call wuauclt /resetauthorization /detectnow”

Last reboot time

Make a vbs file with this and run it :

strComputer = “.”
set objWMIDateTime = CreateObject(“WbemScripting.SWbemDateTime”)
set objWMI = GetObject(“winmgmts:” & strComputer & “rootcimv2”)
set colOS = objWMI.InstancesOf(“Win32_OperatingSystem”)
for each objOS in colOS
objWMIDateTime.Value = objOS.LastBootUpTime
Wscript.Echo “Reboot time: ” & objWMIDateTime.GetVarDate
next

Install SNMP with script

To install SNTP with a script create 2 files:

  • Start.bat
  • snmp.txt

In start.bat put :

copy SNMP.txt %SYSTEMDRIVE%

%windir%system32sysocmgr.exe /i:%windir%infsysoc.inf /u:%SYSTEMDRIVE%SNMP.txt /r

in snmp.txt put :

[NetOptionalComponents]
SNMP = 1

After this run start.bat on the machine