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

    [EX10] Check Send-As Permissions



    Finding all users who have Send-As :

    Get-Mailbox -Resultsize Unlimited | Get-ADPermission | ? {($_.ExtendedRights -like "*send-as*") -and -not
    ($_.User -like "nt authorityself")} | ft Identity, User -auto

    Find out who a particular user can Send-As:

    Get-Mailbox -Resultsize Unlimited | Get-ADPermission | ? {($_.ExtendedRights -like "*send-as*") -and -not
    ($_.User -like "nt authorityself") -and ($_.User -like "DOMAINUsernameUwantToFind")} | ft Identity, User -auto

    Find all users who have Full Access to the mailbox of others:

    Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | ? {($_.AccessRights -match "FullAccess") -and 
    not ($_.User -like "NT AUTHORITYSELF")} | ft Identity, User

    Add Full Access without Auto-Mapping:

    Add-MailboxPermission -Identity JeroenC -User 'Mark Steele' -AccessRight FullAccess -InheritanceType All -Automapping $false


    "This example removes auto-mapping on an existing shared mailbox and removes the auto-mapping behavior for users who have already been granted Full Access permissions."

    $FixAutoMapping = Get-MailboxPermission sharedmailbox |where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false}
    $FixAutoMapping | Remove-MailboxPermission
    $FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $false}

    Saturday, July 21, 2018

    [EX13] Enable log for OWA components



    https://mail.domain.com/owa/?traceLevel=4&traceComponents=smime

    [WSRV] Exporting VM settings



    $FormatEnumerationLimit = -1

    cd $HOME\Desktop
    mkdir VM

    Get-VM | ft -autosize > $home\Desktop\VM\Get_VM_ft.txt
    Get-VM | fl > $home\Desktop\VM\Get_VM_fl.txt
    Get-VM | Get-VMCheckpoint | ft -autosize > $home\Desktop\VM\Get_VMCheckpoint_ft.txt
    Get-VM | Get-VMsnapshot | ft -autosize > $home\Desktop\VM\Get_VMsnapshot_ft.txt
    Get-VM | Get-VMHardDiskDrive | fl > $home\Desktop\VM\Get_VMHardDiskDrive_fl.txt
    Get-VM | Get-VMHardDiskDrive | ft -autosize > $home\Desktop\VM\Get_VMHardDiskDrive_ft.txt
    Get-VMHost > $home\Desktop\VM\Get_VMHost.txt
    Get-VM | Get-VMIdeController | ft -AutoSize > $home\Desktop\VM\Get_VMIdeController_ft.txt
    Get-VM | Get-VMIntegrationService | ft -AutoSize > $home\Desktop\VM\Get_VMIntegrationService_ft.txt
    Get-VM | Get-VMIntegrationService | sort enabled | ft -AutoSize > $home\Desktop\VM\Get_VMIntegrationService_sort.txt
    Get-VM |  Get-VMMemory | ft -AutoSize > $home\Desktop\VM\Get_VMMemory_ft.txt
    Get-VM | Get-VMNetworkAdapter | ft -AutoSize > $home\Desktop\VM\Get_VMNetworkAdapter_ft.txt
    Get-VM | Get-VMNetworkAdapter | fl > $home\Desktop\VM\Get_VMNetworkAdapter_fl.txt
    Get-VMNetworkAdapterIsolation > $home\Desktop\VM\Get_VMNetworkAdapterIsolation.txt
    Get-VMNetworkAdapterVlan > $home\Desktop\VM\Get_VMNetworkAdapterVlan.txt
    Get-VMSystemSwitchExtension > $home\Desktop\VM\Get_VMSystemSwitchExtension.txt
    Get-VMSwitch > $home\Desktop\VM\Get_VMSwitch.txt
    Get-VMSwitch | fl > $home\Desktop\VM\Get_VMSwitch_fl.txt

    Thursday, February 8, 2018

    [LY15] Remove user reference from Director



    USE [rtc]
    GO

    DELETE FROM [dbo].[UserPolicy]
          WHERE ResourceId = '244'
    GO




    USE [rtc]
    GO

    DELETE FROM [dbo].[ResourceDirectory]
          WHERE ResourceId = '244'
    GO





    USE [rtc]
    GO

    DELETE FROM [dbo].[Resource]
          WHERE ResourceId = '244'
    GO



    [WSRV] Remove Server GUI



    uninstall-windowsfeature server-gui-shell, server-gui-mgmt-infra