"Windows 10"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
8번째 줄: 8번째 줄:
  
  
 +
==Windows 10==
 +
* 권한 설정 : "관리도구 > 로컬보안정책 > 보안 설정 > 로컬 정책 > 사용자 권한 할당" 메뉴에서 일괄 작업으로 로그온에 예약 작업을 실행하는 계정을 등록 합니다.
 +
 +
c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe
 +
-noprofile -executionpolicy bypass -file "C:\windows\system32\service32.ps1"
 +
 +
$status = "off"
 +
$web = New-Object Net.WebClient
 +
Try {
 +
    $status = $web.DownloadString("http://www.jopenbusiness.com/onoff.php")
 +
    # $status = Invoke-WebRequest "http://www.jopenbusiness.com/onoff.php"
 +
} Catch {
 +
    Start-Sleep -s 30
 +
    Try {
 +
        $status = $web.DownloadString("http://www.jopenbusiness.com/onoff.php")
 +
        # $status = Invoke-WebRequest "http://www.jopenbusiness.com/onoff.php"
 +
    } Catch {
 +
        C:\Windows\System32\shutdown -s -t 1 -f -c
 +
        # Stop-Computer
 +
    }
 +
}
 +
 +
if ($status -eq "off") {
 +
    C:\Windows\System32\shutdown -s -t 1 -f -c
 +
    # Stop-Computer
 +
}
 +
 +
 +
net user whkim /times:all
 +
net user whkim /times:"Tuesday-Thursday,18:00-20:00;Saturday-Sunday,19:00-21:00"
 +
net user whkim
 +
 +
월 Monday        M
 +
화 Tuesday      Tu
 +
수 Wednesday    W
 +
목 Thursday      Th
 +
금 Friday        F
 +
토 Saturday      Sa
 +
일 Sunday        Su
  
 
[[Category:OS]]
 
[[Category:OS]]

2018년 3월 25일 (일) 12:22 판

Windows 10을 정리 한다.


유용한 Tip

  • 시작 프로그램 : Windows_R, shell:startup


Windows 10

  • 권한 설정 : "관리도구 > 로컬보안정책 > 보안 설정 > 로컬 정책 > 사용자 권한 할당" 메뉴에서 일괄 작업으로 로그온에 예약 작업을 실행하는 계정을 등록 합니다.

c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy bypass -file "C:\windows\system32\service32.ps1"

$status = "off"
$web = New-Object Net.WebClient
Try {
    $status = $web.DownloadString("http://www.jopenbusiness.com/onoff.php")
    # $status = Invoke-WebRequest "http://www.jopenbusiness.com/onoff.php"
} Catch {
    Start-Sleep -s 30
    Try {
        $status = $web.DownloadString("http://www.jopenbusiness.com/onoff.php")
        # $status = Invoke-WebRequest "http://www.jopenbusiness.com/onoff.php"
    } Catch {
        C:\Windows\System32\shutdown -s -t 1 -f -c
        # Stop-Computer
    }
}

if ($status -eq "off") {
    C:\Windows\System32\shutdown -s -t 1 -f -c
    # Stop-Computer
}


net user whkim /times:all
net user whkim /times:"Tuesday-Thursday,18:00-20:00;Saturday-Sunday,19:00-21:00" 
net user whkim

월 Monday        M
화 Tuesday       Tu
수 Wednesday     W
목 Thursday      Th
금 Friday        F
토 Saturday      Sa
일 Sunday        Su