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

Thursday, October 1, 2015

Format SD card - USB stick with FAT32 vs NTFS

NTFS has over fat32 the following :

- supports files bigger then 4GB and capacity over 2TB
- is a journaling file system where changes to files are logged to a jurnal before there are mode ( good in case of a power loss while writing, it wont need to scan all disk)
- support file permissions with user ID, read only etc

Advantages of FAT32 is that no journaling means less writes to the disk so longer life, no file permissions that cause problems when moving the media from one device to another


Allocation unit while formatting :
- smaller size better for space efficiency - if you have many small size files. Ex a 10kb file will need 5 2kb blocks if you chose 2kb allocation unit and when reading will require 5 blocks to be read.
- bigger size for better performance - it will read the data faster, but it will waste space on smaller files - but unnoticeable on larger size disks.

Wednesday, September 30, 2015

Windows cannot connect to the printer" - Operation Failed with error 0x00000002

First time try to restart the Printer spool service - and that might fix it.
If that fix it but next reboot  you printer does not work create a file restart_print_spool.bat and copy it in  %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
and write in it :
sc stop "Spooler"
sc start "Spooler"

When you try to add a shared network printer you receive :
Windows cannot connect to the printer" - Operation Failed with error 0x00000002

Open : Control Panel\Hardware and Sound\Devices and Printers - press Add Printer


Select Create a new port - Type of port - Local Port - and type \\network_location\shared_printer_name
Next select printer manufacturer and printer model - provide driver and next until finish.

Wednesday, September 16, 2015

HP servers raid config ORCA raid 1 level

In hp servers raid utility ORCA (Option ROM Configuration for Arrays) - press F8 to enter configuration - to createa a RAID 1 mirroring you have to select RAID 1+0

 HP Array Configuration Utility User Guide : pg 64
http://www.hp.com/ctg/Manual/c00709035.pdf 

In a RAID 1+0 configuration, data is duplicated to a second drive
They don't make no differentiation between RAID 1 and RAID 1+0 - it depends on how many HDDs you select.

Friday, September 11, 2015

Star Wars Episode IV on telnet

Open telnet or just use putty as telnet is not part of windows from vista.
towel.blinkenlights.nl

Thursday, September 10, 2015

Enable ssh on a cisco router

Login to the router via com or aux port.

Router>enable
Router#config t
Router(config)#hostname myRouter
myRouter(config)#username s86d password cisco

myRouter(config)#crypto  key generate rsa-general-keys modulus 1024
myRouter(config)#ip ssh version 2

myRouter(config)#line vty 0 4
 myRouter(config-line)#transport input ssh
 myRouter(config-line)#login local
myRouter(config-line)#exit
 myRouter(config)#copy running-config startup-config

Wednesday, September 9, 2015

Install windows 8, 8.1 and related windows server 2012, 2012 R2 without a product key

You have to edit/create the file disk:/sources/ei.cfg
 
[Channel]
Retail
[VL]
0
 
[Channel] can be set to OEM / Retail
[VL] means Volume Licensing for volume media for companies that use same key
[EditionID] to Core / Professional etc or leave black and it will ask during setup

To activate windows after install use the wizard or cmd : slui 3

To add the file to the windows iso file you can use PowerIso - note you need regiestered version. 

Tuesday, September 8, 2015

How to delete a service manually

You can see all services in the snap-in control Services : services.msc

To delete a service copy the service name from the snap-in control then type :

sc delete "service name"

Monday, September 7, 2015

Access network share or map network location from cmd

To get faster access to a network share or to access a network share that requires username and password type at cmd :

net use \\computername\ipc$ password /user:username

To map a network location type :

net use n: \\computername\sharename password /user:username

To delete a maping :

net use n: /delete

Saturday, August 22, 2015

How to see what process keeps a file / folder open

Download from Microsoft Sysinternals Process Explorer

Then select from the menu Find  - Find Handle or DLL... or CTRL+F   type the name of the file/folder.
Then you can either close the process or just select the file/folder handle and right click - Close Handle.


