Showing posts with label windows commands. Show all posts
Showing posts with label windows commands. Show all posts

Thursday, November 12, 2015

Free up space in windows

How to free up space in Windows ?

Most common method is already known to most of the people .
Running Disk cleanup which is under programs , Accessories , System tools.


Second step is to clean
 C:\Windows\ccmcache

The ccmcache folder is used by System Center Configuration Manager (SCCM) client. This is where files downloaded by SCCM are stored. SCCM is an enterprise software management system used in many Windows environment, and provides operating system and software deployment services, remote management, reporting services, etc. You will typically only find this folder on systems in a managed enterprise environment.
SCCM caches files used for software deployment in the ccmcache folder. This may include software packages which are automatically installed on your machine, some types of software updates, etc. Files are not automatically removed from the ccmcache folder after they are used, but they are marked as being eligible for deletion. You should not manually delete files in this folder as you may accidentally delete something which has not been used yet. You should definitely not remove the folder altogether, as this would break SCCM and you would cease to automatically receive software packages from your network administrator.
You should be able to reduce the size of this folder using the ConfigMgr Control Panel. This will require local administrator privileges. To do this:
  • Open "Configuration Manager Properties" in the control panel. You may need to change the control panel to "icon view" instead of "category view".
  • Go to the "cache" tab
  • Click "Configure Settings" and acknowledge the UAC Prompt if prompted
  • The "Delete Files" button should become available. Click this button to clear files. It will automatically keep any files which should not be deleted.


Third Step is to
Compress C:\Windows\Installer
Right click the folder "Installer"  properties  advanced  check "Compress contents to save disk space." "OK"  "OK" again.



Fourth Step is to disable the hibernation
With administrator user run the following command .
powercfg /h off

This will disable the hibernation and the hiberfil.sys file will be removed from your C: Drive .

The file hiberfil.sys is a hidden file and will not be visible until you have enabled Show hidden folders and files under Tools,  folder options , view.

You can turn on hibernation anytime by using the

powercfg /h on


Fifth Step is to delete unnecessary files downloaded from internet
C:\Users\\Downloads

User Id is the logged in user account


Sixth Step is to remove the programs (softwares) which you do not use using Control Panel , Add-Remove programs
This step may also  help to speed up your windows system if these programs start running  at the time of windows startup.


Seventh step
"Go into your Control Panel and open the "Java Plug-in" program and under the "Cache" tab click the "Clear Jar Cache" button." 


Sunday, October 25, 2015

telnet not working windows

Go to control panel , Turn windows  features on or off  ,
Enable the telnet client .

For detailed steps , refer to the link below .
 enable telnet client  

Wednesday, January 15, 2014

useful Command for windows server

net user /domain

The above command will return with all the user details such as group names , password expiry date etc.


Use the following command to add domain user to a local group such as ora_dba

Run command prompt  as administrator


net localgroup \ /add

Eg
net localgroup ora_dba GEO\ashish /add



Follwing are the commands to give the details of currently logged in user in a windows machine
whoami

whoami /groups

whoami /priv

whoami /all




To find all the users logged in a windows server

Go to Task Manager, Users


To find the system information including domain name , memory , number of processors etc.

Use the command
systeminfo


Displaying the value of a variable in windows
echo %PATH%

Just typing set will display all variables along with values
set

If you want to display all the variables with the string mq, Use

set|findstr mq
Or
set|findstr -i mq
-i will ignore case for the string mq


Run the below command to run a exe  as a particular user which is different from the current user logged in. 
runas /user:USER-NAME "C:\full\path\of\Program.exe"
Then , Enter the password.


Compare two files in windows
Use the command fc
Example
C:\Users\Admin\Desktop\Firewall Rules>fc "Firewall & F5 change request for
Test Environment - Copy.xlsx" "Firewall & F5 change request for Test Environment
.xlsx"
Comparing files Firewall & F5 change request for Test Environment - Copy.xlsx an
d FIREWALL & F5 CHANGE REQUEST FOR TEST ENVIRONMENT.XLSX
FC: no differences encountered


One of the great ways to execute UNIX commands on windows OS.

Install cygwin and then execute regular UNIX commands. This is very helpful for a UNIX guy who is working on a windows system. He does not have to learn windows powershell , dos commands to do a particular job like searching for a file with a particular string , listing directories by their size , finding file with huge size etc. It becomes a powerful tool . Much powerful than a windows search.





Monday, June 13, 2011

Speed up windows system

Speed up your windows system

Speed of your system depends on
1 Speed of CPU
2 RAM size  - Bigger the RAM size , bigger can be the system's speed and lesser is the paging required.
3 Swap size - Extensive paging activity can slow your system's speed.A good swap size is considered to be 3 GB or 4 GB.
4 I/O speed - How much speed is your hard disk read and written.

1 Using the Run on your start menu
Run
Prefetch- Delete all files
Temp - Delete all files
%temp% - Delete all files

2 Programs  ,  Accessories,  System Tools , Disk Cleanup 
This will delete files from several folders .Be sure to uncheck Recycle bin if you do not want to empty recycle bin.

3 Run antivirus full scan


4 Remove icons from Program , startup which are not required.
There may be some software required to be at system tray as per your organization policy if you are using a company's laptop or desktop.


5 Remove all the unwanted software's that are not required by uninstalling them.
E.g. I don't use gtalk, yahoo messenger  .So I have uninstalled them.

6 Run msconfig , startup. Uncheck what are not required during the system startup.You may also do the same by using software like CCleaner by going to tools -> startup and disabling.


7 Run services.msc. Identify the services which are not required.Normally, the services that are not required are the software services  that are used by you while developing a software etc.
So change the startup type for such services  to be manual.Do not change the setting of services if you are not aware of what they do.
E.g I have changed the startup type to manual for IBM HTTPserver and MQ Series which I am very well aware what they do.


8 Right click on task bar , properties , start menu , Customize , Advanced , disable most of the links which you don't need often by selecting the radio button -Don't display this item.
I only use Control panel, run command here , So I have disabled rest of them.
Number of programs on start menu = 0
Unchecked Internet and Email  on "Show on start menu"


9 Right click on system tray .Properties , Taskbar , customize , Always hide which are not required.


10 You may use a software to remove windows log files , temporary system and temporary application files  like CCleaner. Run analyze first before cleaning the files.

11 Right Click on My computer , properties ,  Advanced ,  Performance , settings , Advanced ,  Check your virtual memory initial size and max size .It should be 2 GB and 4 GB.

12 Defragment your disk.Do not perform defragmentation unless its really required because it will take a lot of time(more than 8 hrs, depends on size of disk ) to complete .Be sure you have continuous power while performing defragmentation.