Friday, February 19, 2010
Install DFS Management Console - when you can't use the mouse
ServerManagerCmd -install RSAT-DFS-Mgmt-Con
Installing DFS replication - when you can't use the mouse
If you want to install DFS replication on web edition or server core. You need to do it from a command prompt:
OCSetup DFSR-Infrastructure-ServerEdition
or:
ServerManagerCmd -install FS-DFS-Replication
OCSetup DFSR-Infrastructure-ServerEdition
or:
ServerManagerCmd -install FS-DFS-Replication
Tuesday, February 9, 2010
Protect "old" OUs from accidental deletion
In Win 2K8 and newer. There is a a check-box you can set to protect an OU from accidental deletion. This is good, but if you don't use ADUC in Win 2K8 (or R2) it will not be set by default. Also if you upgraded or migrated to a Win 2K8 (or R2) it won't be set automagically on "old" objects. So here is two ways of doing it.
for /f "tokens=*" %i in ('dsquery ou -limit 0') do dsacls %i /d everyone:SDDT
or:
Get-ADOrganizationalUnit -filter * |
Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true
(the above should be one line)
Thank you Ulf for posting these two one-liners!
for /f "tokens=*" %i in ('dsquery ou -limit 0') do dsacls %i /d everyone:SDDT
or:
Get-ADOrganizationalUnit -filter * |
Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true
(the above should be one line)
Thank you Ulf for posting these two one-liners!
Friday, January 22, 2010
Defining a new attribute - version 2
My colleague, Fredrik P�lerud, just saw what I blogged and he has another recommendation. Use Active Roles and you don't have to touch the actual Schema. Wanna lear more.... Click here.
Thursday, January 21, 2010
Defining a new attribute
I just stumbled over a pretty good article. It describes how to define a new attribute when you extend the Schema. Take a look at it if you haven't memorized it yet....
Outlook signature based on user info from AD
My colleague from Crayon Norway, Jan Egil Ring, have written a cool Powershell script that creates an Outlook signature based on information from AD. Take a look at it, it is posted here.
Friday, January 15, 2010
Enable Recycle Bin - with Powershell
This is the Powershell way to enable Recycle Bin in a domain called DEMO.PRV:
Enable-ADOptionalFeature �Identity �CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=demo,DC=prv� �Scope ForestOrConfigurationSet �Target �demo.prv�
Enable-ADOptionalFeature �Identity �CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=demo,DC=prv� �Scope ForestOrConfigurationSet �Target �demo.prv�
Subscribe to:
Posts (Atom)