Monday, March 14, 2016

Change a partition letter without disk management

The easy way is to open Disk Management (diskmgmt.msc) and right click and chose change partition letter. But for ex in windows embedded posready 2009 you do not have this option.

Open regedit and navigate to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
Rename \DosDevices\D: to \DosDevices\E:  for ex and then restart windows.


Sunday, March 13, 2016

VirtualBox showing only 32 bit os

Search for Turn windows features on or off
and deselect Hyper-v
Restart windows.

Tuesday, March 8, 2016

Resolve host name from IP address

For a windows machine you can check netbios records : 
 
nbtstat -a 192.168.1.50
 

To release or renew a DHCP ip type from cmd :
ipconfig /release 
ipconfig /renew

Hosts - file location : %SystemRoot%\System32\drivers\etc\hosts

To flush dns : ipconfig /flushdns

Monday, February 8, 2016

Free space on windows partition - Disable Hiberfil.sys and change virtual memory partition

1. Run cccleaner and free temporary files.
You can access temp folder by : %temp% manually

2. Disable Hiberfil.sys - around 4gb of space
Easiest mother open a cmd with administrator rights and type :
powercfg.exe -h off
powercfg.exe /hibernate off

3. Move Virtual Memory to other partition :
Open System Properties - Advanced -> In Performance section select - Settings - Advanced -> Virtual Memory - Change - Set to No paging file on windows partition and the select other partition and set it to System Managed size

Wednesday, November 25, 2015

Login locally to windows on a domain computer without typing computer name

To login to a computer that is in a domain and you want to log in locally instead of typing :
coputername\user
type :
.\
and it will show the computer name, then :
.\username

Sunday, November 22, 2015

Customize windows start - replace explorer

Open regedit and navigate to :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Change shell attribute to nothing or your program.

Friday, November 20, 2015

3G mobile phone and Wifi N speed

3G + HSPA = Teoretical speed 7.2 MBs , real speed around 5.9Mbs

3G DIGI RDS SpeedTest

4G - Teoretical  speed of 150 Mbs

Digi RDS - LTE 4G 2600 MHz (TDD – canal 38)


WiFi speed test on N with a 150M Wireless Lite N RouterTL-WR740N and a ALLView A5 Smiley phone


Sunday, November 15, 2015

Install windows from a network location


First create a win pe image and either set up a pxe boot server or just boot from dvd or usb.

You will end up with a cmd prompt :
X:\windows\system32\>wpeinit

Map the location where you have the windows image :
net use n: \\networkpc\sharename passwords /user:username
cd n:\windows7
setup.exe

If you run into an error "autorun.dll" could not be loaded or is corrupt setup can not continue error code (0xC1). This means your version of WinPE is mismatched with your Windows ISO. Type ver at the WinPE prompt.

|   ver    | Win PE Version | Matching Windows ISO | 
----------------------------------------------------
| 6.0.6*** |     2.*        |    Windows Vista     |
| 6.1.7600 |     3.0        |      Windows 7       |
| 6.1.7601 |     3.1        |    Windows 7 SP1     |
| 6.2.9200 |     4.0        |      Windows 8       |
| 6.3.9600 |     5.0        |     Windows 8.1      |

Saturday, November 14, 2015

Windows cmd commands

  1. Remove folder with all content :
    rd /s /q       - faster and better then explorer for erasing large amount of files
  2. Change file/folder attributes
    attrib +shr -shr filename/folders - system file
    h - hidden file
    r - read only file
  3. View all files/folders including hidden/system etc
    dir /a
    dir /a:h   -
    display only hidden files
  4. View windows install date :
    systeminfo | find "Install Date"
  5. Force date and time sync
    net start w32time
    w32tm /resync /force
  6. Set date or time :
    date 04-15-2015


Wednesday, November 11, 2015

Open CMD while installing windows

To get access to a command prompt with a windows cd/dvd 
Press SHIFT+F10

Activate numlock on a tablet that does not have numlock button

Open notepad :

set WshShell = CreateObject("wScript.Shell")
WshShell.SendKeys "{NUMLOCK}"

and save as numlock.vbs

Run

Friday, November 6, 2015

Run an aplication or command on a remote computer

To install an application copy the setup file and then open a cmd and type :

wmic /node:computername /user:username /password:mypassword product call install true, "","\\computername\Users\Public\a.msi"

wmic /node:computername baseboard get product,manufacturer

wmic /node:computername ...

To run a cmd app with admin rights type in cmd :
runas /user:username cmd
 

Tuesday, October 13, 2015

How to check mssql version installed + install option

Open a cmd and type :

sqlcmd
select @@version
go
exit




Default instance is that you connect just by specifying the server name (eg, MYSERVER), whereas a named instance will require an instance name as well (eg, MYSERVER\SQL2005).

Clients can connect to the default instance using only the host name over the well-known 1433 port.
To connect to a named instance, clients specify the host and instance name (e.g. "MyHost\My_Instance") and the SQL Server Browser service returns the port the named instance is listening on.

Wednesday, October 7, 2015

How to view motherboard name in windows

After installing a system if you don't know the mb manufacturer and/or model so you can install drivers - without any 3rd party software you can use :

Win+R => type :
msinfo32
dxdiag

sometimes these provide the information sometimes they dont.

In those cases run in cmd :
wmic baseboard get product,Manufacturer,version,serialnumber

or just

wmic baseboard get product,Manufacturer

or to get all data :

wmic baseboard list full /format:hform > %temp%\a.html
start %temp%\a.html


http://www.pearsonitcertification.com/articles/article.aspx?p=1700427&seqNum=4
wmic output customisation