반응형

 

원래 윈도우에서는 기본적으로 분단위까지만 표시를 해주지만 쓰다보면 초단위를 표시 안해주는게 아쉬울때가 있다.(수강신청할때라던가...예구 대기한다던가 할때처럼)

 

그래서 오늘은 윈도우 시계에 초단위 표시하는법을 써보려 한다.

 

방법은 간단(?)하다. 레지스트리를 건드리면 된다.

레지스트리 건드리는게 두려운 사람들을 위해 실행파일도 첨부하니 직접 하기 귀찮거나 무서운 사람들은 다운받아 실행하면 된다!

 

addseconclock.reg
0.00MB

 

 

레지스트리 수정법 :

 

윈도우 + r 키 누른 후 regedit 입력 후 엔터

 

 

 

그러면 이런 창이 뜰것이다.

 

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced

위 경로로 들어가준다.

 

 

 

경로에 들어갔으면

빈공간에 우클릭 - 새로만들기 - dword 32비트값을 선택해준다.

 

 

그러면 이렇게 새 값이라고 새로운 값이 생긴다.

 

이 값 이름을 ShowSecondsInSystemClock으로 바꿔준다.

 

 

 

이름이 바뀐걸 확인 후 우클릭 - 수정을 택한다.

 

 

이런 창이 뜨게 되는데 값 데이터는 1, 단위는 16진수로 선택한 뒤 확인을 눌러 저장한다.

 

모든게 다 끝났으면 재부팅 해서 정상적으로 초 단위가 보이는지 확인해본다.

 

 

 

이렇게 뜨면 성공!!

 

반응형
반응형

 

기본 형식

schtasks /create ---

 

/create 뒤에 인수들을 추가하면 된다.

가장 많이 쓸만한 인수들을 정리해봤다.

 

/sc 스케줄타입 /tn "작업 이름" /tr "실행할 명령어, 프로그램 경로" /st "시작할 시간" /et "끝낼 시간"

 

여기서 쌍따옴표 붙인건 쌍따옴표를 붙여야 작동하는 인수들이다.

 

시간은 반드시 24시간형식으로 써야한다.

 

스케줄 타입 명령어로는

MINUTE - 매 분마다

HOURLY - 매 시간마다

DAILY - 매일마다

WEEKLY - 매주마다

MONTHLY - 매달마다

ONCE - 1회만

ONLOGON - 로그온시 매번

ONIDLE - 아이들 상태로 진입시 매번

 

이렇게 있다.

 

예시로 자동 종료 작업을 추가하도록 명령어를 써보겠다.

자동 종료 명령어 관련해서는 아래 글을 참고하길 바란다.

 

https://blog.naver.com/joshuasuah/222155389020

 

윈도우 자동 종료/재부팅 설정법

가끔 컴퓨터를 정해진 시간에 끄거나 재부팅 하고싶을때가 있습니다.컴퓨터 대수가 적으면 직접 끄면 되지...

blog.naver.com

 

 

schtasks /create /sc daily /tn "auto_off" /tr "shutdown -s -t 5 -f" /st "23:00"

 

이렇게 하면 매일 23시(오후 11시)에 auto_off라는 이름의 작업이 실행되어 컴퓨터가 자동 종료되게 된다.

 

이런식으로 인수들을 활용해 작업을 등록하면 된다.

 

 

 

참고 : 마이크로소프트 독스

이미지 썸네일 삭제

schtasks create

Reference article for the schtasks create command, which

docs.microsoft.com

형식

schtasks /create /sc <scheduletype> /tn <taskname> /tr <taskrun> [/s <computer> [/u [<domain>\]<user> [/p <password>]]] [/ru {[<domain>\]<user> | system}] [/rp <password>] [/mo <modifier>] [/d <day>[,<day>...] | *] [/m <month>[,<month>...]] [/i <idletime>] [/st <starttime>] [/ri <interval>] [{/et <endtime> | /du <duration>} [/k]] [/sd <startdate>] [/ed <enddate>] [/it] [/z] [/f]

