Set-TimeZone -name "Central Europe Standard Time"
Set-TimeZone -name "Central Europe Standard Time"
md c:\!iso
Invoke-WebRequest 'https://aka.ms/WACDownload' -OutFile "c:\!iso\WAC.msi"
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowSecondsInSystemClock /t REG_dword /d 1
wmic product where "name like 'ScreenConnect Client (%%%%%%%%%%%%%%%)'" call uninstall /nointeractive
Get-Disk | foreach { $_ | Get-StorageReliabilityCounter | Format-List }
Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"
/10 -273,15
Add-VpnConnectionRoute -ConnectionName nazev_vpn -DestinationPrefix 192.168.0.0/16 -PassThru
https://docs.microsoft.com/en-us/powershell/module/vpnclient/add-vpnconnectionroute?view=win10-ps
New-NetFirewallRule -DisplayName "SZT Allow SNMP" -Direction Inbound -protocol UDP -LocalPort 161 -Action Allow
w32tm.exe /config /manualpeerlist:”pool.ntp.org ntp.nic.cz” /syncfromflags:manual /reliable:YES /update
w32tm.exe /config /update
Restart-Server w32time
InactiveADUsers:
Search-ADAccount –AccountInActive –TimeSpan 90:00:00:00 –ResultPageSize 2000 –ResultSetSize $null | ?{$_.Enabled –eq $True} | Select-Object Name, SamAccountName, DistinguishedName | Export-CSV “C:\Temp\InActiveUsers.CSV” –NoTypeInformation
WebDav Limit:
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters /v FileSizeLimitInBytes /t REG_DWORD /d 0xffffffff /f
reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f