Tuesday, June 9, 2015

Subnets, netmask and slash notation or CIDR

Netmasks group IP addresses.

There are the basic A,B,C class networks :

   1st address   Last address      Netmask per network

A:   0.0.0.0 ... 127.255.255.255   255.0.0.0
B: 128.0.0.0 ... 191.255.255.255   255.255.0.0
C: 192.0.0.0 ... 223.255.255.255   255.255.255.0
 
CIDR instead of limiting the network size to 245, 64k or 16M it uses any power of 2 for the network size. It sees the netmask as a 32 bit number instead of 4 bytes.

The CIDR (Classless Inter-Domain Routing) is the number of 1 from left to right in the netmask.

11111111 11111111 11111111 00000000 = 255.255.255.0 = /24 =   256 ips in the network  (2^8) 32-24=8 bits
11111111 11111111 11111100 00000000 = 255.255.252.0 = /22 = 1024 ips in the network (2^10)  32-22=10 bits

Netmask: 255.255.255.252 or /30
Starts with multiple of 4
0 - 3 | 4-7 | 8-11 | 12-15 | ..... | 252-255

Binary                             Hex        Quad Dec          2ⁿ    CIDR   Number of addresses

00000000000000000000000000000000   00000000   0.0.0.0           2³²   /0     4,294,967,296     4 G
10000000000000000000000000000000   80000000   128.0.0.0         2³¹   /1     2,147,483,648     2 G
11000000000000000000000000000000   C0000000   192.0.0.0         2³⁰   /2     1,073,741,824     1 G
11100000000000000000000000000000   E0000000   224.0.0.0         2²⁹   /3       536,870,912   512 M
11110000000000000000000000000000   F0000000   240.0.0.0         2²⁸   /4       268,435,456   256 M
11111000000000000000000000000000   F8000000   248.0.0.0         2²⁷   /5       134,217,728   128 M
11111100000000000000000000000000   FC000000   252.0.0.0         2²⁶   /6        67,108,864    64 M
11111110000000000000000000000000   FE000000   254.0.0.0         2²⁵   /7        33,554,432    32 M
11111111000000000000000000000000   FF000000   255.0.0.0         2²⁴   /8        16,777,216    16 M
11111111100000000000000000000000   FF800000   255.128.0.0       2²³   /9         8,388,608     8 M
11111111110000000000000000000000   FFC00000   255.192.0.0       2²²   /10        4,194,304     4 M
11111111111000000000000000000000   FFE00000   255.224.0.0       2²¹   /11        2,097,152     2 M
11111111111100000000000000000000   FFF00000   255.240.0.0       2²⁰   /12        1,048,576     1 M
11111111111110000000000000000000   FFF80000   255.248.0.0       2¹⁹   /13          524,288   512 k
11111111111111000000000000000000   FFFC0000   255.252.0.0       2¹⁸   /14          262,144   256 k
11111111111111100000000000000000   FFFE0000   255.254.0.0       2¹⁷   /15          131,072   128 k
11111111111111110000000000000000   FFFF0000   255.255.0.0       2¹⁶   /16           65,536    64 k
11111111111111111000000000000000   FFFF8000   255.255.128.0     2¹⁵   /17           32,768    32 k
11111111111111111100000000000000   FFFFC000   255.255.192.0     2¹⁴   /18           16,384    16 k
11111111111111111110000000000000   FFFFE000   255.255.224.0     2¹³   /19            8,192     8 k
11111111111111111111000000000000   FFFFF000   255.255.240.0     2¹²   /20            4,096     4 k
11111111111111111111100000000000   FFFFF800   255.255.248.0     2¹¹   /21            2,048     2 k
11111111111111111111110000000000   FFFFFC00   255.255.252.0     2¹⁰   /22            1,024     1 k
11111111111111111111111000000000   FFFFFE00   255.255.254.0     2⁹    /23              512
11111111111111111111111100000000   FFFFFF00   255.255.255.0     2⁸    /24              256
11111111111111111111111110000000   FFFFFF80   255.255.255.128   2⁷    /25              128
11111111111111111111111111000000   FFFFFFC0   255.255.255.192   2⁶    /26               64
11111111111111111111111111100000   FFFFFFE0   255.255.255.224   2⁵    /27               32
11111111111111111111111111110000   FFFFFFF0   255.255.255.240   2⁴    /28               16
11111111111111111111111111111000   FFFFFFF8   255.255.255.248   2³    /29                8
11111111111111111111111111111100   FFFFFFFC   255.255.255.252   2²    /30                4
11111111111111111111111111111110   FFFFFFFE   255.255.255.254   2¹    /31                2
11111111111111111111111111111111   FFFFFFFF   255.255.255.255   2⁰    /32                1



