달력

32024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

'windows'에 해당되는 글 4건

  1. 2011.10.20 Windows Service Registry 하위키..
  2. 2011.10.19 Net User 이용
  3. 2011.10.18 관리자 계정으로 장치관리자 열기
  4. 2011.07.06 Net Use 명령어

CurrentControlSet\Services 하위 키


The Services subkeys under the following registry path contain parameters
for the device drivers, file system drivers, and Win32 service drivers:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

The name of each Services subkey is the name of the service, which is also
the root of the name of the file from which the service is loaded. For
example, for the serial mouse, the service name and Services subkey name is
Sermouse. The file from which this is loaded is:

SystemRoot\SYSTEM32\DRIVERS\SERMOUSE.SYS.

All service names are defined under:

     HKEY_LOCAL_MACHINE\SOFTWARE.

The names of the Windows NT built-in network services such as the Alerter
and Browser services are defined under the Microsoft\Windows
NT\CurrentVersion subkey in the Software area of the Registry.

Each Services key can have additional subkeys. Many services have a Linkage
subkey, which provides data for binding network components, as described in
"Linkage Subkey Entries for Network Components," in the article "Network
Adapter Cards Entries, PART 1." Many services also have a Parameters subkey
that contains entries defined by the service with values for configuring
the specific service.

Values for Parameters subkeys and other service-specific entries are
described in these articles:

Network Adapter Cards Entries
Device Drivers Entries
Network Services Entries

The following standard value entries appear for each Services subkey:

ErrorControl     REG_DWORD     Error constant
Specifies the level of error control for the service as follows:

Error Control  Meaning
Level

0x3 (Critical) Fail the attempted system startup.
               If the startup is not using the
               LastKnownGood control set, switch to
               LastKnownGood. If the startup attempt
               is using LastKnownGood, run a bug-check
               routine.

0x2 (Severe)   If the startup is not using the
               LastKnownGood control set, switch to
               LastKnownGood. If the startup attempt
               is using LastKnownGood, continue on
               in case of error.

0x1 (Normal)   If the driver fails to load or initialize,
               startup should proceed, but display a
               warning.

0x0 (Ignore)   If the driver fails to load or initialize,
               start up proceeds. No warning is displayed.

Group     REG_SZ     Group name
Specifies the name of the group of which the particular service is a
member.
Default: (null)

DependOnGroup     REG_MULTI_SZ     Group name
Specifies zero or more group names. If one or more groups is listed, at
least one service from the named group must be loaded before this service
is loaded.
Default: (empty)

DependOnService     REG_MULTI_SZ     Service name
Specifies zero or more Services subkey names. If a service is listed here,
that named service must be loaded before this service is loaded.
Default: (empty)

ImagePath     REG_DWORD     Path and filename
Specifies a path name. For adapters, this value is ignored.
Default: For a driver:

     systemroot\SYSTEM32\DRIVERS\driverName.SYS

For a service:

     systemroot\SYSTEM32\serviceName.EXE

(where driverName or serviceName is the same as the related Services subkey
name)

ObjectName     REG_DWORD     Object name
Specifies an object name. If Type specifies a WIN32 Service, this name is
the account name that the service will use to log on when the service runs.
If Type specifies a Kernel driver or file system driver, this name is the
Windows NT driver object name that the I/O Manager uses to load the device
driver.
Default: subkeyName

Start     REG_DWORD     Start constant
Specifies the starting values for the service as follows:

START TYPE     LOADER     MEANING

0x0            Kernel     Represents a part of the
(Boot)                    driver stack for the boot
                          (startup) volume and must
                          therefore be loaded by the
                          Boot Loader.

0x1            I/O        Represents a driver to be loaded
(System)       subsystem  at Kernel initialization.

0x2            Service    To be loaded or started
(Auto load)    Control    automatically for all startups,
               Manager    regardless of service type.

0x3            Service    Available, regardless of type,
(Load on       Control    but will not be started until
demand)        Manager    the user starts it (for example,
                          by using the Devices icon in
                          Control Panel).

0x4            Service    NOT TO BE STARTED UNDER ANY
(disabled)     Control    CONDITIONS.
               Manager

The Start value is ignored for adapters. If Type is a Win32 Service value
(as described below), the Start value must specify an Auto, Demand, or
Disabled value.

Tag     REG_DWORD
Specifies a load order within a given group. The value of Tag specifies a
number that is unique within the group of which the service is a member.
The related GroupName entry under the Control\GroupOrderList subkey
specifies a list of tags, in load order.