파라미터

/sc <scheduletype> Specifies the schedule type. The valid values include: MINUTE - Specifies the number of minutes before the task should run. HOURLY - Specifies the number of hours before the task should run. DAILY - Specifies the number of days before the task should run. WEEKLY Specifies the number of weeks before the task should run. MONTHLY - Specifies the number of months before the task should run. ONCE - Specifies that that task runs once at a specified date and time. ONSTART - Specifies that the task runs every time the system starts. You can specify a start date, or run the task the next time the system starts. ONLOGON - Specifies that the task runs whenever a user (any user) logs on. You can specify a date, or run the task the next time the user logs on. ONIDLE - Specifies that the task runs whenever the system is idle for a specified period of time. You can specify a date, or run the task the next time the system is idle.

/tn <taskname> Specifies a name for the task. Each task on the system must have a unique name and must conform to the rules for file names, not exceeding 238 characters. Use quotation marks to enclose names that include spaces.

/tr <Taskrun> Specifies the program or command that the task runs. Type the fully qualified path and file name of an executable file, script file, or batch file. The path name must not exceed 262 characters. If you don't add the path, schtasks assumes that the file is in the <systemroot>\System32 directory.

 

/s <computer> Specifies the name or IP address of a remote computer (with or without backslashes). The default is the local computer.

/u [<domain>] Runs this command with the permissions of the specified user account. The default is the permissions of the current user of the local computer. The /u and /p parameters are valid only when you use /s. The permissions of the specified account are used to schedule the task and to run the task. To run the task with the permissions of a different user, use the /ru parameter. The user account must be a member of the Administrators group on the remote computer. Also, the local computer must be in the same domain as the remote computer, or must be in a domain that is trusted by the remote computer domain.



/p <password> Specifies the password of the user account specified in the /u parameter. If you use the /u parameter without the /p parameter or the password argument, schtasks will prompt you for a password. The /u and /p parameters are valid only when you use /s.



/ru {[<domain>\]<user> | system} Runs the task with permissions of the specified user account. By default, the task runs with the permissions of the current user of the local computer, or with the permission of the user specified by the /u parameter, if one is included. The /ru parameter is valid when scheduling tasks on local or remote computers. The valid options include: Domain - Specifies an alternate user account. System - Specifies the local System account, a highly privileged account used by the operating system and system services.



/rp <password> Specifies a the password for the existing user account, or the user account specified by the /ru parameter. If you don't use this parameter when specifying a user account, SchTasks.exe will prompt you for the password next time you sign in. Don't use the /rp parameter for tasks that run with System account credentials (/ru System). The System account doesn't have a password and SchTasks.exe doesn't prompt for one.



/mo <modifiers> Specifies how often the task runs within its schedule type. The valid options include: MINUTE - Specifies that the task runs every minutes. You can use any value between 1 - 1439 minutes. By default, this is 1 minute. HOURLY - Specifies that the task runs every hours. You can use any value between 1 - 23 hours. By default, this is 1 hour. DAILY - Specifies that the task runs every days. You can use any value between 1 - 365 days. By default, this is 1 day. WEEKLY - Specifies that the task runs every weeks. You can use any value between 1 - 52 weeks. By default, this is 1 week. MONTHLY - Specifies that the task runs every months. You can use any of the following values: A number between 1 - 12 months LASTDAY - To run the task on the last day of the month FIRST, SECOND, THIRD, or FOURTH along with the /d <day> parameter - Specifies the particular week and day to run the task. For example, on the third Wednesday of the month. ONCE - Specifies that the task runs once. ONSTART - Specifies that the task runs at startup. ONLOGON - Specifies that the task runs when the user specified by the /u parameter logs on. ONIDLE - Specifies that the task runs after the system is idle for the number of minutes specified by the /i parameter