Monday, June 8, 2015

Email protocols

There are 3 main email protocols used : POP3 and IMAP for mail retrieving and SMTP for sending emails.

Acronyms :
POP (Post Office Protocol)
IMAP (Internet Message access protocol)
SMTP (Simple mail transfer protocol)

POP3 downloads the emails from the server (and if not specified to keep a copy it also deletes the emails) - you have to make rules to filter the email on every client individually and if you lose the email client database you lose all your filters and emails.
Pop3 is good if you have a low email quota and you like your privacy (because as soon as an email is read is deleted from the server) 

IMAP synchronizes you folders and email from the server to you mail client and does not delete the messages unless you delete them.
Main advantage to imap is the it syncs your emails,folders etc the same way on any device.

POP3 : 110 and secure POP3 with SSL/TSL 995
IMAP : 143 and secure IMAP with SSL/TSL 993
SMTP : 25 and secure SMTL with SSL/TSL 465 

SMTP port is 25 and is usually blocked by the ISP to prevent spam by infected users.

Thursday, May 7, 2015

Install terminal services and .NET Framework 3.5 on windows server 2008 2012 r2 standard

Open Server Manager (type in start menu to find it) - or Control Panel - System and Security - Administrative Tools - Server Manager
or Right click My Computer - Manage

Server 2008 :
Click Roles - then click - Add Roles
On the Before You Begin - Click Next
On Server Roles - select Remote Desktop Services - formerly known as Terminal Services
Continue the wizard.

To install .NET Framework 3.5
Open Server Manager
 Click Feartures- then click - Add Features
 Select .NET Framework 3.5 

 Server 2012 :
Mange - Add ROles and Features -- same as above
On 2012 you have to specify additional path to windows 2012 dvd

Tuesday, May 5, 2015

Error loading dll file

Error loading midas.dll

regsvr32 midas.dll for registering a file
regsvr32 /u midas.dll for unregistering a file

http://en.wikipedia.org/wiki/Regsvr32

Monday, May 4, 2015

Diskpart - hide or unhide a partition in windows

Type in a cmd : diskpart
To hide a partition type :
list volume
select volume 2
remove letter d
To make it appear back : 

select volume 2
assign letter d


If you mount the ESP partition like this, in windwos 10 you get an error message that you are not allowed to access it.
Open Task manager -> Run new task -> Browse.
Here you can access, edit, create, delete files. 


Or open Disk Management : diskmgmt.msc
 Right click on a partition and select - Change Drive Letter and Paths...
and then add or remove a letter.


Friday, April 3, 2015

WOL from the internet + remote desktop connection

First enable wake-on-wan from the network controller in windows.



First set on your router a static dhcp reservation on you mac address.

Then set a port forward on the router for port 7 UDP to your reserved ip.


Configure a dynamic dns on the router, for exemple if your router has support you can use for free no-ip.com

To wake-up you need :
  • MAC Adress
  • Public ip or dynamic dns address
  • Port number

Next you will probably will want to make a Remote Desktop Connection to your pc.
For this you have to forward TCP port 3389 to your pc ip address.

On the Remote Desktop settings select Allow connections only from computers running Remote Desktop with Network Level Authentification (more secure)
Click Select Users and add your username.
You MUST have at least a PROFESSIONAL version of windows to be able to do remote desktop connection to the computer.