For example, the following services that are members of the Primary Disk
group could have these values: Tag=4 for the Abiosdsk subkey, Tag=2 for
Atdisk, Tag=1 for Cpqarray, and Tag=3 for Floppy. The value for Primary
Disk under the GroupOrderList subkey will use these Tag values to specify
the defined order for loading these services. As another example, each SCSI
miniport service has a unique Tag value that is used as an identifier in
the SCSI miniport value under the GroupOrderList subkey to define which
SCSI adapter to load first.

Type     REG_DWORD     Type constant

Specifies the type of service as follows:

Service Type   Description

0x1            A Kernel device driver.

0x2            File system driver, which is also
               a Kernel device driver.

0x4            A set of arguments for an adapter.

0x10           A Win32 program that can be started
               by the Service Controller and that
               obeys the service control protocol.
               This type of Win32 service runs in
               a process by itself.

0x20           A Win32 service that can share a process
               with other Win32 services.


For example, when you start Windows NT, the Boot Loader scans the Registry
for drivers with a Start value of 0 (which indicates that these drivers
should be loaded but not initialized before the Kernel) and a Type value of
0x1 (which indicates a Kernel device driver such as a hard disk or other
low-level hardware device driver). The drivers are then loaded into memory
in the order specified as the List value in
CurrentControlSet\Control\ServiceGroupOrder.

http://support.microsoft.com/kb/103000/ko



'창고 > 컴터' 카테고리의 다른 글

Zip 명령어  (0) 2011.09.27
Windows7에서 제어판의 시스템 이미지 백업/복원  (0) 2011.03.03
Posted by 촌돌애비
|

Net User 이용

창고/Command 2011. 10. 19. 10:24
  
NET USER
[사용자 이름 [암호 | *] [옵션]] [/DOMAIN]
         사용자 이름 {암호 | *} /ADD [옵션] [/DOMAIN]
         사용자 이름 [/DELETE] [/DOMAIN]
         사용자 이름 [/TIMES:{시간 | ALL}]
 
 
NET USER는 컴퓨터의 사용자 계정을 만들거나 수정합니다. 
스위치 없이 사용될 경우, 컴퓨터에 있는 사용자 계정을 열거해 줍니다. 
 
사용자 계정 정보는 사용자 계정 데이터베이스에 저장됩니다.  
이 명령은 서버상에서만 실행됩니다.  
 
사용자이름 추가, 삭제, 수정, 또는 보고자 하는 사용자 계정의 이름입니다. 
사용자 계정의 이름은 20자까지 쓸 수 있습니다. 
암호         사용자 계정에 대한 암호를 부여하거나 바꿔줍니다. 
 
암호는 NET ACCOUNTS 명령의 /MINPWLEN 옵션으로 설정된 최저 길이 조건을 만족시켜야 합니다. 
14자까지 쓸 수 있습니다. *  암호를 칠 수 있는 프롬프트 상태로 만들어줍니다. 
암호 프롬프트 에서는 입력된 암호가 보이지 않습니다. 
 
/DOMAIN      현재 도메인의 도메인 컨트롤러에 대한 작업을 수행합니다. 
/ADD            사용자 계정 데이터베이스에 사용자 계정을 추가합니다. 
/DELETE      사용자 계정 데이터베이스에서 사용자 계정을 삭제합니다.  
 
옵션..
----------------------------------------------------------------------- 
/ACTIVE:{YES | NO}      해당 계정을 활성화시키거나 비활성화시킵니다. 해당 계정이 활성화되어 있지 않을 경우
                                    사용자는 서버에 연결할 수 없습니다. 기본설정은 YES입니다. 
 
/COMMENT: "문자열"     사용자의 계정에 관한 설명을 제공합니다. (최고 48자까지 쓸 수 있습니다).
                                    문자열은 인용 부호 안에 넣습니다. 
 
/COUNTRYCODE:nnn     사용자의 도움말과 오류 메시지를 위한 특정 언어 파일을 만들기 위해
                                    운영 시스템의 국가 코드를 이용합니다. 0은 기본 설정 국가 코드를 나타냅니다. 
 
/EXPIRES:{날짜| NEVER}  날짜를 지정해주면 계정이 지정된 날짜에 만료됩니다. 
       NEVER는 시간 제한을 주지 않음을 의미합니다. 
       만료 날짜는 국가 코드에 따라 월/일/년 혹은 일/월/ 년의 형태로 표시합니다. 
       월은 숫자로 하거나 문자로 표 기해도 되고 3자로 약자표기 할 수도 있습니다. 
       년도는 2자 혹은 4자의 숫자로 표기합니다. 
       날짜를 표기할 때는 슬래시(/) (공백이 아니라)를 써서 년월일을 구분합니다.  
