I have a limited access group (active directory user group) that
should only be able to access our terminal server from the office
(RDP) and no where else.
So I need to check the Clients local IP address against the Office's
static local IP address if the two don't match halt the user and log
him off
Here's the script
If (usersIPaddy <> "1.1.1.1") Then '''''how do I get usersIPaddy is
in question.
MsgBox("You do not have permission to access the server from this
location.")
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run("shutdown /l")
End If
>"recuerdeme" wrote in message
>news:1a4f39fd-171d-4f9c...@f9g2000vbz.googlegroups.com...
You would be better off finding a way to prevent these people from logging
on via RDP from outside the subnet than to let them logon and think you can
implement this security policy by script.
First thing: are your users able to cancel a running logon script? Ours are,
but they generally don't, mainly because our logon script does not try to
restrict their access in any way.
Second thing: if your users simply do not bother to click OK on the message
box button, will they not already have access to everything?
/Al
I think you're right, If they don't click ok then the code after the
msgbox doesn't execute... hmm
I haven't checked into restricting by subnet. I'm not sure how of
course ...
"recuerdeme" wrote in message
news:abd2d0c6-25f6-470e...@18g2000prd.googlegroups.com...
I'm no expert in the area either, but I think it might be require the use of
group policy.
/Al