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

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

ceturtdiena, 2014. gada 18. septembris

Unlock Autodesk USB installation media

You can unlock usb flash with Phison MPALL

MPALL_F1_7F00_DL17_v363_0C / Phison MPALL v3.63.0C-DL17
Start it, put your usb stick into your USB 3.0 port.
Click update, then settings.
Choose advance settings and load the ini file.
Click save, and ok on a pop-up window.
Close settings window by clicking on "x".
Click start, the process lasts for about a minute and it's done


Here is detailed instruction for different versions: whatrevitwants.blogspot.com

For newer versions you need to start flash drive into TESTMOD.
To do it you need to open caseing and find chip with 64 pins. Shorten 34x35 pins (for PS2251-03-Q chip) and plug into usb port. After few seconds release pins.


Start Phison MPALL:
Setting type - Basic Settings - New settings
1. Choose controller: PS2251-03;
2. Specify host port where flash drive is pluged in;
3. Do ISP - Select burner and firmware files;
4. Perform low level format;
5. specify partition mode - 3.

Save settings, close setting window, press update, then start. 

##################################################################
Flash drive information extractor:

Controller: Phison 2303 (2251-03)
Possible Memory Chip(s):
  Toshiba TH58NVG8T2JTA20
  Toshiba TH58TEG8T2JTA20
  Toshiba TH58TEG8T2JBA4C
  Toshiba TC58NVG7T2JTA00
  Toshiba TC58TEG7T2JTA00
Memory Type: TLC
Flash ID: 983AA892 7650
Chip F/W: 01.09.53
Firmware Date: 2013-11-15
ID_BLK Ver.: 1.2.74.0
MP Ver.: MPALL v3.72.0B
VID: 13FE
PID: 5200
Manufacturer:       
Product: USB DISK 3.0
Query Vendor ID:       
Query Product ID: 2303 PRAM     
Query Product Revision: 1.00
Physical Disk Capacity: 31009800192 Bytes
Windows Disk Capacity:  0 Bytes
Internal Tags: 2QAP-S8P4
USB Version: 2.00
Declared Power: 300 mA
ContMeas ID: F872-01-00


Working Burner + F/W ISP files: BN03V117M.BIN + FW03FF01V10953M_20131115.BIN

##################################################################
 
Here you can find pinouts for PS2251-03-Q: https://bitbucket.org/
Here you can find lates binaries for your chip: http://www.usbdev.ru/files/phison/
Here you can find instructions for Phison MPALL: http://www.usbdev.ru/
Here you can download Flash Drive Information Extractor: http://www.usbdev.ru/files/usbflashinfo/

trešdiena, 2014. gada 17. septembris

Create and configure room list for outlook 2013/365

At firs verify that Windows PowerShell can run scripts:
Get-ExecutionPolicy

If the value returned is anything other than RemoteSigned, you need to run:
Set-ExecutionPolicy RemoteSigned

Connect to online Exchange server run:
$LiveCred = Get-Credential 
and type the credentials of an cloud administrator account

Then run:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

After that run:
Import-PSSession $Session

When you are online check for existing Room List Distribution groups and  Room mailboxes:
Get-DistributionGroup | Where {$_.RecipientTypeDetails -eq "RoomList"} | Format-Table DisplayName,Identity,PrimarySmtpAddress
and
Get-Mailbox | Where-Object {$_.RecipientTypeDetails -eq "RoomMailbox"} | Format-Table DisplayName,Identity,PrimarySmtpAddress

Create new Room List Distribution group:
New-DistributionGroup -Name Building_nr1 -DisplayName "Buildings display name" –PrimarySmtpAddress building_nr1@yourdomain.com –RoomList

Create new Room Mailbox:
New-MailBox -UserPrincipalName room_nr1@yourdomain.com -Name "Room nr1" -Room

Add existing Room Mailboxes to Room List Distribution Group:
Add-DistributionGroupMember –Identity Building_nr1 -Member room_nr1@yourdomain.com

When you're finished using the server-side session, always disconnect Windows PowerShell by running the following command:
Remove-PSSession $Session

Detailed procedure described here:  Use Windows PowerShell in Exchange Online
and here:  Enable Room Finder with Room List Distribution Group