간략한 사용법

 

cleanmgr /sageset:n

디스크 정리의 자동화를 설정합니다. 자동화 항목(n)은 1~65536 까지 설정할 수 있습니다.

이곳에서 입력한 번호는 자동화 번호가 되며 이후 해당 번호를 통해 미리 설정한 항목들을 자동으로 정리하게 됩니다.

WinKey + R 을 클릭하여 실행 창을 띄운 후 다음의 명령을 내려줍니다. 입력 후 설정창이 뜨면 원하는 항목을 체크합니다.

cleanmgr /sagerun:n
디스크 자동 정리를 시작합니다. 이 때 n 항목은 미리 설정이 되어 있어야 합니다.

 

cleanmgr /tuneup:n
설정된 디스크 정리 자동화 항목(n)의 설정을 수정합니다. 이 때 n 항목은 미리 설정이 되어 있어야 합니다.

 

-----------------------------------원문------------------------------------------------------------------------------------------------------------------------

CLEANMGR.exe

 

Automated cleanup of Temp files, Internet files, downloaded files, recycle bin.

Syntax

CLEANMGR option

Options
       /d driveletter: Select the drive that you want Disk Cleanup to clean.

       /sageset:n      Display the Disk Cleanup Settings dialog box and create
                       a registry key to store the settings you select.
                       The n value is stored in the registry and allows you to
                       specify different tasks for Disk Cleanup to run.
                       n can be any integer from 0 to 65535.
                       Specify the %systemroot% drive to see all the available options.

      /sagerun:n       Run task 'n'
                       All drives in the computer will be enumerated, and the
                       selected profile will be run against each drive.

    Only one of the 3 options above can be run at a time

      /TUNEUP:n        Run sageset + sagerun for the same n

      /LOWDISK         Run with the default settings.

      /VERYLOWDISK     Run with the default settings, no user prompts.

      /SETUP           Undocumented
      /Help            Undocumented
      /Usage           Undocumented
      /?               Display help

To enable Cleanmgr on Windows 2008, open Server Manager and choose Add feature, then select "Desktop Experience"
 After running cleanmgr on a server you will probably want to disable "Desktop Experience" again (or use this script.)
 When necessary cleanmgr can take ownership of the files before deleting them.

Registry settings for CLEANMGR are held in:
[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches]

Examples

CLEANMGR /sageset:64

CLEANMGR /sagerun:64


Options that can be chosen for cleanup:


 Temporary Internet Files
 Temporary Setup Files
 Downloaded Program Files
 Old Chkdsk Files
 Recycle Bin
 Temporary Files
 Temporary Offline Files
 Offline Files
 Compress Old Files
 Catalog Files for the Content Indexer
 System files: Debug/chkdsk/Installer/Memory dump/Windows update/error reporting logs.

Items in bold can appear in more than one drive i.e not just in %SystemRoot%

 

Application Data

Many files in Application Data hold system data that should not be deleted, however some applications do leave files which you can delete from a roaming profile, these can be selectively removed with a VBScript like this.

Recent files

The 'User Profile/Recent' folder (for Start, Documents) can contain many more shortcuts than are set to display in the GUI. A very large number of these can affect logon/logoff times.
 To clear out the shortcuts:
    cd %userprofile%\Recent 
    echo y| del *.*

Close Locked files by restarting Windows Explorer


Close all applications
Open a command prompt
Type:
taskkill /im explorer
This should kill explorer and bring up a logout/shutdown dialogue box.
Simultaneously press CTRL+SHIFT+ALT.
While you keep these keys pressed, click [Cancel] in the Shut Down Windows dialog box.
In the command prompt window, you should now be able to delete the locked files.
At the command prompt, type explorer, and press ENTER to restart Windows Explorer.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

출처

http://ss64.com/nt/cleanmgr.html

https://support.microsoft.com/en-us/kb/253597

https://support.microsoft.com/en-us/kb/315246

Posted by 인생역전로또
:

Microsoft Windows 기본 환경변수

Variable

Windows

Path

%AllUsersProfile%

XP

C:\Documents and Settings\All Users

Vista/7

C:\ProgramData

%AppData%

XP

