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
}

Friday, November 16, 2018

Logon script to restart computers from list

for /F "tokens=*" %%x in ('type c:\tmp\restart.txt') do ( shutdown.exe -m "%%x" -t 0 -r -f )
pause


in txt file write computer fqdn names 

Change Mozilla Firefox home page GPO


On old versions  Mozilla ADMX does not work properly
to change home page use this bat script (create log on script policy)

---------------

echo off
cd /D "%APPDATA%\Mozilla\Firefox\Profiles"
cd *.default
set ffile=%cd%
echo %user_pref("browser.startup.homepage", );% del /f /q "%ffile%\prefs.js"
echo user_pref("browser.startup.homepage", "http://int.psh.gov.ge");>>"%ffile%\prefs.js"
set ffile=
cd %windir%

------------------


If your mozilla version is higher, than 60 version, you can you ADMX templates (Create computer base policy)

you can download here :

https://github.com/mozilla/policy-templates/releases