OWA completo no Google Chrome
Para quem acessa o OWA do Chrome, já deve ter percebido que ele só habilita a versão light do mesmo (sem chat, drag and drop, etc).
Dá pra resolver rápido isso e habilitar o full cliente, basta adicionar um plugin (User-Agent Switcher) para o chrome, baixando da Chrome Web Store e fazer uma configuração que afeta somente o OWA.
Link da Web Store: https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg
Caso o Link esteja quebrado, procurar por “User-Agent Switcher for Chrome” em https://chrome.google.com/webstore/
Enjoy
Mostrando a versão do Windows, com Build, no Desktop
Para desenvolvedores, esta versão é muito útil!
Para mostrar em seu desktop a versão do Windows, com build, basta abrir o RegEdit e ir até:
HKEY_CURRENT_USER\Control Panel\Desktop
E altere o valor de PaintDesktopVersion de 0 para 1.
No Windows 8 e 8.1 a alteração ocorre na mesma hora, no 7 e anteriores, demanda restart.
Enjoy!
Rodando um comando PowerShell com Visual C++
Segue um código que pode ser útil, efetuando adaptações necessárias:
try{ this->outLog->Text = this->outLog->Text + "\nHabilitando mailbox para " + this->userTxt->Text; RunspaceConfiguration ^runspaceConfig = RunspaceConfiguration::Create(); Runspace ^runspace = RunspaceFactory::CreateRunspace(runspaceConfig); // open it runspace->Open(); Pipeline ^pipeline = runspace->CreatePipeline(); // este é o script que vou executar, repare que é um do Exchange String ^scriptText2007 = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\PowerShell.exe -command \". 'C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\RemoteExchange.ps1'; Connect-ExchangeServer -auto; Enable-Mailbox -Identity 'corprd.bradesco.com.br/Users/" + this->userTxt->Text + "' -Alias '" + this->userTxt->Text + "'\""; //String ^scriptText2007 = C:\\bats\\teste2.ps1; pipeline->Commands->AddScript(scriptText2007); Collection ^results = pipeline->Invoke(); runspace->Close(); StringBuilder^ stringBuilder = gcnew StringBuilder(); for (int i = 0; i Count; i++ ) { stringBuilder->AppendLine(results[i]->ToString()); } this->outLog->Text = this->outLog->Text + "\nParseou resultados"; IntPtr result = Marshal::StringToBSTR(results->ToString()); String ^answer= stringBuilder->ToString(); IntPtr ptr = Runtime::InteropServices::Marshal::StringToBSTR(answer); this->outLog->Text = this->outLog->Text + answer; } catch (Exception ^err) { this->outLog->Text = this->outLog->Text + "\nERRO Habilitar MailBox"; IntPtr msg = Marshal::StringToBSTR(err->Message); this->outLog->Text = this->outLog->Text + err->Message; }
Enjoy!
Verificando a versão do PowerShell
Para verificar a versão do PowerShell instalada em sua máquina, basta efetuar os comandos abaixo:
Get-Host
e
$PSVersionTable
Exemplo:
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.
PS C:\Users\Kim_Akers> Get-Host
Name : ConsoleHost
Version : 3.0
InstanceId : 06e6c494-3f7b-4771-ad2f-4d7e4f649d3c
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
PS C:\Users\Kim_Akers> $PSVersionTable
Name Value
—- —–
WSManStackVersion 3.0
PSCompatibleVersions {1.0, 2.0, 3.0}
SerializationVersion 1.1.0.1
BuildVersion 6.2.9200.16398
PSVersion 3.0
CLRVersion 4.0.30319.1
PSRemotingProtocolVersion 2.2
PS C:\Users\Kim_Akers>
Enjoy
Spooler caindo no Windows 7
Sim… eu também posto coisas sobre Windows 🙂 Afinal, eu trabalho em TI e eventualmente, desenvolvo soluções para tal plataforma.
Encontrei um problema em um cliente, no qual eu não conseguia instalar uma impressora, verifiquei que o spooler de impressão CAIA quando eu adicionava o driver, e isso, gerava uma falha ao adicionar o mesmo, não permitindo que a instalação funcione.
Resolvi seguindo as dicas a seguir:
1. Go to Programs and Features in Control panel > click Turn Windows features on or off
2. click + sign of Print services
3. Select LPD and LPR. You should remove Internet Printing Client. > restart your PC to ensure there is no error of spooler service.
4. Add your printer driver again.