C:\Documents and Settings\{username}\Application Data

Vista/7

C:\Users\{username}\AppData\Roaming

%ComputerName%

XP

{computername}

Vista/7

{computername}

%CommonProgramFiles%

XP

C:\Program Files\Common Files

Vista/7

C:\Program Files\Common Files

%CommonProgramFiles(x86)%

XP

C:\Program Files (x86)\Common Files (64bit)

Vista/7

C:\Program Files (x86)\Common Files (64bit)

%COMSPEC%

XP

C:\Windows\System32\cmd.exe

Vista/7

C:\Windows\System32\cmd.exe

%HomeDrive%

XP

C:

Vista/7

C:

%HomePath%

XP

\Documents and Settings\{username}

Vista/7

\Users\{username}

%LocalAppData%

XP

 

Vista/7

C:\Users\{username}\AppData\Local

%LogonServer%

XP

\\{domain_logon_server}

Vista/7

\\{domain_logon_server}

%Path%

XP

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths}

Vista/7

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths}

%PathEXT%

XP

.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.WSF;.WSH

Vista/7

.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc

%PROGRAMDATA%

XP

 

Vista/7

%SystemDrive%\ProgramData

%ProgramFiles%

XP

%SystemDrive%\Program Files

Vista/7

%SystemDrive%\Program Files

%ProgramFiles(X86)%

XP

%SystemDrive%\Program Files (x86) (64bit)

Vista/7

%SystemDrive%\Program Files (x86) (64bit)

%PROMPT%

XP

Code for current command prompt format. Code is usually $P$G

Vista/7

Code for current command prompt format. Code is usually $P$G

%PSModulePath%

XP

 

Vista/7

%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\

%PUBLIC%

XP

 

Vista/7

%SystemDrive%\Users\Public

{Drive}:\$Recycle.Bin

XP

C:\Recycle.Bin

Vista/7

C:\$Recycle.Bin

%SystemDrive%

XP

C:

Vista/7

C:

%SystemRoot%

XP

The Windows directory, usually C:\Windows, formerly C:\WINNT

Vista/7

%SystemDrive%\Windows

%TEMP%

%TMP%

XP

%SystemDrive%\Documents and Settings\{username}\Local Settings\Temp

Vista/7

%SystemDrive%\Users\{username}\AppData\Local\Temp

%UserDomain%

XP

{userdomain}

Vista/7

{userdomain}

%UserName%

XP

{username}

Vista/7

{username}

%UserProfile%

XP

%SystemDrive%\Documents and Settings\{username}

Vista/7

%SystemDrive%\Users\{username}

%windir%

XP

%SystemDrive%\WINDOWS

Vista/7

%SystemDrive%\WINDOWS

 

그외 기타 (배치파일 사용시 이용가능)

%CD%   현재 디렉터리 문자열.

%CMDCMDLINE%  Cmd.exe를 시작하는 데 사용되는 정확한 명령줄.

%CMDEXTVERSION%  현재 명령 프로세서 확장의 버전 번호.

%COMPUTERNAME%  컴퓨터의 이름.

%DATE%   현재 날짜. date /t 명령과 같은 형식을 사용.

%ERRORLEVEL%  시스템  최근에 사용된 명령의 오류 코드. 대개 0이 아닌 값은 오류를 나타냅니다.

%HOMESHARE%  시스템  사용자 공유 홈 디렉터리의 네트워크 경로. 홈 디렉터리의 값을 기반으로 설정되며 로컬 사용자 및 그룹에서 지정.

%NUMBER_OF_PROCESSORS% 컴퓨터에 설치된 프로세서의 수

%OS%   시스템  운영 체제 이름.Windows 7은 운영 체제를 Windows_NT로 표시합니다.

%PROCESSOR_ARCHITECTURE% 프로세서의 칩 아키텍처. 값: x86, amd64 또는 IA64(Itanium 기반)

%PROCESSOR_IDENTFIER% 프로세서의 설명.

%PROCESSOR_LEVEL% 컴퓨터에 설치된 프로세서의 모델 수.

%PROCESSOR_REVISION% 프로세서의 수정 버전 번호.

