Lapas

ceturtdiena, 2014. gada 30. oktobris

Kill service with stopping status

sc queryex servicename 
taskkill /f /pid [PID]

For example:

C:\>sc queryex WSearch

SERVICE_NAME: WSearch
TYPE               : 10  WIN32_OWN_PROCESS
STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE    : 0  (0x0)
SERVICE_EXIT_CODE  : 0  (0x0)
CHECKPOINT         : 0x0
WAIT_HINT          : 0x0
PID                : 5604
FLAGS              :

C:\>taskkill /t /f /pid 5604

otrdiena, 2014. gada 28. oktobris

Get list of all Office 365 users and their licenses

Here is PowerShell script to get list of all users and their licenses:

#######begin script#######

cls

Import-Module msonline

Connect-MsolService

Function Get-UserLicenseList {

$MasterList = @()

Get-MsolUser -All  | % {

$Object = New-Object PSObject -Property @{

DisplayName = $null

UserPrincipalName = $null

AssignedLicense = $null}

$Object.DisplayName = (Get-MsolUser -UserPrincipalName $_.UserPrincipalName).DisplayName

$Object.UserPrincipalName = (Get-MsolUser -UserPrincipalName $_.UserPrincipalName).UserPrincipalName

$Object.AssignedLicense = ((Get-MsolUser -UserPrincipalName $_.UserPrincipalName).licenses | select accountskuid).accountskuid

$MasterList += $Object}

$MasterList | Out-GridView

}

Get-UserLicenseList

#######end script#######


Source: comunity.office365.com

pirmdiena, 2014. gada 6. oktobris

Enabling inactive Outlook add-ins that keep being unloaded

If you cannot enable addin:
1. Remove addin from File->Options->Add-Ins->COM Add-Ins and exit Outlook
2. Run REGEDIT and remove all disabled addins from
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Resiliency\DisabledItems]
3.Remove specified addin from
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Addins]
4. Reinstall specified addin
For example Microsoft exchange Add-In is located in
C:\Program Files\Microsoft Office 15\root\office15\ADDINS\UmOutlookAddin.dll

Source: www.outlook-apps.com