How to run Outlook 2007/2010/2013/2016 Rules from a button

To be able to run a single (or all) rules from a single button instead of having to use the outlook rules dialogue box, the following code should help:


First, go into the VB Editor,  Tools -> Macro’s > Visual Basic Editor (or press ALT-F11)

Assuming you don’t already have any modules in here.  Press Insert -> Module

You will be presented with a new window waiting for code, paste this in for all rules:


Sub RunAllInboxRules()
Dim st As Outlook.Store
Dim myRules As Outlook.Rules
Dim rl As Outlook.Rule
Dim count As Integer
Dim ruleList As String
‘On Error Resume Next’ get default store (where rules live)
Set st = Application.Session.DefaultStore
‘ get rules
Set myRules = st.GetRules

‘ iterate all the rules
For Each rl In myRules
‘ determine if it’s an Inbox rule
If rl.RuleType = olRuleReceive Then
‘ if so, run it
rl.Execute ShowProgress:=True
count = count + 1
ruleList = ruleList & vbCrLf & rl.Name
End If
Next

‘ tell the user what you did
ruleList = “These rules were executed against the Inbox: ” & vbCrLf & ruleList
MsgBox ruleList, vbInformation, “Macro: RunAllInboxRules”

Set rl = Nothing
Set st = Nothing
Set myRules = Nothing
End Sub


The below is for a single rule, don’t forget to change rule name:


Sub RunAllInboxRules()
Dim st As Outlook.Store
Dim myRules As Outlook.Rules
Dim rl As Outlook.Rule
Dim runrule As String
dim rulename as string

Rulename = “*****name of rule*****”

Set st = Application.Session.DefaultStore

Set myRules = st.GetRules

For Each rl In myRules

If rl.RuleType = olRuleReceive Then

If rl.Name = rulename Then
rl.Execute ShowProgress:=True
runrule = rl.Name

End If
End If
Next

ruleList = “This rule was executed against the Inbox:” & vbCrLf & runrule
MsgBox ruleList, vbInformation, “Macro: RunAllInboxRules”

Set rl = Nothing
Set st = Nothing
Set myRules = Nothing
End Sub

Source: http://pyrocam.com/

Script for updating coretemp

This script assumes that wget is installed in %SYSTEMROOT%.

The purpose of this script is to quickly download, install (with default settings), and update coretemp to the latest version on a machine

 

wget http://www.alcpu.com/CoreTemp/Core-Temp-setup.exe -O %UserProfile%\Desktop\coretemp.exe

%UserProfile%\Desktop\coretemp.exe /sp /silent /closeapplications

START C:\”Program Files”\”Core Temp”\”Core Temp.exe”

del %UserProfile%\Desktop\coretemp.exe

exit

Using Process Monitor to measure logon times

FIrst Aid for it support

Did you ever get complaints about slow logon times for users running on a Terminal Server? Probably the answer is yes, but what is slow? And can I measure this with hard numbers? Yes you can do this… By using Process Monitor! And I will show you how.

Step 1

Logon to the server with the local Administrator account and start Process Monitor.

Stop the capture and clear everything, this prevents the ProcMon from using unnecessary resources for now.

ProcMon_captureEvents

Step 2

Edit the Filter as follows. Add the processes winlogon.exe, userinit.exe and explorer.exe

Also filter to only show process Start and Exit.

ProcMon_Filter

– Winlogon.exe: You can see the first process to kick of is the Winlogon.exe. It is starting on logon and ends when a user clicks the start => logof button.

– Userinit.exe: Next one to launch is the userinit.exe process which includes various user initializations. This process will also…

View original post 165 more words

User Accounts Do Not Show Up in the Windows SBS Console

If you have created user accounts with the native windows tools, and you wish to display them in the Windows SBS Console, then perform the following steps:

  1. Open the Windows SBS Console.
  2. On the Users tab under Users and Groups, click on Change user role for user accounts.
  3. Choose the user role that you wish to assign to the user account(s), and choose whether you are replacing or adding permissions to the account(s).
  4. Under Select user accounts, mark the checkbox next to Display all user accounts in the Active Directory. You should see the user account(s) that are missing from the console.
  5. Select the account(s) that you wish and click the Add>> button.
  6. Click on the Change User Role button to finish.

How to perform clean install of Take Control on a single device

If Take Control requires a clean install, perform the following steps:

    1. From the Dashboard disable Take Control on the device
      1. Double click the device
      2. Select Remote Access > change Setting: to Off > select OK
    2. Monitor the Summary tab to see when Take Control changes from Active to Not Installed
      1. To speed up process, right-click device > select Re-run Checks
    3. Verify Take Control is not listed under add/remove programs
    4. Delete takecontrol_7_setup or takecontrol_8_setup file from machine
      1. 32 bit: C:\Program Files\Advanced Monitoring Agent\features
      2. 64 bit: C:\Program Files (x86)\Advanced Monitoring Agent\features
    5. From the Dashboard enable Take Control
      1. Double click the name of the device
      2. Select Remote Access > change Setting: to Use Policy Setting (On) or On> select OK
    6. Monitor the Summary tab to see when Take Control changes from Not Installed to Active
      1. To speed up process, right-click device > select Re-run Checks