Open START - All Programs - Accessories - Command Prompt
Right click and select Run as administrator.
START - Down arrow on the bottom left of the screen - scroll to the right side - Under Windows System - Right click and select Run as administrator on Command Prompt
Friday, November 21, 2014
Monday, November 17, 2014
Automate windows customisation
Scriptable windows commands :
http://www.autohotkey.com
http://www.macrocreator.com
Inno Setup is a free installer for Windows programs.
General useful silent install switches :
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
Control Panel Command Line Commands in Windows :
http://pcsupport.about.com/od/tipstricks/a/control-panel-command-line.htm
CONTROL [cpl],,[page]
CONTROL [/name] [/page]
CONTROL [-name] [-page]
ex :
control /name Microsoft.ActionCenter
control /name Microsoft.DateAndTime
control /name Microsoft.ActionCenter /page pageSettings
http://msdn.microsoft.com/en-us/library/windows/desktop/ee330741%28v=vs.85%29.aspx#canonical_names
http://www.autohotkey.com
http://www.macrocreator.com
Inno Setup is a free installer for Windows programs.
General useful silent install switches :
http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
Control Panel Command Line Commands in Windows :
http://pcsupport.about.com/od/tipstricks/a/control-panel-command-line.htm
CONTROL [cpl],,[page]
CONTROL [/name] [/page]
CONTROL [-name] [-page]
ex :
control /name Microsoft.ActionCenter
control /name Microsoft.DateAndTime
control /name Microsoft.ActionCenter /page pageSettings
http://msdn.microsoft.com/en-us/library/windows/desktop/ee330741%28v=vs.85%29.aspx#canonical_names
Windows does not boot in normal or safe mode, stuck at some driver - run chkdsk
Most of the time is file system integrity problem (system file/driver) caused by a forced shutdown either by losing power or forceful shut down by the power button.
You get more chances to get this if you close it while it was doing updates.
It can also be cause by a bad sector on one of the mentions files, or virus alteration of files.
To fix-it you have to run a chkdisk.
Boot from a hiren's boot cd and select chkdisk, after restart and it will boot to windows normally.
If that did't work you can try to check if you find a 0 bytes file in C:\Windows\System32\drivers, usually is random letters, numers file.
You get more chances to get this if you close it while it was doing updates.
It can also be cause by a bad sector on one of the mentions files, or virus alteration of files.
To fix-it you have to run a chkdisk.
Boot from a hiren's boot cd and select chkdisk, after restart and it will boot to windows normally.
If that did't work you can try to check if you find a 0 bytes file in C:\Windows\System32\drivers, usually is random letters, numers file.
Tuesday, November 11, 2014
Stop CHKDSK every time at start-up dirty partition
If a partition is marked as dirty it will not be cleared.
Type :
fsutil dirty query d:
Volume - d: is Dirty
You can also set the dirty bit if you want by : fsutil dirty set d:
CHKNTFS /X d:
/x = not to check the volume at start-up
chkdsk /f /r d:
You can manually remove the dirty bit :
Download a hdd hex editor : DMDE GUI for Windows
Select Logic/disks volumes, select the volume and press Open volume.
ALT+C = volume cluster selection + ENTER
CTRL+S = Search string --- and paste in the hex part:
03 01 00 00 00 00 00 00 80 00 00 00 18 - no dirty bit
03 01 01 00 00 00 00 00 80 00 00 00 18 - win xp, win 7
03 01 01 01 00 00 00 00 80 00 00 00 18 - win 8
CTRL+E = edit
Type :
fsutil dirty query d:
Volume - d: is Dirty
You can also set the dirty bit if you want by : fsutil dirty set d:
CHKNTFS /X d:
/x = not to check the volume at start-up
chkdsk /f /r d:
You can manually remove the dirty bit :
Download a hdd hex editor : DMDE GUI for Windows
Select Logic/disks volumes, select the volume and press Open volume.
ALT+C = volume cluster selection + ENTER
CTRL+S = Search string --- and paste in the hex part:
03 01 00 00 00 00 00 00 80 00 00 00 18 - no dirty bit
03 01 01 00 00 00 00 00 80 00 00 00 18 - win xp, win 7
03 01 01 01 00 00 00 00 80 00 00 00 18 - win 8
CTRL+E = edit
Monday, November 3, 2014
Give credentials from command line while accessing network resources or map network drive
You try to copy a folder from a network location :
robocopy -E \\computername\folder\ D:\
and you receive :
Logon failure: unknown user name or bad password.
To fix it type first :
net use \\computername\ipc$ password /USER:username
To map a network drive :
net use n: \\computername\sharedfolder password /user:username
If you receive :
A specified logon session does not exist. it may already have been terminated.
This behavior occurs when the "Do not allow storage of credentials or
.NET Passports for network authentication" Network access policy is
enabled.
gpedit.msc
Windows Settings -> Security Settings -> Local Policies -> Security Options
Network access: Do not allow storage of credentials or for network authentication
Disable.
Thursday, October 9, 2014
Windows 7 auto login and prevent user password from expiring
User profile service failed the logon User profile cannot be loaded
How to disable user password from expiring.
Windows 7 auto login :
To activate windows autologin directly from windows type in run : control userpasswords2
You will get this window :
Then select the user you want to autologin and deselect : Users must enter a user name and password to use this computer. , press Apply and you will be ask for the password. Type the password ( it can also be blank ) and OK.
Windows 7 user polices :
In windows home and home premium you do not have the Local Users and Groups (Local) available.
You can try to open it by typing : lusrmgr.msc
To disable the password expiration type at a command promt (cmd) :
wmic useraccount set passwordexpires=false
will set the passwordexpire attribute to all accounts to false.
If you also have autologin activated you will not be able to log in with no user.
To prevent this loop keep pressed the SHIFT key while booting windows or change bios time or reset bios by removing battery so the user password is not expired anymore.
How to disable user password from expiring.
Windows 7 auto login :
To activate windows autologin directly from windows type in run : control userpasswords2
You will get this window :
Then select the user you want to autologin and deselect : Users must enter a user name and password to use this computer. , press Apply and you will be ask for the password. Type the password ( it can also be blank ) and OK.
Windows 7 user polices :
In windows home and home premium you do not have the Local Users and Groups (Local) available.
You can try to open it by typing : lusrmgr.msc
To disable the password expiration type at a command promt (cmd) :
wmic useraccount set passwordexpires=false
will set the passwordexpire attribute to all accounts to false.
If you also have autologin activated you will not be able to log in with no user.
To prevent this loop keep pressed the SHIFT key while booting windows or change bios time or reset bios by removing battery so the user password is not expired anymore.
Tuesday, September 30, 2014
AsusSetup pop-up error - C:\Users\Username\AppData\Local\Temp\ 132218 Log.iniis lost
At start-up on a limited user account, or if you clean the temp folder you get :
To fix-it you have to delete the schedule task : i-Setup105832
Open Task Scheduler - In Control Panel under Administrative Tools, or type Task Scheduler in Start menu.
To fix-it you have to delete the schedule task : i-Setup105832
Open Task Scheduler - In Control Panel under Administrative Tools, or type Task Scheduler in Start menu.
Tuesday, September 23, 2014
Configure a software raid 1 mirroring in windows 7
You need to use a HDD as big or bigger then the one you want to mirror, one identical would be best.
Open Disk Management either by accessing Computer Management by Right click - on My Computer - and select Manage - then select under Storage - Disk Management
or type in Run - diskmgmt.msc
IF you want to make a mirror to your active windows hdd you MUST start first with the System Reserved partition (100MB NTFS) or convert the whole hdd to dynamic first.
(if you start mirroring from the second, third etc partition you will not be able to mirror the System Reserved partition unless you wipe the hole hdd and reinstall windows)
Right click System Reserved partition and select Mirror volume - select the empty disk press OK and then you will be asked if you want to convert the two HDD to dynamic disks.
Select OK.
Wait for each mirrored partition to sync or it will take many hours to sync them in parallel
This will only work with MBR formated HDD - and for booting/installing Windows you must select in BIOS - boot options Legacy Mode (not UEFI).
If you chose to install windows with GPT partitioning style it will create some system reserved partitions that are not visible in disk management so you will be unable to mirror them.
RAID 0 - stripping for performance
RAID 1 - MIRRORING
RAID 10 - https://www.youtube.com/watch?v=bcCfVYZa0k0
Open Disk Management either by accessing Computer Management by Right click - on My Computer - and select Manage - then select under Storage - Disk Management
or type in Run - diskmgmt.msc
IF you want to make a mirror to your active windows hdd you MUST start first with the System Reserved partition (100MB NTFS) or convert the whole hdd to dynamic first.
(if you start mirroring from the second, third etc partition you will not be able to mirror the System Reserved partition unless you wipe the hole hdd and reinstall windows)
Right click System Reserved partition and select Mirror volume - select the empty disk press OK and then you will be asked if you want to convert the two HDD to dynamic disks.
Select OK.
Wait for each mirrored partition to sync or it will take many hours to sync them in parallel
This will only work with MBR formated HDD - and for booting/installing Windows you must select in BIOS - boot options Legacy Mode (not UEFI).
If you chose to install windows with GPT partitioning style it will create some system reserved partitions that are not visible in disk management so you will be unable to mirror them.
RAID 0 - stripping for performance
RAID 1 - MIRRORING
RAID 10 - https://www.youtube.com/watch?v=bcCfVYZa0k0
Monday, September 22, 2014
Windows sharing from limited user - access denied
Open Network and Sharing Center click Change advanced sharing settings
Public folder sharing - select - Turn on sharing so anyone with network access can read and write files in Public Folders
Password protected sharing - Turn off password protected sharing
After you access the shared computer with the printer you receive and Access denied message when you want to access the printer.
Go to Control Panel - User Accounts - Credential Manager - Add a Windows credentials
Public folder sharing - select - Turn on sharing so anyone with network access can read and write files in Public Folders
Password protected sharing - Turn off password protected sharing
After you access the shared computer with the printer you receive and Access denied message when you want to access the printer.
Go to Control Panel - User Accounts - Credential Manager - Add a Windows credentials
Printer not appearing in devices and printers
Devices and Printers icon of the printer is missing but you can find the printer when you print from applications.
Go to services and find :
- Device Association Service
- Device Install Service
- Device Setup Manager
Thursday, September 11, 2014
NTLDR is missing
You have to enter Windows Recovery Console :
Insert Windows Xp cd and select to boot from CD.
At Welcome to Setup press R for repair.
Select the number for your windows instalation ( most often 1 ).
Enter Administrator password. Then type :
copy x:\i386\ntldr c:\
copy x:\i386\ntdetect.com c:\
bootcfg /rebuild - to generate a new boot.ini file
Enter Load Identifier: Windows XP
Enter OS Load options: /Fastdetect
After you boot in windows check that all 3 files are sistem, readonly and hidden so they don't get deleted again.
Open cmd, go to C:\ type attrib
To add all attributes type :
attrib +S +H +R C:\boot.ini
attrib +S +H +R C:\NTLDR
attrib +S +H +R C:\NTDETECT.COM
If you want to manually edit boot.ini first must remove attributes :
attrib -S -H -R C:\boot.ini
then add them back :
attrib +S +H +R C:\boot.ini
Monday, September 8, 2014
Open File Security Warning Prompt at Start-up
Intel chipset :
C:\Windows\system32\igfxtray.exe etc
The problem is caused by downloading an exe file with IE that adds a Zone Identifier.
To check that it's a zone.identifier caused by downloading the file with IE type :
dir /r C:\WINDOWS\system32\igfxtray.exe
where /r : /R Display alternate data streams of the file.
and you should see something like ZoneIdentier NTFS data stream
To remove the zone right click the file select properties and select Unlock.
![]() |
Streams utility can scan and remove the Zone.Identifier
You can either scan all the Windows folder or the C: drive with the command :
Streams.exe /s C:\Windows
Remove the zone with :
Streams /d C:\WINDOWS\system32\igfxtray.exe
Thursday, August 28, 2014
NSIS Error - Error launching installer
Another error message related to same problem : System cannot find the path specified
Rename the folder or move the installer to a folder that has a name without special characters.
Browser default Download folder might be : "Descărcări" etc depending on your windows language.
Sunday, August 10, 2014
Install PHP in windows to run from cmd
Download the latest version of PHP for windows from here : http://windows.php.net/download/
Unzip and move folder to C: or where you want and then add the path to the system path.
Copy the php.ini-production into php.ini in the same folder.
Add php location to system path so you can run it from CMD.
Right click on My Computer and select Properties then follow instruction in the image below.
You need to install if you don't already have it Visual C++ Redistributable for Visual Studio 2012 otherwise you will receive the error :
The Program can't start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this problem.
http://www.microsoft.com/en-us/download/details.aspx?id=30679
Run php to see that it works.
Unzip and move folder to C: or where you want and then add the path to the system path.
Copy the php.ini-production into php.ini in the same folder.
Add php location to system path so you can run it from CMD.
Right click on My Computer and select Properties then follow instruction in the image below.
![]() |
| how to add php exe to system path |
You need to install if you don't already have it Visual C++ Redistributable for Visual Studio 2012 otherwise you will receive the error :
The Program can't start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this problem.
http://www.microsoft.com/en-us/download/details.aspx?id=30679
Run php to see that it works.
Wednesday, August 6, 2014
SATA mode : AHCI vs IDE vs RAID
AHCI - is the native sata mode.
- supports hot plugging (add/remove component while the computer is running) and some faster indexing
To be able to take advantage of the sata hot-plug your motherboard or sata controller must also be sata hotplug capable ( not all are ).
If it is, and it is activated from BIOS you will see the Safely Remove Hardware icon on the system tray, and your hard drive will be listed there.
RAID - is AHCI mode plus vendor specific raid configurations
Although windows vista or later has AHCI support will not load the driver at start-up if the os was installed in IDE mode, but can be installed in windows after booting in IDE mode.
AHCI support exists in Windows Vista, 7 and 8.
Windows Xp only supports IDE mode natively at boot but you can add a sata/raid driver via the F6 boot option or after the os is installed.
Monday, July 28, 2014
Raid error when installing windows xp with F6 option
File iaStor.sys cause an unexpected error (4096) at line 2113 in d:\xpsprtm\base\boot\setup\oemdisk.c.
To solve the problem you must extract the archive directly on the floppy drive, not extract to default location and then copy/paste to floppy.
Prior to this I have changed windows cd-s, countless pieces of floppy disks and many hours.
If the motherboard manufacturer does not provide good archive or one that cannot be extracted directly to floppy you can download from intel downloadcenter by searching the south bridge chipset that you can find on the motherboard manufacturer website.
Intel® ICH9R/ICH9M-E/ICH10R/PCH/PCHM SATA RAID controller
https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=17882
---------------------------------------------------------------------
Se extrage arhiva cu drivere RAID direct pe disketa si nu in locatia initiala si apoi sa copiezi fisierele pe disketa. Daca producatorul nu ofera o arhiva ce poate fi extrasa direct pe disketa se cauta dupa modelul chipsetului (south bridge) pe site la intel, nvidia etc dupa caz.
To solve the problem you must extract the archive directly on the floppy drive, not extract to default location and then copy/paste to floppy.
Prior to this I have changed windows cd-s, countless pieces of floppy disks and many hours.
If the motherboard manufacturer does not provide good archive or one that cannot be extracted directly to floppy you can download from intel downloadcenter by searching the south bridge chipset that you can find on the motherboard manufacturer website.
Intel® ICH9R/ICH9M-E/ICH10R/PCH/PCHM SATA RAID controller
https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=17882
---------------------------------------------------------------------
Se extrage arhiva cu drivere RAID direct pe disketa si nu in locatia initiala si apoi sa copiezi fisierele pe disketa. Daca producatorul nu ofera o arhiva ce poate fi extrasa direct pe disketa se cauta dupa modelul chipsetului (south bridge) pe site la intel, nvidia etc dupa caz.
Subscribe to:
Posts (Atom)

