%PROMPT%  현재 인터프리터에 대한 명령 프롬프트 설정.

%RANDOM%   0에서 32767까지의 수 중에서 임의의 십진수.

%TIME%   현재 시간. time /t 명령과 같은 형식을 사용.

 

출처1 : http://en.wikipedia.org/wiki/Environment_variable

출처2 : https://technet.microsoft.com/ko-kr/library/cc737438(v=ws.10)

Posted by 인생역전로또
:

   필요할 때마다 검색해서 찾아보는 것도 힘들어서 마이크로소프트 제품 지원 기간을 각각 검색하여 정리하였습니다. 필요하신 분들 참고하시길 바라며 출처없이 퍼가시면 화날듯 하네요. 그래도 한시간이나 시간 투자했는데 말이죠.

  오타나 틀린 정보 있으면 댓글 부탁드립니다.

 

 

 

제품명

 

출시일

 

지원종료

Windows 3.1

RTM

1992-03-01

~

2001-12-31

Windows NT Workstation 3.1

RTM

1993-10-24

~

2000-12-31

Windows NT Advanced Server 3.1

RTM

1993-10-24

~

2000-12-31

Windows 95

RTM

1995-08-15

~

2001-12-31

Windows NT Workstation 3.51

RTM

1995-05-30

~

2001-12-31

Windows NT Server 3.51

RTM

1995-08-28

~

2002-09-30

Windows 98

RTM

1998-06-30

~

2006-07-11

SE

1999-06-30

~

2006-07-11

Windows NT 4.0

RTM

1996-07-29

~

2002-12-31

SP1

1996-10-16

~

1997-03-14

SP2

1996-12-14

~

1997-08-15

SP3

1997-05-15

~

1999-01-25

SP4

1998-10-25

~

1999-08-04

SP5

1999-05-04

~

2000-02-29

SP6a

1999-11-30

~

2004-12-31

Windows Millennium Edition

RTM

2000-12-31

~

2006-07-11

Windows 2000

RTM

2000-03-31

~

2005-06-30

SP1

2000-07-31

~

2002-08-01

SP2

2001-05-16

~

2004-06-30

SP3

2002-08-01

~

2005-06-30

SP4

2003-06-26

~

2010-07-13

Windows XP

RTM

2001-12-31

~

2005-08-30

SP1

2002-08-30

~

2006-10-10

SP2

2004-09-17

~

2010-07-13

SP3

2008-04-21

~

2014-04-08

Windows Server 2003

RTM

2003-05-28

~

2007-04-10

SP1

2005-03-30

~

2009-04-14

SP2

2007-03-13

~

2015-07-14

Windows XP x64

RTM

2005-04-24

~

2009-04-14

SP2

2007-03-12

~

2014-04-08

Windows Server 2003 R2

RTM

2006-03-05

~

2009-04-14

SP2

2007-03-13

~

2015-07-14

Windows Vista

RTM

2007-01-25

~

2010-04-13

SP1

2008-02-04

~

2011-07-12

SP2

2009-04-29

~

2017-04-11

Windows Server 2008

RTM

2008-05-06

~

2011-07-12

SP2

2009-04-29

~

2020-01-14

Windows 7

RTM

2009-10-22

~

2013-04-09

SP1

2011-02-22

~

2020-01-14

Windows Server 2008 R2

RTM

2009-10-22

~

2013-04-09

SP1

2011-02-22

~

2020-01-14

Windows 8

RTM

2012-10-30

~

2016-01-12

Windows Server 2012

RTM

2012-10-30

~

2016-01-12

Windows 8.1

RTM

2013-11-13

~

2023-01-10

Windows Server 2012 R2

RTM

2013-11-25

~

2023-01-10

 

 

출처 : Microsoft 제품 지원 기간 검색

Posted by 인생역전로또
:

자주쓰느 예제

---------------------------------------------------------------------------------------------------------

CMD 상에서 환경 설정 방법 (path)

C:\>path   : 현재 환경변수 설정 보여줌

C:\>set path   : 현재 환경변수 설정과  PATHEXT 실행파일이 함께 보인다. : .com/ .exe/ .bat 등과같은 실행 파일

