Monday, January 14, 2019

[WSRV] Search for file with a special character in the file name?



~="("

~="&"

~="hello you (1"

[WSRV] AVMA Keys


slmgr /ipk <AVMA_key>  



AVMA keys

The following AVMA keys can be used for Windows Server 2019.
EditionAVMA key
DatacenterH3RNG-8C32Q-Q8FRX-6TDXV-WMBMW
StandardTNK62-RXVTB-4P47B-2D623-4GF74
Essentials2CTP7-NHT64-BP62M-FV6GG-HFV28
The following AVMA keys can be used for Windows Server, version 1809.
EditionAVMA key
DatacenterH3RNG-8C32Q-Q8FRX-6TDXV-WMBMW
StandardTNK62-RXVTB-4P47B-2D623-4GF74
The following AVMA keys can be used for Windows Server, version 1803 and 1709.
EditionAVMA key
DatacenterTMJ3Y-NTRTM-FJYXT-T22BY-CWG3J
StandardC3RCX-M6NRP-6CXC9-TW2F2-4RHYD
The following AVMA keys can be used for Windows Server 2016.
EditionAVMA key
DatacenterTMJ3Y-NTRTM-FJYXT-T22BY-CWG3J
StandardC3RCX-M6NRP-6CXC9-TW2F2-4RHYD
EssentialsB4YNW-62DX9-W8V6M-82649-MHBKQ
The following AVMA keys can be used for Windows Server 2012 R2.
EditionAVMA key
DatacenterY4TGP-NPTV9-HTC2H-7MGQ3-DV4TW
StandardDBGBW-NPF86-BJVTX-K3WKJ-MTB6V
EssentialsK2XGM-NMBT3-2R6Q8-WF2FK-P36R2

Saturday, January 12, 2019

[EX16] Script to send test message with attachment


Add-PSSnapin Microsoft.Exchange.Management.Powershell.Admin -erroraction silentlyContinue
$file = "C:\Users\admin\Desktop\f2.zip"
get-mailbox -organizationalunit "formula one" | % {Send-MailMessage -SmtpServer exhub.domain.int -To $_.primarysmtpaddress -From senna@domain.com -Subject “SUBJECT HERE” -Body “BODY HERE” -attachment $file}

[EX16] Correct UPN to match Smtp


$ggg = Get-Mailbox -OrganizationalUnit "formula indy"
$ggg | % {Set-Mailbox -Identity $_ -UserPrincipalName  $_.primarysmtpaddress}

Thursday, January 3, 2019

[WSRV] Powershell Cmdlets - Network



Test-NetConnection -ComputerName "Hostname or IP"

Test-NetConnection "Hostname" -Port #

Test-NetConnection "Hostname" -traceroute

Get-NetIPConfiguration

Resolve-DnsName -Name "Hostname"

Get-NetTCPConnection

Get-DnsClient
Set-DnsClientServer Address

Clear-DnsClientCache


Disable-NetAdapter -Name "Adapter Name"
Enable-NetAdapter -Name "Adapter Name"

Sunday, December 16, 2018

[EXO] PST Import Mapping Example


Workload,FilePath,Name,Mailbox,IsArchive,TargetRootFolder,SPFileContainer,SPManifestContainer,SPSiteUrl
Exchange,,PST2.pst,mbxtoimport@domain.com.br,FALSE,/,,,,

Monday, August 6, 2018

[OFF] Working with channel and bulids




Switching Channels:

cd “C:\Program Files\Common Files\Microsoft Shared\ClickToRun

OfficeC2RClient.exe /changesetting Channel=Current

OfficeC2RClient.exe /update user



ChannelKeyword in CMD or ODT
  Monthly Channel (Targeted)  Channel="Insiders" or Channel="FirstReleaseCurrent"
  Monthly Channel  Channel="Monthly" or Channel="Current"
  Semi-annual Channel (Targeted)  Channel="Targeted" or Channel="FirstReleaseDeferred"
  Semi-annual Channel  Channel="Broad" or Channel="Deferred"




    Switching Builds:

    PATHS:
    Office 2013 x86: cd %programfiles%\Microsoft Office 15\ClientX86 
    Office 2013 x64: cd %programfiles%\Microsoft Office 15\ClientX64 
    Office 2016: cd %programfiles%\Common Files\Microsoft Shared\ClickToRun 

    OfficeC2RClient.exe /update user updatetoversion=15.0.xxxx.yyyy  

    Run an Online Repair right after that to complete the installation