Jump to content

brucesmith

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by brucesmith

  1. Hi I'm trying to create a scope, so I can setup a task but i get scope not found when I create it I get "Scope not found" Google was not my friend for this one. I know its not found as I'm trying to create it. what's going on?

  2. So I wanted the full display name so I have updated your script.

    $dom = $env:userdomain
    $getusr = quser | Select-Object -skip 1
    $usr = $getusr.substring(1,22).Trim() -join ","
    $display = ([adsi]"WinNT://$dom/$usr,user").fullname
    Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$env:computername - $display"

     

×
×
  • Create New...