435 HOW TO: Remove the Service Pack Restore Files and Folders in |
435 HOW TO: Remove the Service Pack Restore Files and Folders in |
436 Windows |
436 Windows |
437 http://support.microsoft.com/kb/253597 |
437 http://support.microsoft.com/kb/253597 |
438 Automating Disk Cleanup Tool in Windows |
438 Automating Disk Cleanup Tool in Windows |
439 |
439 |
440 Schedule Tasks in Windows. |
440 Schedule Tasks in Windows |
441 ========================== |
441 ========================= |
442 |
442 |
443 List registered of task. |
443 List registered of task:: |
444 ------------------------ |
|
445 :: |
|
446 |
444 |
447 $ schtasks /query |
445 $ schtasks /query |
448 |
446 |
449 Create task. |
447 Create task:: |
450 ------------ |
|
451 :: |
|
452 |
448 |
453 $ schtasks /create /tn %TASK_NAME% /ru %ROOT% /sc daily /st 23:00:00 /tr "rundll32.exe user32.dll,LockWorkStation" |
449 $ schtasks /create /tn %TASK_NAME% /ru %ROOT% /sc daily /st 23:00:00 /tr "rundll32.exe user32.dll,LockWorkStation" |
454 |
450 |
455 /sc can be one of:: |
451 ``/sc`` can be one of:: |
456 |
452 |
457 MINUTE HOURLY DAILY WEEKLY MONTHLY ONCE ONSTART ONLOGON ONIDLE |
453 MINUTE HOURLY DAILY WEEKLY MONTHLY ONCE ONSTART ONLOGON ONIDLE |
458 |
454 |
459 Delete task. |
455 Delete task:: |
460 ------------ |
|
461 :: |
|
462 |
456 |
463 schtasks /delete /tn %TASK_NAME% /f |
457 schtasks /delete /tn %TASK_NAME% /f |
464 |
458 |
465 Change NTFS permissions |
459 Change NTFS permissions |
466 ======================= |
460 ======================= |
526 cmd> net user /ADD %USER% * |
520 cmd> net user /ADD %USER% * |
527 |
521 |
528 Well-known security identifiers (SID). |
522 Well-known security identifiers (SID). |
529 ====================================== |
523 ====================================== |
530 |
524 |
531 S-1-0-0 |
525 Pring SIDs of groups:: |
532 Null SID. A group with no members. This is often used when a SID |
526 |
533 value is not known. |
527 cmd> whoami /groups |
534 S-1-1-0 |
528 |
535 World/Everyone. A group that includes all users. |
529 Print current user SID:: |
536 S-1-3-0 |
530 |
537 Creator Owner ID. A security identifier to be replaced by the |
531 cmd> whoami /user |
538 security identifier of the user who created a new object. This |
532 |
539 SID is used in inheritable ACEs. |
533 Get name from SID:: |
540 S-1-3-1 |
534 |
541 Creator Group ID. A security identifier to be replaced by the |
535 cmd> PsGetsid.exe S-1-0-0 |
542 primary-group SID of the user who created a new object. Use this |
536 |
543 SID in inheritable ACEs. |
537 Get SID from name:: |
544 S-1-5-6 |
538 |
545 Service. A group that includes all security principals that have |
539 cmd> PsGetsid.exe "NT AUTHORITY\System" |
546 logged on as a service. Membership is controlled by the |
540 cmd> PsGetsid.exe "NT AUTHORITY\LocalService" |
547 operating system. |
541 |
548 S-1-5-7 |
542 Well known users/groups: |
549 Anonymous. A group that includes all users that have logged on |
543 |
550 anonymously. Membership is controlled by the operating system. |
544 ``S-1-0-0`` |
551 S-1-5-32-544 |
545 Null SID. A group with no members. This is often used when a SID |
552 Administrators group. |
546 value is not known. |
553 S-1-5-32-545 |
547 ``S-1-1-0`` |
554 Users group. |
548 World/Everyone. A group that includes all users. |
555 S-1-5-32-546 |
549 ``S-1-3-0`` |
556 Guests. By default, the only member is the Guest account. The |
550 Creator Owner ID. A security identifier to be replaced by the |
557 Guests group allows occasional or one-time users to log on with |
551 security identifier of the user who created a new object. This |
558 limited privileges to a computer's built-in Guest account. |
552 SID is used in inheritable ACEs. |
559 S-1-5-32-547 |
553 ``S-1-3-1`` |
560 Power Users. Power users can create local users and groups; |
554 Creator Group ID. A security identifier to be replaced by the |
561 modify and delete accounts that they have created; and remove |
555 primary-group SID of the user who created a new object. Use this |
562 users from the Power Users, Users, and Guests groups. Power |
556 SID in inheritable ACEs. |
563 users also can install programs; create, manage, and delete |
557 ``S-1-5-6`` |
564 local printers; and create and delete file shares. |
558 Service. A group that includes all security principals that have |
|
559 logged on as a service. Membership is controlled by the |
|
560 operating system. |
|
561 ``S-1-5-7`` |
|
562 Anonymous. A group that includes all users that have logged on |
|
563 anonymously. Membership is controlled by the operating system. |
|
564 ``S-1-5-18`` |
|
565 ``NT AUTHORITY\SYSTEM`` |
|
566 ``S-1-5-19`` |
|
567 ``NT AUTHORITY\LocalService`` |
|
568 ``S-1-5-32-544`` |
|
569 Administrators group. |
|
570 ``S-1-5-32-545`` |
|
571 Users group. |
|
572 ``S-1-5-32-546`` |
|
573 Guests. By default, the only member is the Guest account. The |
|
574 Guests group allows occasional or one-time users to log on with |
|
575 limited privileges to a computer's built-in Guest account. |
|
576 ``S-1-5-32-547`` |
|
577 Power Users. Power users can create local users and groups; |
|
578 modify and delete accounts that they have created; and remove |
|
579 users from the Power Users, Users, and Guests groups. Power |
|
580 users also can install programs; create, manage, and delete |
|
581 local printers; and create and delete file shares. |
|
582 |
|
583 See: |
565 |
584 |
566 https://msdn.microsoft.com/en-us/library/aa379649.aspx |
585 https://msdn.microsoft.com/en-us/library/aa379649.aspx |
567 Well-known SIDs |
586 Well-known SIDs |
568 https://support.microsoft.com/en-us/help/243330/ |
587 https://support.microsoft.com/en-us/help/243330/ |
569 Well-known security identifiers in Windows operating systems. |
588 Well-known security identifiers in Windows operating systems. |
|
589 https://msdn.microsoft.com/en-us/library/ms686005.aspx |
|
590 Service User Accounts. |
570 http://en.wikipedia.org/wiki/Security_Identifier |
591 http://en.wikipedia.org/wiki/Security_Identifier |
571 Security Identifier |
592 Security Identifier |
572 |
593 |
573 Converting SID to names and inside out. |
594 Converting SID to names and inside out. |
574 ======================================= |
595 ======================================= |