toto spustit v kazdej ucebni v powershell ako Administrator stiahnut z www3 instalacky R a RStudio , kleopatra aris vsetko co sa instaluje v danom semestri do priecinka Downloads POZNAMKA: v LS netreba odinstalovat Omegu ---------------------------------------------------- Remove-LocalUser -Name "ucitel" -----------------------------pred zmazanim priecinkov musim vynutit prava admina prichybovej hlaske pri konkretnom uzivatelovi spustit tieto dva riadky a potom znova remove Takeown /F "C:\Users\ucitel" /R /D Y icacls "C:\Users\ucitel" /grant administrators:F /T ------------------------------- Remove-Item -Path "C:\Users\ucitel" -Recurse -Force ** treba este y a potom vsetkych uzivatelov, ktory tu maju priecinok ---------------------------------------------------------------- $Password = Read-Host -AsSecureString "ucitel" New-LocalUser -Name "ucitel" -Password $Password -FullName "ucitel" -Description "ucitel" -PasswordNeverExpires -UserMayNotChangePassword $Password = Read-Host -AsSecureString "ucitelEN" New-LocalUser -Name "ucitelen" -Password $Password -FullName "ucitelen" -Description "ucitelen" -PasswordNeverExpires -UserMayNotChangePassword ------------------- pridat uzivatelov na vzdialeny pristup Add-LocalGroupMember -Group "Remote Desktop Users" -Member "ucitel" Add-LocalGroupMember -Group "Users" -Member "ucitel" Add-LocalGroupMember -Group "Administrators" -Member "ucitel" Add-LocalGroupMember -Group "Remote Desktop Users" -Member "ucitelen" Add-LocalGroupMember -Group "Users" -Member "ucitelen" Add-LocalGroupMember -Group "Administrators" -Member "ucitelen" -------------------------------------------------------------------------- skontrolovat registre duplicitnych uzivatelov zmazat Regedit Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ ------------------------------------------------------- Start-Process C:\"Program Files"\R\R-4.4.1\unins000.exe Start-Process C:\"Program Files"\RStudio\Uninstall.exe Start-Process C:\"Program Files (x86)"\Gpg4win\gpg4win-uninstall.exe Start-Process C:\Users\admin\Downloads\R-4.4.2-win.exe Start-Process C:\Users\admin\Downloads\RStudio-2024.12.0-467.exe Start-Process C:\Users\admin\Downloads\gpg4win-4.4.0.exe Start-Process C:\Users\admin\Downloads\yEd-3.25_with-JRE23_64-bit_setup.exe Start-Process C:\Users\admin\Downloads\WacomTablet_6.4.8-6.exe Start-Process C:\Users\admin\Downloads\MSTeamsSetup.exe Start-Process C:\Users\admin\Downloads\Webex.exe Remove-Item -Path "C:\Omega\Omega.license" -Force Start-Process C:\Omega\Omega.exe -- 9d36-a341-595d-4b99 spustit Omegu a zadat kod winget install --id Microsoft.PowerBI ------------------------------ windows update Install-Module -Name PSWindowsUpdate -Force -AllowClobber Import-Module PSWindowsUpdate Get-WindowsUpdate Install-WindowsUpdate -AcceptAll -AutoReboot -------------------pred kopirovanim uzivatelskeho profilu profilu ------------------------- 1. nastavit resp. skontrolovat klavesnicu EN a nastavenia ucitelEN ci je klavesnica a rozhranie v EN 2 v jednej ucebni urobit vzorovych uzivateleov tj uzivatelske profily ucitel a ucitelEN a prikazom vytvorit USMT priecinok na klon --------------------------------------------------------- $URL = "http://www3.ekf.tuke.sk/ucebna/obr/N32_005/ekf.png" # Adresa súboru $OutputPath = "c:\Users\Public\Pictures\ekf.png" Invoke-WebRequest -Uri $URL -OutFile $OutputPath --------------------------------------------------------- v kazdej ucebni pod Administratorom stiahnut z http://www3.ekf.tuke.sk/ucebna/swLS2025/ 1. adksetup.exe a nainstalovat USMT prikaz v PWS : Start-Process C:\Users\admin\Downloads\adksetup.exe 2. priecinok USMT, ktory obsahuje subor so vzorovymi uzivatelmi --------------------- migracia kont pokus toto funguje ---------------------------- cd "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\User State Migration Tool\amd64" .\scanstate.exe c:\USMT /o /c /i:MigDocs.xml /i:MigApp.xml /i:miguser.xml priecinok USMT nahram priamo do admina ale v ceste neuvadzam nazov priecinku USMT stiahnem tu https://media.ekf.tuke.sk/fsdownload/sKzdyDhCl/ucebna alebo http://147.232.12.55/ucebna cca 24 minut .\loadstate.exe c:\users\admin /c /lac /i:MigDocs.xml /i:MigApp.xml /i:miguser.xml /v:13 /all cez uzivatela ekf takze priamo do users dam priecinok USMT .\loadstate.exe c:\users\ /c /lac /i:MigDocs.xml /i:MigApp.xml /i:miguser.xml /v:13 /all