Gaming, IT, Multimedia & Music Please use this forum to discuss Gaming, IT, Multimedia & Music. |
|
18th December 2013, 15:15
|
#1
|
Established Member
Join Date: Mar 2011
Location: Birmingham
Posts: 2,148
Car(s): Rover BRM, Rover 800 Coupe, Mk6 golf.
|
AD & Exchange Help
Guys
I know there's a few of us 'IT Guys' on here, I'm normally fairly good with stuff like this, as its my job... But this ones got me going round in circles. Even though it seems really simple, I just cant get it to work.
Basically, We use AD 2008 and Exchange 2010.
(I know, stone age!)
But someone (NOT ME!!) deleted a user from AD by accident, Theres no way that I can find of recovering the user as we dont recycle the accounts, They just vanish.
The issue i've got is they never removed the Exchange mailbox first, So the GUID for the account is no longer there meaning the mailbox cant be deleted, used or anything.
Is there any way I can delete the mailbox without a GUID, through powershell without breaking my environment? Could really do with getting the user back up and running and experts exchange isn't helping me out this time.
__________________
|
|
|
18th December 2013, 15:48
|
#2
|
Saxperience Hardcore!
Join Date: Sep 2007
Location: Jail - Whitby
Posts: 15,034
Car(s): 520bhp Honda Jazz
|
Have you tried turning it off, and back on?
__________________
Life's a bitch, then you die.
|
|
|
The Following User Says Thank You to smiith For This Useful Post:
|
|
18th December 2013, 16:14
|
#3
|
Established Member
Join Date: Mar 2011
Location: Birmingham
Posts: 2,148
Car(s): Rover BRM, Rover 800 Coupe, Mk6 golf.
|
Thats not an option unfortunately else i'd have tried that ages ago lol.
Really dont want to reboot an exchange server unless I absolutely have to!
__________________
|
|
|
18th December 2013, 16:23
|
#4
|
Saxperience Post Whore
Join Date: Aug 2010
Location: Little Mill, South Wales
Posts: 7,547
Car(s): Mondeo ST TDCI
Saxo VTS
|
http://community.spiceworks.com/topi...y-been-deleted
This may help, it is not first hand experience mind.
__________________
Quote:
Originally Posted by Giraffe
I'm happy being a north easternly smoggie bender.
|
|
|
|
18th December 2013, 16:28
|
#5
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
There's a few ways:
Have you got tomb-stoning enabled in AD? If so, just mark the user object for an authoritative restore.
What backup software do you use? you can recover AD if it's a small environment.
You can disable the mailbox, this should purge it during the next maintenance run (I've only seen this work in 2003, never 2007/2010 but it is supposed to).
or use the powershell:
$Temp = Get-Mailbox | Where {$_.DisplayName -eq 'John Rodman'}
Remove-Mailbox -Database Server01\Database01 -StoreMailboxIdentity $Temp.MailboxGuid
(syntax copied from microsoft article on removing mailboxes but the code looks like it will work)
You could do it manually and do get-mailbox | Where {$_.DisplayName -eq 'fuckwit'} | fl that should show you the GUID you need.
Nice easy powershell commands, but don't go running them without knowing what you're doing, you could delete a mailbox you didn't mean to then have to go through the pain of recovering a mailbox.
you're also far from the stoneage, I look after a few sites that still use NT4. There are quite a few government agencies that use NT4 and exchange 2003 still.
Last edited by chompy; 18th December 2013 at 16:33.
Reason: disclaimer
|
|
|
18th December 2013, 16:45
|
#6
|
Saxperience Post Whore
Join Date: Aug 2010
Location: Little Mill, South Wales
Posts: 7,547
Car(s): Mondeo ST TDCI
Saxo VTS
|
I'm currently upgrading from SBS2003 and Exchange 2003 at my place of work. That's stone age!
__________________
Quote:
Originally Posted by Giraffe
I'm happy being a north easternly smoggie bender.
|
|
|
|
18th December 2013, 16:46
|
#7
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
I've done that a few times in the past month to SBS 2011 whilst we can still buy the licenses!
|
|
|
18th December 2013, 16:49
|
#8
|
Saxperience Post Whore
Join Date: Aug 2010
Location: Little Mill, South Wales
Posts: 7,547
Car(s): Mondeo ST TDCI
Saxo VTS
|
Hopefully licences will still be available in the new year. Most suppliers will still sell off their stock.
__________________
Quote:
Originally Posted by Giraffe
I'm happy being a north easternly smoggie bender.
|
|
|
|
18th December 2013, 16:51
|
#9
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
Yeah, C2000 and Dell still list them as available but past March/April I can't see them being available anywhere retail. Might still get OEM though.
|
|
|
18th December 2013, 17:20
|
#10
|
Established Member
Join Date: Mar 2011
Location: Birmingham
Posts: 2,148
Car(s): Rover BRM, Rover 800 Coupe, Mk6 golf.
|
Quote:
Originally Posted by chompy
There's a few ways:
Have you got tomb-stoning enabled in AD? If so, just mark the user object for an authoritative restore.
What backup software do you use? you can recover AD if it's a small environment.
You can disable the mailbox, this should purge it during the next maintenance run (I've only seen this work in 2003, never 2007/2010 but it is supposed to).
or use the powershell:
$Temp = Get-Mailbox | Where {$_.DisplayName -eq 'John Rodman'}
Remove-Mailbox -Database Server01\Database01 -StoreMailboxIdentity $Temp.MailboxGuid
(syntax copied from microsoft article on removing mailboxes but the code looks like it will work)
You could do it manually and do get-mailbox | Where {$_.DisplayName -eq 'fuckwit'} | fl that should show you the GUID you need.
Nice easy powershell commands, but don't go running them without knowing what you're doing, you could delete a mailbox you didn't mean to then have to go through the pain of recovering a mailbox.
you're also far from the stoneage, I look after a few sites that still use NT4. There are quite a few government agencies that use NT4 and exchange 2003 still.
|
Thanks Chompy - Just giving it all a go now so I'll let you know how I get on.
We dont run Tomb-Stones though, That would be a clever thing to do... our company doesnt do clever
Backups... We're currently use DPM but have recently upgraded (2 weeks ago) and havent got round to setting up the DC yet. We back the profiles up, not not the active directory side of things... Another fail. We're waiting for the big man to get his arse into gear and sort out the 3par stuff we've lying around, as well as the SANs for more robust and detailed backups.
Anyway, To work - I'll let you know
__________________
|
|
|
18th December 2013, 17:25
|
#11
|
Established Member
Join Date: Mar 2011
Location: Birmingham
Posts: 2,148
Car(s): Rover BRM, Rover 800 Coupe, Mk6 golf.
|
Now why wouldnt any of the forums tell me what you've just told me?
I've spend too long racking my brain over this and you just waltz along and sort it out!
Cheers bud!
__________________
|
|
|
18th December 2013, 17:53
|
#12
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
Haha, there's a reason I'm a senior network engineer at 23 glad it worked!
|
|
|
18th December 2013, 17:59
|
#13
|
Saxperience Post Whore
Join Date: Apr 2011
Posts: 9,100
Car(s): Amazon green VTR 16v, Inferno RS clio 182
|
AD can be a arse some of the time in the way it does things. Don't get me started on the way it replicates too!
Sent from my iPhone using Tapatalk
|
|
|
18th December 2013, 18:03
|
#14
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
Nothing wrong with the replication if you set it up right
|
|
|
18th December 2013, 18:05
|
#15
|
Saxperience Post Whore
Join Date: Apr 2011
Posts: 9,100
Car(s): Amazon green VTR 16v, Inferno RS clio 182
|
It doesn't tell you if it stops working at least on 2003, that's been a nightmare for me in the past. I keep my eye on it regularly now though
Sent from my iPhone using Tapatalk
|
|
|
18th December 2013, 18:07
|
#16
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
If you setup verbose logging and monitor the event logs using something like gfi/nable then you can pick it up quite easily. But when you don't have they tools to use then yeah, I see your point.
|
|
|
18th December 2013, 19:32
|
#17
|
Established Member
Join Date: Mar 2011
Location: Birmingham
Posts: 2,148
Car(s): Rover BRM, Rover 800 Coupe, Mk6 golf.
|
Quote:
Originally Posted by chompy
Haha, there's a reason I'm a senior network engineer at 23 glad it worked!
|
That's impressive... How did you get there if you don't mind me asking? I assume uni?
I'm 22 and been doing this for just under 3 years now, I'm really struggling with the company I'm working with though, they're constantly trying to push for new technologies And loading more work onto us but keep putting off any courses (and pay rises!)
I've been trying to build a decent case for some worthwhile courses, anything you'd recommend?
__________________
|
|
|
18th December 2013, 19:56
|
#18
|
Established Member
Join Date: Jan 2008
Location: Scotland
Posts: 1,764
Car(s): Because racecar
|
Quote:
Originally Posted by jasonmayall
That's impressive... How did you get there if you don't mind me asking? I assume uni?
I'm 22 and been doing this for just under 3 years now, I'm really struggling with the company I'm working with though, they're constantly trying to push for new technologies And loading more work onto us but keep putting off any courses (and pay rises!)
I've been trying to build a decent case for some worthwhile courses, anything you'd recommend?
|
Nope, no uni! I spent a few years working as a server/desktop tech at an sme contracts company and started sticking my neck out doing stuff that was not expected and fixing things no one else could figure out, got my oswp & mcitp then got head hunted for my current job. (I've been doing iT work since I was 13 but the last 3 years have been the highlights)
Now I do everything from vmware installs to sbs migrations and have a team of 4 guys, soon To be 5. Also just finished the vmware vcp course and should be sitting my vcp dv 5 early next year.
That is thr main reason I moved away from enterprise work into the sme market. The politics behind getting anything done is fucking stupid and the pay is pathetic. I worked in a place that was a 100mile a day commute and payed 14k. With a newborn and wedding to pay for at the time I got told to bolt when I asked for a pay rise.
Depends on what you want to do, if you want to do domain management then the mcitp is a must. If you want to go into virtualization then go for the vcp. If you want to do networking then the ccna. If you want to do security (that's what I want to do) then you can go mainstream like the ceh/cssip/comptia security+ but I'd recommend the offensive security qualifications. I did the oswp and would love to do the oscp but I'd rather build my car when the kids are young and develop my career further in a few years.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 15:46.
|