/d DAY[,DAY...] Specifies how often the task runs within its schedule type. The valid options include: WEEKLY - Specifies that the task runs weekly by providing a value between 1-52 weeks. Optionally, you can also add a specific day of the week by adding a value of MON - SUN or a range of [MON - SUN...]). MONTHLY - Specifies that the task runs weekly each month by providing a value of FIRST, SECOND, THIRD, FOURTH, LAST. Optionally, you can also add a specific day of the week by adding a value of MON - SUN or by providing a number between 1 - 12 months. If you use this option, you can also add a specific day of the month, by providing a number between 1-31. NOTE: The date value of 1 - 31 is valid only without the /mo parameter, or if the /mo parameter is monthly (1 - 12). The default is day 1 (the first day of the month).



/m MONTH[,MONTH...] Specifies a month or months of the year during which the scheduled task should run. The valid options include JAN - DEC and * (every month). The /m parameter is valid only with a MONTHLY schedule. It's required when the LASTDAY modifier is used. Otherwise, it's optional and the default value is * (every month).



/i Specifies how many minutes the computer is idle before the task starts. A valid value is a whole number from 1 to 999. This parameter is valid only with an ONIDLE schedule, and then it's required.



/st <Starttime> Specifies the start time for the task, using the 24-hour time format, HH:mm. The default value is the current time on the local computer. The /st parameter is valid with MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, and ONCE schedules. It's required for a ONCE schedule.



/ri <interval> Specifies the repetition interval for the scheduled task, in minutes. This isn't applicable for schedule types: MINUTE, HOURLY, ONSTART, ONLOGON, and ONIDLE. Valid range is 1 - 599940 (599940 minutes = 9999 hours). If either the /et or /du parameters are specified, the default is 10 minutes.



/et <Endtime> Specifies the time of day that a minute or hourly task schedule ends in <HH:MM> 24-hour format. After the specified end time, schtasks does not start the task again until the start time recurs. By default, task schedules have no end time. This parameter is optional and valid only with a MINUTE or HOURLY schedule.



/du <duration> Specifies a maximum length of time for a minute or hourly schedule in HHHH:MM 24-hour format. After the specified time elapses, schtasks does not start the task again until the start time recurs. By default, task schedules have no maximum duration. This parameter is optional and valid only with a MINUTE or HOURLY schedule.



/k Stops the program that the task runs at the time specified by /et or /du. Without /k, schtasks doesn't start the program again after it reaches the time specified by /et or /du nor does it stop the program if it's still running. This parameter is optional and valid only with a MINUTE or HOURLY schedule.



/sd Specifies the date on which the task schedule starts. The default value is the current date on the local computer. The format for Startdate varies with the locale selected for the local computer in Regional and Language Options. Only one format is valid for each locale. The valid date formats include (be sure to choose the format most similar to the format selected for Short date in Regional and Language Options on the local computer): <MM>// - Specifies to use month-first formats, such as English (United States) and Spanish (Panama). <DD>// - Specifies to use day-first formats, such as Bulgarian and Dutch (Netherlands). <YYYY>// - Specifies to use for year-first formats, such as Swedish and French (Canada).



/ed <Enddate> Specifies the date on which the schedule ends. This parameter is optional. It isn't valid in a ONCE, ONSTART, ONLOGON, or ONIDLE schedule. By default, schedules have no ending date. The default value is the current date on the local computer. The format for Enddate varies with the locale selected for the local computer in Regional and Language Options. Only one format is valid for each locale. The valid date formats include (be sure to choose the format most similar to the format selected for Short date in Regional and Language Options on the local computer): <MM>// - Specifies to use month-first formats, such as English (United States) and Spanish (Panama). <DD>// - Specifies to use day-first formats, such as Bulgarian and Dutch (Netherlands). <YYYY>// - Specifies to use for year-first formats, such as Swedish and French (Canada).



