Sign in to follow this  
Followers 0
White_Rabbit

Prevent "net use" and "net share" while exams?

17 posts in this topic

Hi,

we have a PC-Pool with 34 Win2k-Clients. During tests or exams no computer should be able to make a connection (with net use) to any other computer. My idea was to send the command "psexec -d \\<workstation> "net share * /delete" or the command i.e. "IF EXIST P: NET USE P: /DELETE" to each PC -lets say- every minute...

The question is: How to do that with AutoIt? There must some kind of Timer function. Can anyone help?

Thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

we have a PC-Pool with 34 Win2k-Clients. During tests or exams no computer should be able to make a connection (with net use) to any other computer. My idea was to send the command "psexec -d \\<workstation> "net share * /delete" or the command i.e. "IF EXIST P: NET USE P: /DELETE" to each PC -lets say- every minute...

The question is: How to do that with AutoIt? There must some kind of Timer function. Can anyone help?

Thanks.

Why not simply disconnect them from Internet?

Edit: Actually, there are "Sleep", "Run", "TimerInit" and "TimerDiff" commands, try them.

Edited by i542

I can do signature me.

Share this post


Link to post
Share on other sites

Disconnecting them from the Internet would not prevent to use "net.exe" as they are still connected to each other. But I will search for these commands...

Share this post


Link to post
Share on other sites

Do you need connectivity to the PC's or do these PC's need any connectivity to anything else during these tests/exams ?

:)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

... no computer should be able to make a connection (with net use) to any other computer...

You could do

ipconfig /release
on each computer every few seconds. That would be the same as powering down the switch or hub though. Edited by Manadar

Share this post


Link to post
Share on other sites

I need something like:

MsgBox/InputBox --> "How long does the test take?"

and then a countdown: Every minute send this command to the network.

Should be easy to realise...

Share this post


Link to post
Share on other sites

The reason for asking is that if not connectivity is needed at all during Exams, you could use PSEXEC to upload an AutoIt3 script to all PC's and run it and that script would keep running for the time provided disabling all network connectivity.

At the end of the period it could restore the network settings and stop running.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Hmm -- normally they dont need any connectivity but I cannot grant that for future exams. So it would be better simply to prevent all kind of "net.exe" Use for all Users

Share this post


Link to post
Share on other sites

I would write a script to replace the utils in question. Make the script pop up a message that only the instructor will be able to clear. This pop up can display what command was attempted basically letting the instructor know the user was attempting something that is not allowed.

Are the commands possibly being used to cheat? If so, they just failed the exam due to (attempted) cheating.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

Disable net send by stopping the Messenger service

Disable net use by disable File and Printer Sharing service + Disable Server service

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Hmm -- normally they dont need any connectivity but I cannot grant that for future exams. So it would be better simply to prevent all kind of "net.exe" Use for all Users

But just disabling the use of net.exe won't be enough since they could still go into Explorer and type \\pcname\sharename ... right ?

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Ok, but as we have a Samba-Server it's no problem to use the entry

"invalid users = @examgroup" for any share that is prohibited...

Share this post


Link to post
Share on other sites

But just disabling the use of net.exe won't be enough since they could still go into Explorer and type \\pcname\sharename ... right ?

Jos

Kill explorer.exe?

:)


I can do signature me.

Share this post


Link to post
Share on other sites

Disable net send by stopping the Messenger service

Disable net use by disable File and Printer Sharing service + Disable Server service

This seems to be the best way to do it ... do you know the names of these Services?

(I guess you don't have any german version? :)^_^ )

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

Hmm -- normally they dont need any connectivity but I cannot grant that for future exams. So it would be better simply to prevent all kind of "net.exe" Use for all Users

I don't know in what kind of network you are, but if it is a domain, you can also ask the one that has access to the DC.

Edit: .. and I am not talking about Direct Current here.. You figure it out.. :)

Edited by Manadar

Share this post


Link to post
Share on other sites

Why not go and unlock the facilities cupboard and power down the switch/hub for the room in question for the duration of the exam? Simple hardware solution...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0