C:\>set path=%path%;%ProgramFiles%\Windows AIK\Tools\amd64;

                                                                          : 일시적으로 환경변수 설정 방법. 재시작하면 다시해야한다.

C:\>setx path "%PATH%;%ProgramFiles%\Windows AIK\Tools\amd64"

                                                                          : 환경변수를 영구적으로 추가한다.

[출처] 간단한 java path 설정 방법 환경변수 설정|작성자 water is life
---------------------------------------------------------------------------------------------------------


Quick links

All MS-DOS commands
Secret MS-DOS commands
MS-DOS applications
MS-DOS error codes
Extended error codes
PC extensions
Creating Boot Disk
Batch Files
Known MS-DOS issues
MS-DOS History
MS-DOS Top 10 commands
Questions and answers
Operating system definitions

About MS-DOS

Short for Microsoft Disk operating system, MS-DOS is a non-graphical command line operating system created for IBM compatible computers that was first introduced by Microsoft in August 1981 and was last updated in 1994 when MS-DOS 6.22 was released. Although the MS-DOS operating system is not commonly used today, the command shell more commonly known as the Windows command line is still used and recommended. Continue reading >>

MS-DOS command list

Tip See the complete overview for a brief description on each of the below commands.

A ansi.sys | append | arp | assign | assoc | at | atmadm | attrib
B backup | batch | bootcfg | break
C cacls | call | cd | chcp | chdir | chdsk | chkntfs | choice | cipher | cls | cmd | color | command | comp | compact | control | convert | copy | ctty
D date | debug | defrag | del | delete | deltree | dir| disable | diskcomp | diskcopy | diskpart | doskey | dosshell | driveparm
E echo | edit | edlin | emm386 | enable | endlocal | erase | exit | expand | extract
F fasthelp | fc | fdisk | find | findstr | fixboot | fixmbr | for| format | ftp | ftype
G goto | gpupdate | graftabl
H help | hostname
I if | ifhlp.sys | ipconfig
J None
K keyb
L label | lh | listsvc | loadfix | loadhigh | lock | logoff | logon
M map | md | mem| mkdir | mode | more | move | msav | msbackup | msd | mscdex | mwbackup
N nbtstat | net | netsh | netstat | nlsfunc | nslookup
O None
P path | pathping | pause | ping | popd | power | print | prompt | pushd
Q qbasic
R rd | reg | ren | rename | rmdir | route | runas
S scandisk | scanreg | set | setlocal | setver | sfc | share | shift | shutdown | smartdrv | sort | start | subst | switches | sys | systeminfo | systemroot
T taskkill | telnet | time | title | tracert | tree | type
U undelete | unformat | unlock
V ver | verify | vol
W None
X xcopy
Y None
Z None

 

Posted by 인생역전로또
:
윈도우 비스타나 7을 사용해보면 관리자 권한으로 실행해야될 프로그램이 너무너무 많습니다.

하지만 대부분은 실행시 우측 마우스 클릭 메뉴에 있는 "관리자 권한으로 실행"을 하게되면 해결이 됩니다.

하지만.......  그걸로는 안되는게 있지요......

이때 Adminstrator 계정을 사용하여 로그인을 하면 모두 해결이 됩니다.

관리자 계정을 사용하기 위해서는 먼저 명령 프롬프트를 관리자 권한으로 실행을 합니다.



명령어 프롬프트에 다음 명령어를 넣고 실행합니다.

net user administrator /active:yes





이렇게 하면 관리자 계정이 나타나며 다음 로그온부터는 관리자 계정으로 로그인이 가능해집니다.

예전 계정은 제어판에 가서 삭제하셔도 되고 그냥 놔두셔도 됩니다. 하지만 자동로그인을 위해서는 지우셔야 될겁니다.
Posted by 인생역전로또
:

먼저 라이선스(License)의 종류에 대강 설명하겠습니다.

 

Retail License: 리테일 라이선스. 소매점에서 구매한 것으로 "Upgrade(업그레이드용)"와 "FPP (Full Purchase Product-처음사용자용)"용으로 구분이 됩니다. 소유자에게 라이선스 부여.

  • Upgrade: 이전의 소프트웨어를 FPP 형태로 소유하고 있을 사용이 가능한 라이선스 형태
  • FPP: 소프트웨어를 처음 사용하기 위한 사용자를 위한 라이선스

 

