Monday, September 3, 2018

Disable IPv6 GPO

Add the preference will be Computer Configuration > Preferences > Windows Settings > Registry. In there, you want to add a new Registry Item, with the below settings on the General tab:

  • Action: Update
  • Hive: HKEY_LOCAL_MACHINE
  • Key Path: SYSTEM\CurrentControlSet\services\TCPIP6\Parameters
  • Value Name: DisabledComponents
  • Value Type: REG_DWORD
  • Value Data: FF
  • Base: Hexadecimal

Thursday, July 5, 2018

Extend Volume failed, but partition was extended

If you extended disk but space doesnot added to partition

Open CMD as administrator:

  1. diskpart
  2. list volume
  3. select volume x
  4. extend filesystem

Tuesday, June 19, 2018

VMware find VM by mac address

Get-VM | Get-NetworkAdapter | Where {$_.MacAddress -eq "00:50:51:b7:54:a1"} | select parent,macaddress

Monday, June 11, 2018

IIS URL redirect error

When you are using iis to redirect  proxy IIS Return 404.4 Not Found when URL Rewrite on some pages , but page exists.

Open IIS rewrite web.config  file  and add inside the <system.webServer> tag, add the following:

<security>
<requestFiltering allowDoubleEscaping="true" />
</security>

Thursday, June 7, 2018

Change Sip addresses user powershell

Change old sip address to new to all users. Open skype for business powershell  and run :

$x = Get-CsUser | Where-Object {$_.SipAddress -like "*@oldSIP"}

 foreach ($i in $x)

    {
        $oldAddress = $i.SipAddress

        $newAddress = $oldAddress -replace "@oldSIP", "@newSIP"

        Set-CsUser -Identity $i.Identity -SipAddress $newAddress
    }

Thursday, May 31, 2018

Exchange change Search results limit 250

Exchange 2016  has search limit , when your outlook is online, or in web mail
to change this limit run this command in exchange shell to change limit from 250 to 5000:


New-SettingOverride -Name "Increase Search Results Limit" -Component ManagedStore -Section StoreSettings -Parameters @("MaxHitsForFullTextIndexSearches=5000") -Reason "Increases Search Result Limit from 250 to 5000"

Wednesday, May 30, 2018

Export File server Permissions to CSV

Export share folder Permissions to CSV file using powershell:


 $FolderPath = dir -Directory -Path "\\sharefolderPath" -Recurse -Force
 $Report = @()
 Foreach ($Folder in $FolderPath) {
     $Acl = Get-Acl -Path $Folder.FullName
     foreach ($Access in $acl.Access)
         {
             $Properties = [ordered]@{'FolderName'=$Folder.FullName;'AD
 Group or
 User'=$Access.IdentityReference;'Permissions'=$Access.FileSystemRights;'Inherited'=$Access.IsInherited}
             $Report += New-Object -TypeName PSObject -Property $Properties
         }
 }
 $Report | Export-Csv -path "C:\tmp\FolderPermissions.csv"