/FULLNAME:"이름"            사용자의 전체 이름입니다(사용자이름이라기보다). 이름은 인용부호 안에 넣어줍니다. 
/HOMEDIR:경로명             사용자의 홈 디렉터리에 대한 경로를 지정해줍니다. 경로는 반드시 있어야 합니다. 
 
/PASSWORDCHG:{YES| NO}  사용자가 자신의 암호를 변경할 수 있는지 지정해 줍니다. 기본 설정은 YES입니다.
/PASSWORDREQ:{YES | NO} 사용자 계정에 암호가 있어야 하는지를 지정합니다. 기본설정은 YES입니다. 
 
/PROFILEPATH               사용자의 로그온 프로필 경로를 지정합니다. 
/SCRIPTPATH:경로명      사용자의 로그온 스크립트의 위치입니다. 
/TIMES:{시간 | ALL}     로그온 시간입니다. 요일], 시간]으로 표기되며 1시간씩 늘어나도록 제한됩니다. 
   요일은 영문으로 표기하되 전부 풀어 쓰거나 줄여 쓸 수 있습니다. 
   시간은 12시간 표기법이나 24시간 표기법 둘 다 가능합니다. 
   12시간 표기법으로 쓸 때는 am, pm, a.m., 또는 p.m. 으로 구분시켜줍니다. 
   ALL은 사용자가 항상 로그온할 수 있다는 의미이고
                                   공란은 사용자가 절대로 로그온할 수 없음을 표시합니다. 
   요일과 시간은 쉼표(,)로 구분시켜주고,
                                   요일과 시간을 여러 개 쓸 경우에는 세미콜론(;)으로 구분시킵니다. 
/USERCOMMENT:"문자열"               관리자가 계정에 대한 사용자 설명을 추가하거나 변경시킬 수 있게 해줍니다. 
/WORKSTATIONS:{컴퓨터이름 | *}   사용자가 어느 컴퓨터에서 네트워크로 로그온 할 수 있는지 보여줍니다. 
                                                     최고 8개 컴퓨터까지 보여줍니다.
                                                     목록이 없거나 *일 경우 사용자는 어느 컴퓨터에서도 로그온 할 수 있습니다.    