Volume License (VLK): 일반 단품구매가 아닌 일정 수량(윈도우의 경우 5카피)이상 구매할 동일한 키를 제공하여 관리가 용의하도록 하는 라이선스 형태(VLK: 볼륨 라이선스 ). PC 라이선스 부여.

 

OEM(Original Equipment Manufacturer): 대규모 컴퓨터 완제품 생산업체별로 라이선스 계약을 체결하여 컴퓨터 구매할 제공하는 라이선스. PC 라이선스 부여.

 

COEM(Commercial Original Equipment Manufacturer): 예전에는 DSP(Delivery Service Pack)라고 하였습니다. 완제품 생산업체가 조립PC업체에서만 판매 가능한 라이선스. PC 라이선스 부여.

 

ESD(Electronic Software Distribution): 리테일 라이선스와 유사하나 몇만원 깎아주고 DVD 아닌 다운로드 형태로 제공하는 라이선스입니다.

 

GGK(Get Genuine Kit): 이미 조립이 PC에서 불법 소프트웨어(정품등록이 안된) 사용중인 경우 이에 대하여 새로운 라이선스를 얻는 방법이고 합니다. FPP와 COEM의 혼합형으로 COEM처럼 PC에 라이선스를 부여하는 형태이지만 COEM과는 다르게 업그레이드 후에도 인증이 합법적이라고 하네요. 저도 이정도밖에는 잘 모르겠네요…..ㅠㅠ

 

GGWA(Get Genuine Windows Agreement): GGK 유사한 형태이지만 GGK의 볼륨버젼이라고 합니다. 정확한 차이점을 모르겠네요,,,,^^;;;;;;;;;;;
 

 

솔직히 업그레이드 정책은 처음사용자용이 아닌 업그레이드용을 돈을 지불하고 구입해야합니다. 그래서 그다지 말씀 드릴게 없네요…

 

그렇다면 다운그레이드의 경우에도 좀 헷갈리지만 라이선스의 종류와 서비스 팩의 여부에 따라 결정이 됩니다. 저도 이거 때문에 검색 많이 했습니다. 실제로 회사에서 사용하는 소프트웨어의 업체가 윈도우 비스타나 7에 호환되는 소프트웨어 개발이 느려서 X줄타면서 마이크로소프트에 전화도 많이 하고, 고민 좀 했습니다....유_유

 

마이크로소프트에서 기본적으로 다운그레이드는 볼륨라이선스에만 해당이 됩니다. 하지만 비스타 삽질로 인하여 개인사용자에게도 그 권한을 주기도 하지만 매우 한정적인 범위 내에서만 가능합니다. 일단 리테일 라이선스 등에는 다운그레이드 권한자체가 없습니다. 즉 정품박스를 사셨다면 다운그레이드 불가이며 하위버젼이 필요하다면 적절한 라이선스를 획득하여 가상 머신을 이용해야 합니다.

 

다운그레이드 가능한 경우는 OEM와 COEM, VLK만 가능하며 CD나 시리얼은 제공하지 않으며 단순히 전화인증만 해줍니다. 즉 라이선스는 부여하지만 부가적으로 프로그램이나 설치는 지원하지 않는다는 말입니다. 예를 들어 만약 윈도우7을 구입하였지만 윈도우XP가 필요하다면 알아서 설치하고 마이크로소프트 고객센터에 전화하여 전화인증을 받으면 정식으로 라이선스를 부여해줍니다. 무조건 해주는 것은 아닙니다. 일단 윈도우 서버의 경우는 같은 버전의 같은 언어일 경우 라이선스를 부여하며, 윈도우 운영체제의 경우에는 Professional, Business, Ultimate, Enterprise 버전만 다운그레이드가 가능합니다. 즉 윈도우 7의 경우라면 홈프리미엄, 홈베이직, 스타터 버전의 경우는 다운그레이드 못합니다!!!!

 

