I am trying to remove all of the older computers that AD stores that have not been active for 60 days. I just started working with AD recently and noticed that the AD has not had a proper cleanup in a long time. I only have about 120 computers/servers but ad has over 300 registered. Does anyone have any advice or solutions for this?   Thanks in advanced!
The Windows Domain I manage has hundreds of computer names which I don't recognise and I'd like to remove old ones which aren't in use before trying to track down the misnamed ones.  Is there someway to see when the last time a machine logged onto the network? Either via dhcpd or a user login event or something else.
Proper fstab entry to mount a samba share on boot? I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04     I can get the drive to mount manually by using:  sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o username=jon,password=password  So I tried putting this in fstab:  //192.168.2.2/raid_drive /mnt/homeserver cifs username=jon,password=password,iocharset=utf8,mode=0777,dir_mode=07‌​77 0 0  Which gives me this error in syslog:  kernel: [ 2217.925354] CIFS: Unknown mount option mode kernel: [ 2217.936345] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3  This  says to use smbfs although I believe smbfs is deprecated?   What is a common fstab configuration for a samba share in Ubuntu 12.04?   EDIT:  Using the accepted answer below I was initially getting this error message (from dmesg):  [   45.520883] CIFS VFS: Error connecting to socket. Aborting operation [   45.520990] CIFS VFS: cifs_mount failed w/return code = -115   although it turns out this was due to network connectivity issues, and not related to improper fstab entry. Why did Dumbledore drink the potion in the attempt to get a Horcrux? When Albus Dumbledore  finally reaches the island with Harry Potter and finds out that you can't get near the potion, he made a cup and drank it. Why couldn't he just have poured the potion on the "floor"? Why couldn't he have made a big cup to hold almost everything inside the basin? Cryptoclass Throws Error. Invalid private key. Must be 16 bytes. Sending 16 characters long key key__c :- abcdefghijklmnop  public static String decrypt(String data) {     EncryptionSettings__c settings = EncryptionSettings__c.getOrgDefaults();     if (settings.key__c == null) {         throw new FacebookException('Cannot decrypt without a key!');     }     Blob key = EncodingUtil.base64Decode(settings.key__c);     return Crypto.decryptWithManagedIV('AES128', key, EncodingUtil.base64Decode(data)).toString(); }  public static String encrypt(String data) {         EncryptionSettings__c settings = EncryptionSettings__c.getOrgDefaults();     Blob key = null;     if (settings.key__c == null) {         checkUserCanCustomizeApplication();         key = Crypto.generateAesKey(128);         settings.key__c = EncodingUtil.base64Encode(key);         insert settings;     } else {         key = EncodingUtil.base64Decode(settings.key__c);     }     return EncodingUtil.base64Encode(Crypto.encryptWithManagedIV('AES128', key, Blob.valueOf(data))); } Several ways to prove that $\sum\limits^\infty_{n=1}\left(1-\frac1{\sqrt{n}}\right)^n$ converges How do I disable negative scaling? By default blender allows you to scale past 0 - how do I prevent this?  i.e. it's common in other 3D modelling software to resize a set of vertices against an axis to align them - however this isn't possible when negative scaling is enabled. Is there a website with historical temperatures and weather data? I am interested in hiking this fall in France and camping along the way. In order to figure what gear I need to pack to camp (particularly for the sleeping bag), I would like to know what temperatures to expect.  I am interested in historical temperatures to figure the usual temperature and I might look at them for other seasons. If that matters, I am thinking about hiking in the Pays Basque (South West of France), the mountainous part.  Where (ideally online and for free) can I find such data? Are there resources that cover Europe, or even the whole world? Prove that there exists at least one $x_0\in\mathbb{R}$, such that $f(x_0)+f''(x_0)=0$ Let $f:\mathbb{R}\to\mathbb{R}$ be a function, two times   differentiable with $\left|f(x)\right|\leq1,\forall x\in\mathbb{R}$   and $f^2(0)+\left(f'(0)\right)^2=4$. Prove that there exists at least   one $x_0\in\mathbb{R}$, such that $f(x_0)+f''(x_0)=0$.   I have tried the usual Rolle method by $e^x$, but didn't go far... Any help available? How to define a bijection between $(0,1)$ and $(0,1]$?   Or any other open and closed intervals?   If the intervals are both open like $(-1,2)\text{ and }(-5,4)$ I do a cheap trick (don't know if that's how you're supposed to do it): I make a function $f : (-1, 2)\rightarrow (-5, 4)$ of the form $f(x)=mx+b$ by \begin{align*} -5 = f(-1) &amp;= m(-1)+b \\ 4 = f(2) &amp;= m(2) + b \end{align*} Solving for $m$ and $b$ I find $m=3\text{ and }b=-2$ so then $f(x)=3x-2.$  Then I show that $f$ is a bijection by showing that it is injective and surjective. Tried to add a comment to a post today, which ended up looking rather weird. What I had typed was:  On windows I believe you need to use `\` instead of `/`   As you can see in the first comment to this question, I don't exactly end up with what I thought I would... What's going on here?  Tried various combinations of double \\ and double `` (which seems to be impossible to have in an inline code thing...?), but couldn't get a good result. Ended up putting a space after the slash, which at least made it readable. Problem then was that the space between the inline code and the word "instead" seems to disappear O.o When I double-click to select text in GNOME Terminal, the selection stops at spaces but continues over hyphens:      Some of my filenames contain uncommon characters such as the  and are not selectable by double-clicking:    Is there a way to make double-click selection continue over these characters as well? For $G$ group and $H$ subgroup of finite index, prove that $N \subset H$ normal subgroup of $G$ of finite index exists My professor sometimes asks me to referee papers for him.  Should I list the corresponding journals in the professionals activity section of my CV? Is there any difference between Present Perfect and Present Perfect Continuous? I have studied "present perfect" and "present perfect continuous" for a week. I know forms, verb and helping verb I should use when I write them.  For me, they have nearly same definition because I can use them interchangeably in Thai language. (My native language)  For example, the sentences        I have learned English language in the past few weeks.    I have been learning English language in the past few weeks.       have no difference in meaning to me. They both mean "I began learning the English language in the past and I am still learning it"  Can I use them interchangeably in English? Or is there any difference between them? For example, when should I use present perfect but not present perfect continuous? I would like to know if it is possible to not get penalised by google for changing the subject of a category entirely. I would like to swap a category that I have built on a webpage, for one with a more relevant (as of now) topic. Changing description, content and title etc... would this destroy my SEO? It has amassed backlinks of great quantity and quality over the course of time and I seriously would not like to have them wasted or passed with internal links as the page itself is invaluable. Assume anchors to my webpage were all &quot;&lt;empty&gt;&quot; for convenience purposes. They are nothing particularly descriptive. Why are year, pound and mile in the singular form in the phrases below?   five-year-old children  20 pound note 10 mile run   Is that because they're acting as adjectives, which are always invariable in English?  Is it incorrect to say...   five-years-old children? 20 pounds note? 10 miles run? Pygame - blitting from x and y cordinates of image I forgot what email I used for my other ploxtic id: how do you find out what my email was?   The account is user:2078229. Recently, there was some news that said that the researchers at NASA have come across some impossible kind of space engine which does not require any fuel. I have read at a few places like ,  and . They all say that this engine seems to violate the laws of physics including conservation of momentum.  The original paper is .  Is the statement that it violates conservation of momentum true? Poll in background for StackExchange™ MultiCollider SuperDropdown™ inbox events and update the titlebar accordingly à la Facebook Automatically resize uploaded images Possible Duplicate:             Could large images of more then 640 pixels wide automatically be resized to reduce loading time and band width use? Not that I have a prehistoric internet connection here, but sometimes pages seem to need unnecessary time to load fully.  I just resized the image  from 179 kb down to 32 kb using a 15% compression rate. I think that is already worth it, although there have been much bigger downsizes in the past.  This feature then propably should/could be combined with , and uploading an image then would result in the following post addition:  [![enter image description here][2]][1]  [1]: http://i.stack.imgur.com/ZSBxw.gif "View &lt;image title&gt; full sized" [2]: http://i.stack.imgur.com/VXmBA.jpg "&lt;Image title&gt;"   Update:  I now understand from  that images áre resized already, but that post authors have to do some changes themselves. Could it then be automated to add the already resized image (that with the l suffix):  [![enter image description here][2]][1]  [1]: http://i.stack.imgur.com/ZSBxw.gif "View &lt;image title&gt; full sized" [2]: http://i.stack.imgur.com/ZSBxwl.jpg "&lt;Image title&gt;"