Hey Fellow PW users,
I've created a script which allows the system to change its name to %computername%-Current logged on username, which makes life a little easier when trying to remote to their computers on the remote control tool/Webapp.
To get started, create your script in the script editor, in my example,
Name: Update Computer Name with Logged on Username
Windows/Powershell Code:
$pwqusers = quser | Select-Object -skip 1
$pwquserfmt = $pwqusers.substring(1,22).Trim() -join ","
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$env:computername-$pwquserfmt"
Click Save.
Next we create at new task,
Name: Update Computer Name with Logged on Username
Current Scope -> Windows Workstations
Enable Scheduling -> (I've set it to run once a day) Every weekday (Monday to Friday), starting on 12 August 2018 at 09:00 (Australia/Brisbane)
Scripts tab, Select/add your new script you just created and once that's done click save.
You can now run the task on demand as well which will update all of the PC's in your windows workstations scope to Computer Name-Logged on usernames
This works for RDSH hosts as well however it could get a bit of out hand if you have 5-10+ users logged in so I probably wouldn't recommend it to be used on servers.
I Hope this helps you somehow, these scripts/suggestions come with no warranty and I bear no responsibility if this breaks anything, use at your own risk etc..etc..
Cheers,
Quenten