Navigation

Windows

Optimizace SSD na Win7

  1. Check align by program as ssd benchmark
  2. Turn off defragmenter (%windir%\system32\dfrgui.exe)
  3. Turn off indexing SSD drive (Drive properties uncheck last option at bottom)
  4. Turn off Prefetch a Superfetch (see attachment)
  5. Check Trim support W7 (must be 0)
Tags: 

Powershell - network monitor via ping

$servers = "seznam.cz","google.cz"
$collection = $()
$OutputFile = "D:\test\output.csv"
do {
	foreach ($server in $servers)
	{
		$status = @{ "ServerName" = $server; "TimeStamp" = (Get-Date -f s) }
		if (Test-Connection $server -Count 1 -ea 0 -Quiet)
		{ 
			$status["Results"] = "Up"

		} 
		else 
		{ 
			$status["Results"] = "Down" 
			$now = Get-Date -uformat "%Y/%m/%d %H:%M:%S"
			$out = $status["ServerName"] + " = " + $status["Results"] + " - " + $now
			$out | Out-File $OutputFile -append
		}
		sleep 1
		
		# $now = Get-Date -uformat "%Y/%m/%d %H:%M:%S"

Klávesové zkratky Microsoft Windows 7/8

Win + c - Zobrazení ovládacích tlačítek
Win + d - Zobrazení plochy
Win + f - Vyhledání souborů
Win + i - Otevření nastavení počítače
Win + k - Otevření zařízení
Win + l - Uzamknutí počítače
Win + m - Minimalizace všech otevřených oken
Win + o - Uzamčení orientace obrazovky
Win + p - Přenos obrazu z obrazovky na připojený projektor
Win + q - Vyhledání aplikací
Win + r - Otevření aplikace nebo souboru
Win + w - Vyhledání nastavení
Win + x - Zobrazení nabídky start

Silent installations, Adobe, Pinnacle, FontCreator

Adobe (Adobe Design Standard CS6, Adobe Premiere Pro CS6):
Download program: Adobe Application Manager Enterprise Edition
Make installation by AAMEE

msiexec.exe /i AdobeDesignStandardCS6-32bit.msi /qn

Adobe (Photoshop Elements 12):
Download and extract program: Adobe Provisioning Toolkit Enterprise Edition

PowerShell - příklady

Get-Command
Get-Command -verbget
Get-Command -verb get
Get-Command *
Get-Command *-service
history
get-help
get-help get-service
get-help Get-Service -examples
get-service -displayname *network*
ls
Get-Service --help
Get-Service -Name a*
Get-Service -Name *a*
Get-Service -Name *aw*
Get-Service -Name *w*
Get-Service -Name *wa*
Get-ADuser
Get-Service -Name *aw*
Get-Item
get-alias
Get-Alias -Definition Get-ChildItem
Get-Command *alias*
New-Alias np C:\Windows\System32\notepad.exe
np
sort
Get-Command *sort*
ip /a
Get-Process

Change internet settings in windows

internet.bat

@echo off
if "%1"=="static" goto static
if "%1"=="dhcp" goto dhcp
echo Usage: %0 (static^|dhcp)
goto end2
:static
echo Setting static IP of 192.168.xxx.xxx
netsh int ipv4 set address "Local Area Connection" static 192.168.xxx.xxx 255.255.255.0 192.168.xxx.xxx 1
echo Setting primary DNS server to 192.168.xxx.xxx
netsh int ipv4 set dnsservers "Local Area Connection" static 192.168.xxx.xxx primary
goto end
:dhcp

Winexe - Winexe remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux

Winexe remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux (probably also other Unices capable to compile Samba4).

/etc/apt/sources.list

 
apt-get install winexe

 

 

Wifi scanner in windows terminal

Save wifi network to file defined by user

set INPUT=
set /P INPUT=Misto: %=%
echo Misto: %INPUT% >> %INPUT%.txt
echo -------------------------------------- >> %INPUT%.txt
netsh wlan show all >> %INPUT%.txt
echo Misto: %INPUT% >> %INPUT%.txt
echo ====================================== >> %INPUT%.txt

Windows commands

arp -a - tabulka pro překlad IP adres na fyzické adresy

 

printui /s /t2 - remove/delete printer/driver from Windows 7

 

Batch Script - Create user in Windows XP programmatically
net user username password /add 
net localgroup administrators user /add

Pages

Subscribe to Windows