/it Specifies to run the scheduled task only when the run as user (the user account under which the task runs) is logged on to the computer. This parameter has no effect on tasks that run with system permissions or tasks that already have the interactive-only property set. You can't use a change command to remove the interactive-only property from a task. By default, run as user is the current user of the local computer when the task is scheduled or the account specified by the /u parameter, if one is used. However, if the command includes the /ru parameter, then the run as user is the account specified by the /ru parameter.



/z Specifies to delete the task upon the completion of its schedule.



/f Specifies to create the task and suppress warnings if the specified task already exists.



/? Displays help at the command prompt.

 

 

반응형

'윈도우' 카테고리의 다른 글

윈도우 시계에 초 표시하는법  (0) 2021.04.12
윈도우 자동 종료/재부팅 설정법  (0) 2021.03.19
윈도우 10 초기 설정 및 최적화  (0) 2021.03.18
반응형

 

가끔 컴퓨터를 정해진 시간에 끄거나 재부팅 하고싶을때가 있습니다.

컴퓨터 대수가 적으면 직접 끄면 되지만, 학원등 특수한 환경에서 여러대의 관리가 힘들거나 귀찮을때 자동으로 종료되었으면 좋겠다는 생각을 하는 사람들이 분명히 계실겁니다.

 

물론 오토오프같은 서드파티 프로그램도 있지만, 프로그램 설치하기는 싫으신 분들을 위해 오늘 윈도우 자체 도구인 작업 스케줄러를 이용해 설정하는법을 포스팅 하도록 하겠습니다.

 

 

설정법

 

1.윈도우 검색에 '작업 스케줄러'를 검색

 

 

 

작업 스케줄러가 켜지면 우측에 '기본 작업 만들기'를 클릭해줍니다.

 

 

 

2. 이름 짓기

마음대로 지으셔도 됩니다.

전 자동 종료 설정을 할것이기에 이름을 '자동 종료'로 만들었습니다.

 

 

 

 

3. 주기 정하기

 

원하는 작업이 시작되는 주기를 정할 수 있습니다.

저는 매일로 정했습니다.

 

 

4. 시간 정하기

원하는 작업이 실행될 시간을 정합니다.

전 보통 11시 까지 컴퓨터를 사용하기때문에, 12시에 시간을 맞췄습니다.

이러면 자동으로 12시에 컴퓨터가 꺼질겁니다.

 

아래에 매 1일마다로 설정하세요.

 

 

 

5. 여기부터는 좀 복잡합니다.

 

프로그램 시작 선택

 

 

프로그램 스크립트에 아래 명령을 적습니다.

 

(종료 명령어)

shutdown -s -c "원하는 이름" -t 5 -f

 

(재부팅 명령어)

shutdown -r -c "원하는 이름" -t 5 -f

 

 

여기서 인수를 간단하게 정리를 하면

-s = 종료

-r = 재부팅

-c = 원하는 이름

-t 숫자 = 몇 초 후에 명령을 실행할건지

-f = 실행중인 프로그램 종료

 

 

 

 

 

예를 누르시고

 

 

마침을 누르시면 됩니다.

 

 

여기에서 새로 만든 작업을 우클릭 - 속성에 들어갑니다.

 

 

조건 탭에서 '전원 항목에 있는 컴퓨터의 AC 전원이 켜져 있는 경우에만 작업 시작' 을 체크 해제합니다.

확인하고 나오시면 됩니다!

 

이제 원하는 시간에 컴퓨터가 종료 혹은 재부팅 될겁니다.

 

반응형
반응형

 

최근 윈도우 10의 보급이 늘고 또 윈도우 7 지원이 종료되면서 윈도우 10을 사용하시는 분들이 많아졌습니다.

 

저도 윈도우 7을 사용하다가 지원 중단한다길래 얼른 윈도우 10으로 업데이트해서 사용했었습니다.

 

그런데 윈도우 10이 윈도우 7보다 덜 쾌적한 느낌이 들더군요. 알고보니 최적화 방법이 따로 있었습니다.

 

