Lapas

otrdiena, 2014. gada 25. novembris

Speed up windows search indexing

Run gpedit.msc

Enable policy Computer Configuration -> Administrative Template -> Windows Components -> Search -> Disable indexer backoff

Restart Windows Search service:
net stop wsearch
net start wsearch


Source: www.question-defense.com

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

ceturtdiena, 2014. gada 25. septembris

Group Policy ADM template for Internet Explorer Proxy Server settings


Create file and paste the code:

;----------------------------------------------------------------------------------------------
;IE_Proxy_Settings_AllBuilds.ADM
;------------------------------------------------------------------------------------------------
CLASS USER
CATEGORY "Windows Components"
CATEGORY "Internet Explorer"

 POLICY "Enable Proxy"
 EXPLAIN !!PVHelp
 KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
  VALUENAME "ProxyEnable"
  VALUEON NUMERIC 1
  VALUEOFF NUMERIC 0
 END POLICY

 POLICY "Proxy Server"
 EXPLAIN !!ProxyServerHelp
 KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
  PART "Proxy Server" EDITTEXT REQUIRED
  VALUENAME "ProxyServer"
  DEFAULT "192.168.0.254:8080"
 END PART
 END POLICY

 POLICY "Proxy ByPassList"
 EXPLAIN !!ProxyByPassList
 KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
  PART "Proxy ByPassList" EDITTEXT REQUIRED
  VALUENAME "ProxyOverride"
  DEFAULT ".domain.com"
 END PART
 END POLICY

 END CATEGORY;
 END CATEGORY;
[strings]
PVHelp="Enable or Disable the Proxy"
ProxyServerHelp="Please type in the Proxy Server Address and include any port information. Example: 192.168.0.254:8080"
ProxyByPassList="Enter addresses separated by semicolon. To bypass local address use the format ;<local> for more info go to http://technet.microsoft.com/en-us/library/dd361953.aspx"


;------------------------------------------------------------------------------------------------
 

After loading the template using Add/Remove for Administrative Templates, you'll find under User > Admin Templates > Classic Administrative templates the three settings which can be used to define the proxy server.

Source: columbiabrain.blogspot.com

Check applied GPO for current user

Check which GPO are applied:

gpresult /r

Check applied GPO settings:

gpresult /v >>%userprofile%\Desktop\resutl.txt