LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable/restore network(LAN) I/O port ?

Hello,
            Anybody know how to reach my subject query ? thanks in advance.
0 Kudos
Message 1 of 12
(5,436 Views)
do you mean, using LabVIEW??
0 Kudos
Message 2 of 12
(5,427 Views)
Check out this thread on DEVCON it seems to do what you request.

Regards
0 Kudos
Message 3 of 12
(5,420 Views)
Yes, Use labVIEW to do that, I don't know which API that I should call.
 
what is DEVCON ? Conseils ?
0 Kudos
Message 4 of 12
(5,406 Views)
Sorry the link got lost / dropped to the thread.....
Lets try again.

The link below details how hardware can be switched on or off, assumes Windows
http://forums.ni.com/ni/board/message?board.id=170&message.id=161096&requireLogin=False
0 Kudos
Message 5 of 12
(5,377 Views)
Yes, we can use DEVCON to control whole of PC's devices, and it is easy, but, you must have administrator's permission account to do this handles. if you are just a simple user by the PC, control function items would be fail. example, disable or enable device, install, remove.....this type of use just can view some information from PC only using DEVCON.
________________________________________________________


Try to make everything Automatic
0 Kudos
Message 6 of 12
(5,345 Views)


@Yukee wrote:
Yes, we can use DEVCON to control whole of PC's devices, and it is easy, but, you must have administrator's permission account to do this handles. if you are just a simple user by the PC, control function items would be fail. example, disable or enable device, install, remove.....this type of use just can view some information from PC only using DEVCON.

That has nothing to do with DEVCON. It is an integrated security feature of the OS itself. You can't enable or disable drivers without having the proper authorization, which by default is Administrator. Maybe a Power User may be allowed to do that too, but I'm not sure. If you want to change what type of user can do what, you will have to get the Resource Kit of your OS and using the Policy Editor change the according settings for that specific computer or the specific Domain account used to log in on a computer. It may be however that disabling a driver is not something you can control as policy.

Rolf Kalbermatter
Rolf Kalbermatter
DEMO, TU Delft
My Blog
Message 7 of 12
(5,340 Views)
I guess you cound try the RUNAS feature and use this with a higher permissions than the current user account, this would enable different users to use the same code.

The following says you can start and stop system services so ..... maybee it will work.

Power Users 

The Power Users group primarily provides backward compatibility for running non-certified applications. The default permissions that are allotted to this group allow this group's members to modify computerwide settings. If non-certified applications must be supported, then end users will need to be part of the Power Users group.

Members of the Power Users group have more permissions than members of the Users group and fewer than members of the Administrators group. Power Users can perform any operating system task except tasks reserved for the Administrators group. The default Windows 2000 and Windows XP Professional security settings for Power Users are very similar to the default security settings for Users in Windows NT 4.0. Any program that a user can run in Windows NT 4.0, a Power User can run in Windows 2000 or Windows XP Professional.

Power Users can:

Run legacy applications, in addition to Windows 2000 or Windows XP Professional certified applications.

Install programs that do not modify operating system files or install system services.

Customize systemwide resources including printers, date, time, power options, and other Control Panel resources.

Create and manage local user accounts and groups.

Stop and start system services which are not started by default.

Power Users do not have permission to add themselves to the Administrators group. Power Users do not have access to the data of other users on an NTFS volume, unless those users grant them permission.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_security_default_settings.mspx?mfr=true
0 Kudos
Message 8 of 12
(5,328 Views)

Thanks all, but I can't disable keyboard device. DEVCON prompts me disable failed, and as enable keyboard device, it told me, enable OK. why ? can tell, I use DEVCON status to get the Device ID, so the ID should be correct.

and I found DEVCON disable my floppy disk device is OK.

0 Kudos
Message 9 of 12
(5,314 Views)
In the link provided above... did you get far enough down the page to the details of how to handle names containing special characters ?
This is probably the problem.
0 Kudos
Message 10 of 12
(5,305 Views)