WeetA

Quand normalement rime avec rarement !

Convertir Windows 2012 R2 évaluation en version complète

Voir l'état de l'activation

C:\>cscript.exe C:\Windows\System32\slmgr.vbs /dlv
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 6.3.9600.16497

Name: Windows(R), ServerStandardEval edition
Description: Windows(R) Operating System, TIMEBASED_EVAL channel
Activation ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Application ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Extended PID: XXXXX-XXXXX-XXX-XXXXXX-XX-XXXX-XXXX.XXXX-XXXXXXX
Product Key Channel: Retail:TB:Eval
Installation ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Use License URL: https://activation-v2.sls.microsoft.com/SLActivateProduct/SLActivateProduct.asmx?configextension=Retail

Validation URL: https://validation-v2.sls.microsoft.com/SLWGA/slwga.asmx
Partial Product Key: 3YGPC
License Status: Licensed
Timebased activation expiration: 259181 minute(s) (180 day(s))
Remaining Windows rearm count: 5
Remaining SKU rearm count: 6
Trusted time: 7/25/2015 6:37:55 AM

Voir l'édition actuelle

C:\>DISM.exe /Online /Get-CurrentEdition

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Current edition is:

Current Edition : ServerStandardEval

The operation completed successfully.

Lister les versions possibles pour la mise à niveau

C:\>DISM.exe /Online /Get-TargetEditions

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Editions that can be upgraded to:

Target Edition : ServerStandard
Target Edition : ServerDatacenter

The operation completed successfully.

Mettre à niveau en version complète

C:\>DISM.exe /Online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Starting to update components...
Starting to install product key...
Finished installing product key.

Removing package Microsoft-Windows-ServerStandardEvalEdition~31bf3856ad364e35~amd64~~6.3.9600.16384
[==========================100.0%==========================]
Finished updating components.

Starting to apply edition-specific settings...
Finished applying edition-specific settings.

The operation completed successfully.
Restart Windows to complete this operation.
Do you want to restart the computer now? (Y/N)

Après le reboot

C:\>cscript.exe C:\Windows\System32\slmgr.vbs /dlv
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 6.3.9600.16497

Name: Windows(R), ServerStandard edition
Description: Windows(R) Operating System, RETAIL channel
Activation ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Application ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Extended PID: XXXXX-XXXXX-XXX-XXXXXX-XX-XXXX-XXXX.XXXX-XXXXXXX
Product Key Channel: Retail
Installation ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Use License URL: https://activation-v2.sls.microsoft.com/SLActivateProduct/SLActivateProduct.asmx?configextension=Retail

Validation URL: https://validation-v2.sls.microsoft.com/SLWGA/slwga.asmx
Partial Product Key: XXXXX
License Status: Licensed
Remaining Windows rearm count: 1000
Remaining SKU rearm count: 1001
Trusted time: 7/25/2015 7:15:38 AM

Voir l'édition actuelle après mise à niveau

C:\>DISM.exe /Online /Get-CurrentEdition

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Current edition is:

Current Edition : ServerStandard

The operation completed successfully.

Activer le TRIM pour des SSD tiers sur Mac OS X Yosemite 10.10.4

Mac OS X Yosemite 10.10.4 apporte le support du TRIM pour des SSD non Apple.

La commande suivante permet de l'activer. Comme indiqué dans le le Warning, Ni Apple (ni moi d'ailleurs :) ne pourra être tenu responsable en cas de problème.

$ sudo trimforce enable
Password:
IMPORTANT NOTICE:  This tool force-enables TRIM for all relevant attached
devices, even though such devices may not have been validated for data
integrity while using TRIM.  Use of this tool to enable TRIM may result in
unintended data loss or data corruption.  It should not be used in a commercial
operating environment or with important data. Before using this tool, you
should back up all of your data and regularly back up data while TRIM is
enabled.  This tool is provided on an “as is” basis. APPLE MAKES NO WARRANTIES,
EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES,
SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE
EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND
THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND
EFFORT IS WITH YOU.
Are you sure you wish to proceed (y/N)? y
Your system will immediately reboot when this is complete.
Is this OK (y/N)? y
Enabling TRIM...
.
.
Operation succeeded. Your system will reboot momentarily, please wait...

Exemple avec un Crucial BX100

An unhandled exception occurred in the Autodiscover service (EventID 1 & 2005)

Symptômes

Unhandled Exception "displayName has zero length
Parameter name: displayName"
Stack Trace:    at Microsoft.Exchange.Data.Storage.ExchangePrincipal.FromMailboxData(String displayName, String serverFqdn, String serverLegacyDN, String mailboxLegacyDN, Guid mailboxGuid, Guid mdbGuid, String primarySmtpAddress)
   at Microsoft.Exchange.Autodiscover.Providers.Outlook.OutlookAutoDiscoverProvider.GetRedirectURL()
   at Microsoft.Exchange.Autodiscover.Core.Service.GenerateResponse()
   at Microsoft.Exchange.Autodiscover.Default.OnLoad(EventArgs args)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The Autodiscover request processed with error, User SID:"S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxx", HostAddress:"10.xxx.xxx.xxx", HostName:"10.xxx.xxx.xxx".

Cause

Comme indiqué dans l'event ID 1, l'utilisateur n'a pas de Display Name (longueur de 0).

Résolution

Remettre un Display Name à l'utilisateur

Retrouver l'utilisateur

Méthode 1 - Exchange Management Shell 2007 / Get-User

[PS] Get-User -Filter { Sid -eq "S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-500" }

Name                                                        RecipientType
----                                                        -------------
Administrator                                               UserMailbox

Méthode 2 - Exchange Management Shell 2010+ / Get-User

[PS] Get-User "S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-500"

Name                                                        RecipientType
----                                                        -------------
Administrator                                               UserMailbox

Méthode 3 - PowerShell / .Net Security Principal

[PS] $SecurtityIdentifier = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-500")
[PS] $SecurtityIdentifier.Translate([System.Security.Principal.NTAccount])

Value
-----
NEWLAB\Administrator

Méthode 4 - PowerShell avec module ActiveDirectory / Get-ADUser

[PS] Import-Module ActiveDirectory
[PS] Get-ADUser "S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-500"
DistinguishedName : CN=Administrator,CN=Users,DC=newlab,DC=local
Enabled           : True
GivenName         :
Name              : Administrator
ObjectClass       : user
ObjectGUID        : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
SamAccountName    : Administrator
SID               : S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-500
Surname           :
UserPrincipalName : Administrator@newlab.local

Remettre le Display Name

Méthode 1 - Automatique

[PS] Get-Mailbox Administrator | Set-Mailbox
WARNING: The object newlab.local/NewLab/Users/Administrator has been corrupted, and it's in an inconsistent state.
The following validation errors happened:
WARNING: DisplayName is mandatory on UserMailbox.
[PS] Get-Mailbox Administrator | fl DisplayName
DisplayName : Administrator

Méthode 2 - Manuelle

[PS] Set-Mailbox Administrator -DisplayName "Administrator"
[PS] Get-Mailbox Administrator | fl DisplayName
DisplayName : Administrator