And last install from android market a Wake on Lan


Saturday, March 28, 2015

How to configure a dns and an email server on windows 7

I used Simple DNS Plus and Quick ‘n Easy Mail Server - note that both are not free software but you can try them in trial mode.
You will also need and EML file viewer because the emails are saved as .eml files.
Get FREE EML File Viewer from here

They are very strait forward to configure.
In Simple DNS Plus - Select Records and add a Primary zome.
Then add in your zone an MX-record and make some inquiry to see if everything is ok.

To check if your mail server dns settings are good, open a cmd and make an inquiry :

nslookup -q=mx mydomain.com 
         (uses your isp or local dns server to resolve)
nslookup -q=mx mydomain.com 8.8.8.8 
(using specified Google dns server 8.8.8.8 to interrogate for our domain - I recommend this as it is almost instant update)

To check local open port on your system/server use CurrPorts if you want a Gui or netstat

For dns you have to open port 53
For email you have to open ports : 25,110

You have to port forward ports 53, 25, 110 if you have a router.

You can use this site to check if your ports are open : http://tagclouds.ro/openports.php

 Additional information :

To clear dns cash in windows in cmd type : ipconfig /flushdns
To see in browser new changes made to dns change your dns to 8.8.8.8 ( google dns) 

Sunday, March 8, 2015

Dxtory does not start recording games

Dxtory does not recognize game/show FPS.

If you record your games with an OSD like MSI Afterburner/RivaTuner, you have to ckeck in the
Dxtory - Advanced  Settings - Delay Hook - checkbox.

Also you must first start Dxtory then start the game, it will automatically create a profile for the game, then start  MSI Afterburner/RivaTuner, and it will record with you OSD.

If you turn the stealth mode on in Rivatuner you can record while the OSD is up, but it won't show up in the video.

You can get dxtory from here : http://exkode.com/dxtory-features-en.html
You should use it with the Lagarith codec (that supports multi-threading) from here : http://lags.leetcode.net/codec.html
so you can record without full loading one of the cores of your cpu, that will have bad effects on your fps.

Tuesday, February 17, 2015

Hiren's Boot USB Stick

Hirens Boot CD 15.2 USB

1. You need a USB stick of at least 1GB
2. Download Hiren's Boot CD 15.2 from here
3. Download Universal USB Installer from here


Saturday, January 17, 2015

FPS and hardware usage OSD in games

Install Rivatuner statistics server




Install HWInfo32/64 in settings you have OSD(RTSS - rivga tuner statistics server) and select what you want



Also right click in system tray on hwinfo and select settings and select auto log in.

If you want current hour on-screen to keep track of how much you play install MSI Afterburner (also comes with riva tunner server)

You can use MSI Afterburner as well for osd :


You can see some videos recorded with both hwinfo and msi aferburner on my YouTube channel : Red Sun

Windows does not log in or logs off automatically

Open regedit locally if you can boot in safe mode, or on a network computer and select File-> Connect Network Registry.
If that does not work boot of a Hiren's boot cd and open Registry Editor PE.

Navigate to :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

And verify and/or create them if the are not - string value -
 - Shell with value explorer.exe
 - Userinit with value - C:\Windows\system32\userinit.exe

You will  be able to boot to windows but beware that most certain your system was and it still is infected with virus/malware.

Thursday, January 1, 2015

Msvcr100.dll is missing from your computer

It is a file required by applications written in visual studio and requires the :
C++ Redistributable Package 2010

Normaly that would fix it, but on the 64 bit you have to install both the 64 and 86 versions.
vcredist_x86.exe and vcredist_x64.exe from microsoft website.

If that still fails just www.dll-files.com and download the dll and copy it next  to the exe file (not the launcher) of the game/app.

If you receive  The application was unable to start correctly (0xc000007b) - the error code meas "bad image" witch means one or more dll is corrupted or only x64 or x86 version is available - in this case.