Tom's Hardware > Forum > Old Man/Woman's Club > Polls > How to disable local logon after 90 days?

How to disable local logon after 90 days?

Forum Old Man/Woman's Club : Polls - How to disable local logon after 90 days?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Page:    Previous 1 2 3 Next Bottom Search this thread
Word :    Username :           
 

I am trying to stop laptop users from NEVER logging on the the domain. I want to create a script that will count the number of days that laptop has been off the network for 90 days and disable local logins until the machine is attached to the domain. I'd also like to have a warning message pop up after 75 days of being off the network, letting the user know that the machine will cease to function in X number of days (insert countdown here), unless they attach it to the domain. Mainly the purpose is so the users can get timely updates of SW and virus info. Please help!

Sponsored Links
Register or log in to remove.

and what kind of answer to you expect to get in the POLLS section??

Reply to CHEEZball
- 0 +

Much better results if posted in the Other section...

Reply to RichPLS
- 0 +

You definitely need help, but not the kind that can be provided over the net.

Reply to BigMac

May I suggest Requesting a detailed answer at Experts Exchange. They are boring, and suck for most things, but they would have more specific knowledge on such things as you need help on.

Reply to CompTIA_Rep
- 0 +

Do you think I need help?

*unzipping sound*

Reply to BigMac

Yes you need help. You are not the forum pervert.... yet.

Reply to CompTIA_Rep
- 0 +

that is simply as to keep it on the DL, to protect a blokes actual activities! 8O

Reply to RichPLS
- 0 +

We'll see about that then, please bend over. :twisted:

Shoot you're right, Wingy would never have said "please" :x

Reply to BigMac

I'm Irish. I therefore lack even the most rudimentary level of manners or decorum.

Reply to WingDing

If people stopped brewing alcohol, they would have effectively wiped out an entire race of people (irish)... only a few handful would remain, surviving on fermented fruit.

Reply to CompTIA_Rep

Sales of furniture polish might also rise.

Reply to WingDing

Ireland was a thiving mega-city, on which Tokyo III was based.

Then they got on the bottle, and their entire civilization collapsed, and the Bristh invaded 100 years later, in the 1800's.

:lol:

Reply to TabrisDarkPeace

Blaming the alcohol is too easy. We're a bunch of losers, even when we're sober.

Reply to WingDing

Wait, there's such a thing as a dry mick?

Reply to dasickninja
- 0 +

wtf is this in the polls section?

Reply to mrface

If you have a problem with this being in the polls section, i suggest you donate $2000 to THG and become a moderator, at which point you can move it to w/e section you want. May I suggest Community->Classifieds.

Reply to CompTIA_Rep
- 0 +

i dont think im the man for that position; i was just pointing out a simple little thing like there is no focking poll in this thread..

:P

Reply to mrface

Since when does a poll require a poll? How simplistic and matriarchal you are.

Please think out side of the box, and realize this is THG. When was the last time you saw a thread from the front page in the right location?.

Reply to CompTIA_Rep
- 0 +

are you still focking talking?

youre an idiot.

Reply to mrface

Heh.... Well at 18,000 posts you are entitled to your opinion. ....

but you dont got to be mean all the time.

Reply to CompTIA_Rep

The polls section being an extension of the other, is entitled to all th attitudes, harshness and general downright evilness displayed in the former.

Reply to dasickninja

** throws celebratory poop **

Reply to audiovoodoo
- 0 +

** throws celebratory thread-digging monkey **

Reply to VBDude
- 0 +

Hold on, was that lower case intentional? Perhaps to seperate it for the rest? Was that a challenge ("TOP THAT" )? Or did you forget to not use shift while cAPS lOCK was on?

Reply to VBDude

I ment, s tOP THAT.


Hope that is mORE CleaR

Reply to CompTIA_Rep

Strange.. it still reads "I'm a tw@t" despite your clarification..

Reply to audiovoodoo

This should work, or be close enough to give you an idea:
[code:1:ca5f403065]
#!/bin/bash

$username = [i]laptop_user's_username[/i]

$lastlogin = last | grep $username

current_time = time()

if( lastlogin < time()-90:00:00 ) {
/sbin/nologin $username
}
[/code:1:ca5f403065][/i]

Reply to MU_Engineer
- 0 +

Your PA membrship fees are fully up-to-date, I see.

Reply to mugz
- 0 +

Early, actually. He's one of our best members. :wink:

Reply to VBDude
- 0 +

You say that about everyone...
except Llama

Reply to lvdax
- 0 +

Jealous? :P

BTW, link.

Reply to VBDude
- 0 +

nice... so we'll see him at the next meeting???

Reply to lvdax
- 0 +

Cute avatar. I feel strangely hungry now...

Reply to mugz
- 0 +

Hey have you guys seen this??
http://www.tomswiki.com/

Reply to lvdax
- 0 +

Thanks. So do I...

@lvdax: Yes. Never looked around, but I've seen it.

Reply to VBDude

I notice the lack of an 'Other' Section :evil:

Reply to audiovoodoo
- 0 +

Nice avatar! 10 Points, to use wherever you will.

Reply to mugz

** stuffs points in wallet and heads off to the bar **

Reply to audiovoodoo
- 0 +

Quote :

I notice the lack of an 'Other' Section


Meh. It's not like we need another place to waste server resources... :P

Reply to VBDude
- 0 +

sure we do... they're not our servers to worry about.. :wink:

Reply to lvdax
- 0 +

Speaking as someone who used to deal with networking and servers...

*takes a Barnett 220lb crossbow down off the rack*

...I find your lack of con- *grunt* -cern...

*cocks crossbow*

...for server resources very...

*selects an exquisitely made 24" crossbow bolt*

...disturbing. Just a sec...

*says blessing over crossbow bolt*

...now then. I'm sorry, but the network techie in...

*slots blessed bolt into crossbow*


...me is screaming for vengeance. Let this be a lesson to you, young lvdax.

*fires crossbow at lvdax*

*watches amusedly as multiple shining white lances of light tear lvdax to shreds*

Reply to mugz

How vivid! I felt as if I were there!

Reply to tool_462
- 0 +

*Was there*
Ay, ay, a scratch, a scratch; marry, 'tis enough.
Where is my page? Go, villain, fetch a surgeon...

No, 'tis not so deep as a well, nor so wide as a
church-door; but 'tis enough,'twill serve: ask for
me to-morrow, and you shall find me a grave man. :(

btw i maintain 8 servers currently

Reply to lvdax
- 0 +

I thought all for the best. :oops:

Reply to VBDude
- 0 +

**Hopes Mugz will find mercy and heal me**

Reply to lvdax
- 0 +

Mercy? Mugz? HA!

Oh, sorry...

So will that be quick and painless or slow and horrible?

Reply to VBDude
Previous
1 2 3
Tom's Hardware > Forum > Old Man/Woman's Club > Polls > How to disable local logon after 90 days?
Go to:

There are 1103 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them