Sunday, September 8, 2019

Sharepoint hide left menu

<style type="text/css">
 #sideNavBox {DISPLAY: none}
 #contentBox {MARGIN-LEFT: 5px}
</style>

Thursday, August 15, 2019

Move members of group to another OU

$OU = "OU=Users,OU=Test,DC=test,DC=com"
Get-ADGroupMember -Server test.com -Identity 'probation-'test-group' | foreach { Move-ADObject -server test.com -Identity $_.DistinguishedName -TargetPath $OU}

Thursday, June 20, 2019

Migrate DC 2008r2 to 2016/2019



Dcdiag /e /test:sysvolcheck /test:advertising

Dfsrmig /setglobalstate 1

Dfsrmig /getmigrationstate

Dfsrmig /setglobalstate 2

Dfsrmig /getmigrationstate

Dfsrmig /setglobalstate 3

Dfsrmig /getmigrationstate


sourse: https://www.youtube.com/watch?v=jl4vo5rD18A

Friday, January 25, 2019

Chrome Home page GPO

https://ittutorials.net/microsoft/windows-server-2016/gpo-google-chrome/

Tuesday, January 22, 2019

Create universal Image

Shift + ctrl + F3 Audit Mode

Friday, January 18, 2019

Configure Sharepoint Search


1) Add MultiStringValue to Registry name BackConnectionHostNames
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0

add Site FQDN names
for example: intranet.contoso.com


2) iireset /noforce

https://www.youtube.com/watch?v=LtjkBFVc35M

Tuesday, January 8, 2019

Remove Computers from txt list powershell

Import-Module ActiveDirectory
$PCs = Get-content c:\tmp\fordisable.txt
foreach ($PC in $PCs)
{
Remove-ADComputer -server test.local -identity $PC -confirm:$false
}