아래는 다운그레이드가 확실히 가능한 제가 알고 있는 예입니다. 마이크로소프트에서는 다운그레이드에 대한 권한만을 제공하며 하위 제품에 대한 설치 CD 및 제품 키값은 별도입니다

 

꼭 알고 계셔야 될 것은 Volume(VLK), OEM, COEM(DSP)만 된다는 겁니다!!!

 

 

Windows 10 다운그레이드 권한 (2015년 8월 기준)

다운그레이드가능 버전

OEM Preinstall

Volume Licensing

Windows 10 Pro

Windows 10 Pro

 Windows 10 Enterprise

Windows 10 Education

  Windows 8 /8.1 Enterprise

 

 

 

  Windows 8.1 Pro

 

  Windows 7 Enterprise

 

 

 

  Windows 7 Professional

 

  Windows Vista Enterprise

 

 

 

  Windows Vista Business

 

 

  Windows XP Pro

 

 

  Windows 2000 Professional

 

 

  Windows 95 /98 /NT

 

 

 

# Windows 8.1 다운그레이드 권한 (2014년 12월 기준)

다운그레이드 가능 버전

OEM Preinstall

Volume Licensing

Windows 8.1 Pro

Windows 8.1 Pro

Windows 8.1 Enterprise

  Windows 8 Enterprise

 

 

  Windows 8 Pro

 

  Windows 7 Enterprise

 

 

  Windows 7 Professional

  Windows Vista Enterprise

 

 

  Windows Vista Business

  Windows XP Pro

 

  Windows 2000 Professional

 

  Windows 95 /98 /NT

 

 

# Windows 8 다운그레이드 권한 (2012년 9월 기준)

다운그레이드 가능 버전

OEM Preinstall

Volume Licensing

Windows 8 Pro

Windows 8 Pro

Windows 8 Enterprise

  Windows 7 Enterprise

 

 

  Windows 7 Professional

  Windows Vista Enterprise

 

 

  Windows Vista Business

  Windows XP Pro

 

  Windows 2000 Professional

 

  Windows 95 /98 /NT

 

 

 # Windows 7 다운그레이드 권한 

 다운그레이드 가능 버전

OEM Preinstall

Windows 7 Professional

Windows 7 Ultimate

  Windows Vista Ultimate

 

  Windows Vista Business

 

  Windows XP Professional (x64 Edition 포함)

  Windows XP Tablet PC Edition

 "Windows 7 Enterprise"
-->> 
"Windows Vista Enterprise"

"Windows 7 Professional"
"Windows 7 Ultimate"
"Windows 7 Enterprise"
-->>  "Windows XP Professional(x64 Edition 포함)",

 

"Windows Vista Business"
"Windows Vista Ultimate"
"Windows Vista Enterprise"
-->>  "Windows XP Professional(x64 Edition 포함)"

 

 

"Windows Server" 제품에 대한 호환성을 확보하기 위해 제품을 구입하신 경우 구매 방법에 상관없이 하위 버전의 Windows Server 제품으로 다운그레이드 할 수 있는 권한을 제공합니다. 단, 다운그레이드 시 동일한 Edition과 언어로 다운그레이드 할 수 있습니다. 예를 들어 Windows Server 2008 Standard 한국어 제품을 구매하신 경우 Windows Server 2003 Standard 한국어 제품으로 다운그레이드가 가능합니다.

 

 

"Visual Studio Professional 2008"
-->> 
"Visual Studio 6.0 Professional"

    한 명의 사용자가 프로그램의 설계, 개발, 테스트 및 데모를 목적으로 소프트웨어 복사본을 설치하여 사용할 수 있는 제품으로, 동일 언어의 동일 Edition으로 소프트웨어의 현재 버전과 이전 버전을 동시에 설치하여 사용가능

 

 

마이크로소프트 볼륨 라이선싱 프로그램 페이지

마이크로소프트 볼륨 라이선싱 다운그레이드 권한 요약 PDF (영문)

Windows 8에서 다운그레이드하는 방법

Windows 7 다운그레이드 권한 요약 PDF (한글)

Windows OEM 버전 다운그레이드 권한

마이크로소프트 고객지원센터 전화 : 1577-9700

Posted by 인생역전로또
: