Saturday, June 17, 2017

[WSRV] Temporarily block installation of the .NET




  • Back up the registry.
  • Start Registry Editor. To do this, click Start, type regedit in the Start Search box, and then press Enter.
  • Locate and click the following subkey:

    HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP
  • After you select this subkey, point to New on the Edit menu, and then click Key.
  • Type WU, and then press Enter.
  • Right-click WU, point to New, and then click DWORD Value.
  • Type BlockNetFramework47, and then press Enter.
  • Right-click BlockNetFramework47, and then click Modify.
  • In the Value data box, type 1, and then click OK.
  • On the File menu, click Exit to exit Registry Editor.
  • Wednesday, March 1, 2017

    [LAB] Exchange 2007 CCR





    Pre-requisites in both Mailbox servers

    Import-Module Server Manager

    Add-WindowsFeature RSAT-ADDS,Web-Server,Web-ISAPI-Ext,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Basic-Auth,Web-Windows-Auth



    To each MBX server, on Hyper-V:


    • Click on SCSI Controler -> Hard Drive -> Add -> New -> Create a new VHD (one per server)
    • Click on Add Hardware -> Network Adapter -> Add -> Select a private heartbeat network




    Turn on the servers and:


    • Rename NICs, add IPs and Set the correct binding order
    • Bring the disks Online and Initialize them (assign the same letter)
    • In the Server Manager -> Features ->Add Features -> Failover Clustering 





    In the first server


    • Create a Cluster
    • Add all mailbox servers (in validation warning select: I don't require support...)
    • Set name and cluster IP



    Go to a CAS/HUB server


    • Create a folder called FSW_CCR1
    • Share the folder with Everyone and with Cluster Service Account
    • Finally give them Full Control Permissions 




    Back into the mailbox server


    • Open the Failover Cluster Management -> More Actions -> Configure Cluster Quorum Settings
    • Select Node And File Share Majority
    • Browse the Cas/Hub Server and select the Network sharing 
    • Start installation of the Clustered Mailbox servers
    • Select Custom Exchange Server Installation -> Active Clustered Mailbox Role -> Cluster Continuous Replication
    • Add a name for the Clustered mailbox, specify the path for database files in the SCSI disk previously created and specify the IP Address of the Clustered mailbox
    • After completed, proceed with the installation of the other servers selecting Passive Clustered Mailbox Role

    [EX2013] Default folder is missing



    Use the steps below to confirm that you are facing this issue, and to reset the PR_ATTR_HIDDEN property of the affected folder.

    1. Download and extract the MFCMAPI tool from http://mfcmapi.codeplex.com.
    2. Launch mfcmapi.exe and click OK through the intro screen.
    3. On the Session menu, click Logon.
    4. Select the Outlook profile for the affected mailbox, and click OK.
    5. Double-click the email address which represents the desired mailbox.
    6. In the left pane, navigate to the affected folder using the appropriate steps below for the type of Outlook profile you are using.

      Cached Mode
      1. Expand Root - Mailbox
      2. Expand IPM_SUBTREE


      Online Mode

      1. Expand Root Container
      2. Expand Top of information Store
    7. Locate and select the folder that appears missing in Outlook, and check the value of the PR_ATTR_HIDDEN to determine if it is set to True, as shown in the following figure:


    8. If PR_ATTR_HIDDEN shows a value of True, right-click the PR_ATTR_HIDDEN property and select Edit Property.
    9. Uncheck the Boolean checkbox and click OK.
    10. Close all MFCMAPI windows, and restart Outlook.


    While you are looking at the folder properties you should also check PR_ATTR_SYSTEM. Its default value is also False, so if you find it currently set to True, after completing steps 1 through 9 above, you should change this value as well, using the additional steps below.
    1. If PR_ATTR_SYSTEM shows a value of True, right-click the PR_ATTR_SYSTEM property and select Edit Property.
    2. Uncheck the Boolean checkbox and click OK.
    3. Close all MFCMAPI windows, and restart Outlook.




    https://support.microsoft.com/en-us/help/2992093/

    Tuesday, February 28, 2017

    [LY2013] Find the share of a pool




    #Quickly find and open the share folder for the Lync pool

    Invoke-Item(Get-CsService -FileStore | Select-Object -ExpandProperty UncPath)

    [EX2013] Recreate arbitration mailboxes




    Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

    Get-User | Where {$_.Name –like "SystemMailbox*"} | Enable-Mailbox -Arbitration -Database IT_E15
    Get-User | Where {$_.Name –like "FederatedEmail*"} | Enable-Mailbox -Arbitration -Database IT_E15
    Get-User | Where {$_.Name –like "Migration*"} | Enable-Mailbox -Arbitration -Database IT_E15

    Get-Mailbox –Identity "SystemMailbox{e0dc1c29*" –Arbitration | Set-Mailbox –Arbitration –DisplayName "Microsoft Exchange"

    Get-Mailbox –Arbitration –Identity "FederatedEmail*" | Set-Mailbox –Arbitration –ProhibitSendQuota 1MB

    Get-Mailbox –Arbitration –Identity "Migration*" | Set-Mailbox –Arbitration –ProhibitSendQuota 300MB

    [WSRV] Capture machine FQDN




    $fqdn = "$env:computername.$env:userdnsdomain"

    import-module activedirectory
    $name = hostname
    $domain = (Get-ADDomain).dnsroot
    $pc = ("$name"+"."+"$domain")
    $pc

    Tuesday, February 21, 2017

    [EX2010] Remove special characters in public folder name




    • Look for special character in public folder name:

    Get-MailPublicFolder | where {$_.alias.contains(' ') -or $_.alias.contains(',') -or $_.alias.contains('@') -or  $_.alias.contains('(') -or  $_.alias.contains(')') -or  $_.alias.contains(':') -or  $_.alias.contains(';')}



    • To fix the issue, run the cmdlet:

    Get-MailPublicFolder | where {$_.alias.contains(' ') -or $_.alias.contains(',') -or $_.alias.contains('@') -or  $_.alias.contains('(') -or  $_.alias.contains(')') -or  $_.alias.contains(':') -or  $_.alias.contains(';')}| Foreach { Set-mailpublicfolder -Identity $_.Identity -Alias ($_.Alias -replace "\s|\,|\@|\(|\)|\:|\;") }



    • Run the first command again to check if still there are public folders with unwanted characters in the name