By David Wiseman (Administrator)Created 29 Jan 2006
My Rating:
Vote
Rating:
Not Rated
Views:2075
Downloads:26

Read Remote Control Settings

Language:  VBScript

Compatibility

Windows XP Unknown Windows 2003 Yes
Windows 2000 Unknown Windows NT Unknown
Vista Unknown Windows 2008 Unknown
Description

Code

Line Numbers: On  Off      Plain Text
Dim objUser
'<<<< Bind to the user object using the distinguished name >>>>
set objUser = getobject("LDAP://cn=test.3,cn=users,dc=wisesoft,dc=co,dc=uk")

'<<<< Read >>>>
 
select case objuser.EnableRemoteControl
	case 0
		wscript.echo "Enable remote control: Disabled"
	case 1
		wscript.echo "Enable remote control: Enabled" & vbcrlf & _
		     	"Require user's permission: Enabled" & vbcrlf & _
			"Level of control: Interact with the session"
	case 2
		wscript.echo "Enable remote control: Enabled" & vbcrlf & _
		     	"Require user's permission: Disabled" & vbcrlf & _
			"Level of control: Interact with the session"
	case 3
		wscript.echo "Enable remote control: Enabled" & vbcrlf & _
		     	"Require user's permission: Enabled" & vbcrlf & _
			"Level of control: View the user's session"
	case 4
		wscript.echo "Enable remote control: Enabled" & vbcrlf & _
		     	"Require user's permission: Disabled" & vbcrlf & _
			"Level of control: View the user's session"

end select

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
laloine
Posted On: 9/23/2019 9:13:13 AM

The specific events I have ever seen and making the great objectives and involves the essential topics. Thanks to dissertation writing help uk site for great essay methods and college dissertation thoughts as well,thanks.

christinejohn
Posted On: 10/8/2019 8:05:36 AM [Edited 10/8/2019 8:05:53 AM]

The exact events I have ever realized and creation the excellent purposes and involves the essential subjects. I also income it for my web online dissertation service that always give brilliant information.

amyabbott090
Posted On: 11/15/2019 5:36:17 AM

This task has been a triumph because of its kin. Not simply those coming to encounter the fascination and in this way improve the nearby economy, yet similarly as significant are those living and working in the territory. Without the network support, the uncommon kites may never have been acknowledged nor allowed to breed and spread. Online Dissertation Writing Service

MichealRobert
Posted On: 11/16/2019 10:25:14 AM

I recently have gotten help by getting critical essay writing service in one of my projects. And by reading above the query I think it might be helpful for you to get help from the researchers I have gotten help. I am sure they will help you out too.

jabirsheikh
Posted On: 12/3/2019 10:32:49 AM

Best resume online services all available now at cheap prices, don't waste your time and visit the website now and avail the offer.