dinger1986
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
windowsclientID.ps1
|
|
@ -5,7 +5,6 @@ If (!("C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\R |
|
|
|
$username = ((Get-WMIObject -ClassName Win32_ComputerSystem).Username).Split('\')[1] |
|
|
|
$rustid=(Get-content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk.toml | Where-Object { $_.Contains("id") }) |
|
|
|
$rustid = $rustid.Split("'")[1] |
|
|
|
|
|
|
|
$rustpword = (Get-content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk.toml | Where-Object { $_.Contains("password") }) |
|
|
|
$rustpword = $rustpword.Split("'")[1] |
|
|
|
Write-output "Config file found in user folder" |
|
|
@ -15,7 +14,6 @@ Write-output "$rustpword" |
|
|
|
else { |
|
|
|
$rustid=(Get-content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml | Where-Object { $_.Contains("id") }) |
|
|
|
$rustid = $rustid.Split("'")[1] |
|
|
|
|
|
|
|
$rustpword = (Get-content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml | Where-Object { $_.Contains("password") }) |
|
|
|
$rustpword = $rustpword.Split("'")[1] |
|
|
|
Write-output "Config file found in windows service folder" |
|
|
|