Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Monday, December 5, 2011

delay for wireless client for deploy GPO MSI software

Add this key for boot delay 60 sec for wireless client for deploy GPO and install MSI software.
Usualy 60 sec is enough but you can increase it if need. I use GPO for set this key. 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"GpNetworkStartTimeoutPolicyValue"=dword:0000003c

Wednesday, August 24, 2011

MS Outlook autocomplete cache file

MS Outlook autocomplete cache file 
path for file:
Windows XP
C:\Documents and Settings\username\Application Data\Microsoft\Outlook\outlook.NK2
Windows 7
C:\Users\username\AppData\Roaming\Microsoft\Outlook\outlook.NK2
Maximim emails key
H_KEY_CURRENT_USER\Software\microsoft\Office\10.0\outlook\
DWORD MaxNicknames default it is 1000

Friday, August 5, 2011

Remote change power settings

you can use it if need change power settings for remote computer

get info about remote power pc settings:

PsExec.exe \\rcomputer  powercfg -query

 

disable sleep timeout:

PsExec.exe \\rcomputer  powercfg -change -standby-timeout-ac 0

 

other interesting options:

 

powercfg -change -monitor-timeout-ac 0

powercfg -change -monitor-timeout-dc 0

powercfg -change -disk-timeout-ac 0

powercfg -change -disk-timeout-dc 0

powercfg -change -standby-timeout-ac 0

powercfg -change -standby-timeout-dc 0

powercfg -change -hibernate-timeout-ac 0

powercfg -change -hibernate-timeout-dc 0

 

Remote enable Remote Desktop

This example show how you can use PsExec for enable Remote Desktop remotely

Enable RDP:

PsExec.exe \\remotepc  reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0

 

Enable RDP through firewall:

PsExec.exe \\remotepc netsh firewall set service remoteadmin enable

PsExec.exe \\remotepc netsh firewall set service remotedesktop enable

Friday, July 8, 2011

Change your Windows MTU

Example how to find your correct MTU
 
1. Find your Windows MTU:
netsh interface ipv4 show subinterfaces 
 
2. Find your ISP MTU:
ping yourISPgatewayIP -f -l 1400
incrice size until you get:
Packet needs to be fragmented but DF set.
Last sucsess ping size+28 is you correct MTU
 
3. For set MTU:
netsh interface ipv4 set subinterface "Local Area Connection" mtu=1472 store=persistent
 

 

 

  

Sunday, March 13, 2011

Bat file for reboot PC remotely

Sometimes you need reboot pc at night. It help you.

@echo off 
dsquery computer ou=workstations,dc=contoso,dc=com -o rdn > pc_workstations.txt
for /F "tokens=*" %%i in (pc_workstations.txt) do call :reboot %%i%
goto Ready

:Reboot
set remotepc=%1%
set remotepc=%remotepc:~1,-1%
shutdown /f /r /c "Reboot by administrator" /m \\%remotepc%
goto :EOF

:Ready