그룹에 추가하는 방법을 알아보겠습니다.  
----------------------------------------------------------------------- 
해당 명령어는 NET LOCALGROUP 과 NET GROUP가 있습니다.  
LOCALGROUP는 로컬 컴퓨터 그룹에 등록할 때 사용하고,  
GROUP는 도메인 그룹에 등록할 때 사용합니다.  
해당 명령어에 대한 설명은 아래와 같습니다.  
NET GROUP
[  그룹이름 {/ADD  | /DELETE}   그룹이름 사용자이름  {/ADD | /DELETE}   
NET GROUP 서버상의 글로벌 그룹을 추가 하거나, 보여주거나, 정해 줍니다. 변수없이 사용될 경우에는 해당 서버상의 그룹 이름을 보여줍니다.  
그룹이름           추가, 확장 또는 삭제할 그룹이름입니다. 어떤 그룹에 있는 사용자 목록을 보려면 그 그룹의 이름만 입력하면 됩니다. 
/COMMENT:"문자열" 기존의 그룹 또는 새로운 그룹에 대한 설명을 추가합니다.
                                 48자까지 쓸 수 있으며, 문자열은 반드시 인용 부호 안에 넣습니다. 
/DOMAIN            현재 도메인의 도메인 컨트롤러에서 작업을 수행합니다. 
 그렇지 않을 경우, 로컬 컴퓨터에서 작업이 이루어집니다. 
 사용자 이름  그룹에 추가시키거나 그룹에서 삭제하고자 하는 사용자 이름 을 나열합니다.  
 사용자 이름이 여러 개일 경우  공백을 이용 하여 구분합니다. 
/ADD                그룹을 추가하거나 사용자 이름을 그룹에 추가합니다. 
/DELETE              그룹을 삭제하거나 사용자 이름을 그룹에서 제거합니다.  

NET LOCALGROUP 
[ 그룹이름 {/ADD  | /DELETE}   
그룹이름 이름  {/ADD | /DELETE}   
NET LOCALGROUP은 컴퓨터 상의 로컬 그룹을 수정합니다. 
따로 옵션을 주지 않을 경우에는, 컴퓨터상의 로컬 그룹들을 보여 줍니다.  
그룹이름           추가, 확장 혹은 삭제하고자 하는 로컬 그룹 이름입니다. 
로컬 그룹 안에 있는 사용자 또는 글로벌 그룹이 어떤 것들이 있는지 보고자 할 경우 그룹 이름만 주면 됩니다.  
/COMMENT:"문자열"  새로운 또는 기존의 그룹에 관한 설명을 추가합니다. 인용부호 안에 문자열을 넣어 줍니다. 
/DOMAIN             현재 도메인의 주 도메인 컨트롤러에서 작업을 수행합니다.
                                그렇지 않을 경우, 로컬 워크스테이션에서 작업이 이루어집 니다. 
이름 로컬 그룹에 추가시키거나 로컬 그룹에서 삭제하고자 하는
                                사용자 이름이나 그룹 이름을 보여줍니다.  여러 개일 경우 공백을 써서 구분시킵니다.
                                다른 로컬 그룹 이름은 안되고 사용자나 글로벌 그룹이름을 씁니다.                      
  만약에 사용자가 다른 도메인에 속해 있을 경우,
                                사용자 이름을 속해 있는 도메인 이름 뒤에 써 줍니다. (예, SALES\RALPHR) 
 
/ADD               그룹 이름 혹은 사용자 이름을 로컬 그룹에 추가합니다.
                                계정이 설정되어 있는 사용자 혹은 글로벌 그룹만이 로컬 그룹에 추가될 수 있습니다. 
/DELETE                   로컬 그룹에서 그룹 이름 또는 사용자 이름을 삭제합니다.   
그럼 명령어에 대한 예를 간단히 들어보겠습니다.   
----------------------------------------------------------------------- 
net user asdf asdf /add   asdf 사용자를 만듭니다.  
net localgroup administrators asdf /add                           asdf 를 administrators 그룹에 소속 시킵니다.  
net localgroup administrators  
net localgroup administrators asdf /delete                              asdf 를 administrators 그룹에 제외 시킵니다.  
net user asdf /delete  asdf 사용자를 삭제합니다.   
  
  
  

'창고 > Command' 카테고리의 다른 글

관리자 계정으로 장치관리자 열기  (0) 2011.10.18
Net Use 명령어  (0) 2011.07.06
[펌]간단한 Cmd...도스명령어 모음...  (0) 2011.07.06
Posted by 촌돌애비
|
runas /user:Administrator "mmc devmgmt.msc"

 

'창고 > Command' 카테고리의 다른 글

Net User 이용  (0) 2011.10.19
Net Use 명령어  (0) 2011.07.06
[펌]간단한 Cmd...도스명령어 모음...  (0) 2011.07.06
Posted by 촌돌애비
|

Net Use 명령어

창고/Command 2011. 7. 6. 09:14

Windows를 사용하다 보면 폴더공유등 네트워크자원을 사용할 경우가 많다.

특히 사람들 간에 자료를 공유해야 할 때 많이 폴더 공유등을 많이 사용하게 되는데...

그때 공유된 폴더의 권한 제어로 인해 접근이 제한될 경우가 많다..

이럴때 개인적으로 사용하는 방법이 Cmd창을 실행한 후에, Net Use명령어를 사용한다.

Cmd 창에서

net use를 실행하면.... 현재 연결된 목록들을 보여준다.

이런 모든 연결을 초기화 시키려면

net use * /delete 을 실행하면, 모두 지우겠느냐는 질문과 함께 "예"를 선택하면, 연결되었던 모든 연결이 초기화된다.

그리고 다시 공유폴더를 접근할 때 아이디와 패스워드를 입력하면 새로운 연결을 사용할 수 있다.

또한 자주사용하는 것일 경우 .bat나 .cmd을 이용해서 목록화해서 실행시키는 방법도 개인적으로 사용하고 있는 방법이다.

명령어 사용법은
net use 접속서버(ip 또는 컴터이름) /user:접속서버(ip 또는 컴터이름)\아이디 패스워드

예)
rem This is My Connect Bat...
net use \\192.168.1.100 /user:192.168.100\촌돌애비 아싸가오리

보다 자세한 사항은
net use /? 을 이용하여 cmd창에서 확인한다.


NET USE
[장치 이름 | *] [\\컴퓨터 이름\공유 이름[\볼륨] [암호 | *]]
        [/USER:[도메인 이름\]사용자 이름]
        [/USER:[점으로 구분된 도메인 이름\]사용자 이름]
        [/USER:[사용자 이름@점으로 구분된 도메인 이름]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {장치 이름 | *} [암호 | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

'창고 > Command' 카테고리의 다른 글

Net User 이용  (0) 2011.10.19
관리자 계정으로 장치관리자 열기  (0) 2011.10.18
[펌]간단한 Cmd...도스명령어 모음...  (0) 2011.07.06
Posted by 촌돌애비
|