그래서 오늘은 저같이 최적화 하는법을 모르는 분들을 위해 윈도우 10 최적화 방법을 포스팅 해보겠습니다.

 

 

1. 전원관리 옵션 '고성능'

 

설정법 :

 

1. 윈도우 검색에 전원 관리 옵션 선택 검색

 

 

 

2. 고성능 선택

 

처음에 고성능 선택항목이 안보이시는 분들은 추가 전원 관리 옵션 표시를 클릭하시면 됩니다.

 

 

 

 

 

 

 

노트북의 경우는 아래처럼 균형 조정만 있을겁니다.

이때는 우측 하단 작업표시줄에 배터리 모양을 클릭하셔서 '최고 성능'으로 두시면 고성능과 같은 기능을 합니다.

대표사진 삭제

사진 설명을 입력하세요.

 

 

기본 윈도우 설정은 균형 조정입니다.

이 옵션의 경우 평소에는 cpu에 전력을 최소한으로 주다가 게임등 작업량이 많아질때 전력을 많이 주는 등 유동적으로 전력을 조절해줍니다.

문제는 이걸 키면 시스템이 버벅거리거나 반응이 느린듯한 느낌이 듭니다.

 

노트북처럼 배터리를 사용하는 제품은 균형 조정으로 두는것도 좋지만, 전원이 연결되어있거나 데스크탑같은 제품은 고성능으로 두는게 훨신 쾌적하게 사용하실 수 있습니다

 

 

 

2. 코타나 해제

 

방법 :

1. gpedit을 이용

 

윈도우 + r - gpedit.msc 입력 후 엔터

 

 

 

 

좌측 컴퓨터 구성에서

관리템플릿 - Windows 구성 요소 - 검색 으로 이동

 

우측 목록에서 cortana 허용 우클릭

 

 

사용 안함 선택 후 확인 하시면 됩니다.

 

 

 

저 항목 아래에 있는 cortana 관련 항목들도 마찬가지로 사용 안함으로 바꿔주세요.

 

2. 레지스트리 파일 수정

 

위 gpedit.msc를 이용한 방법은 윈도우 프로/에듀 사용자만 가능합니다.

윈도우 홈 사용자는 레지스트리 파일을 수정하셔야 하는데, 아래 실행파일을 실행하시면 직접 수정하실 필요 없습니다.

파일 첨부disable_cortana.reg

 

 

3. 전송 최적화 끄기

 

설정 - 업데이트 및 보안 - 전송 최적화 경로로 들어가셔서 '다른 pc에서 다운로드 허용' 을 끔으로 바꾸시면 됩니다.

이게 켜져있을경우 저장공간을 잡아먹더군요...

 

 

 

 

4. 기타 개인정보 관련 설정

 

1. 설정 - 개인설정 - 시작 경로로 들어가시면 아래 사진처럼 되어있을겁니다.

 

여기서

 

최근에 추가된 앱 표시

시작 메뉴의 점프 목록, 작업 표시줄 또는 파일 탐색기 즐겨찾기에서 최근에 연 항목 표시

 

이 두개를 끄시면 됩니다.

나머지는 끄셔도 좋고 안끄셔도 됩니다.

 

 

2. 광고 id 끄기

 

설정 - 개인정보 - 일반

 

동그라미 친 부분 체크 해제하시면 됩니다.

 

3. 활동 기록 끄기

 

설정 - 개인정보 - 활동 기록 으로 가신 뒤

동그라미 친 부분 전부 체크 해제 하시면 됩니다.

 

 

4. 진단 데이터 끄기

 

설정 - 개인정보- 피드백 및 진단 항목에서

 

'필수 진단 데이터'로 체크 하시면 됩니다.

 

 

5. 작업 표시줄 설정

 

작업 표시줄 우클릭 - 작업 보기 단추 표시 끄기

 

 

 

이렇게 하시면 초기 설정 및 최적화 끝입니다!

 

반응형

+ Recent posts