Thursday, September 27, 2012

File Server Resource Manager:

           File Server Resource Manager is a suite of tools that allows administrators to understand, control, and manage the quantity and type of data stored on their servers. By using File Server Resource Manager, administrators can place quotas on folders and volumes, actively screen files, and generate comprehensive storage reports. This set of advanced instruments not only helps the administrator to efficiently monitor existing storage resources but it also aids in the planning and implementation of future policy changes.

The main capabilities of FSRM include:
  • Folder Quotas
  • File Screening 
  • Storage Reports
  • Event Log Integration
  • E-mail Notifications
  • Automated Scripts 

How to install FSRM:

To install it, Open the "Server Manger" tool on your file server, Click Add role in that.



Select "File Services" role. Then Click Next.



Check the “File Server Resource Manager” box and click “Next”. You will then select the NTFS volumes you want to monitor:






Click on “Options” to see additional options for reports:






Here, you can also Tick the Option Receive reports by e-mail.By that time you have to mention the Email address and SMTP server IP or hostname.

  



To lunch the FSRM, Click on "Administrative Tools" Select " File Server Resource Manger" 







Quota Management: 
              
                  By Creating a quota for a volume or folder, you can limit the disk space that is allocated for that By creating a quota for a volume or folder, you can limit the disk space that is allocated for that volume or folder. The Quota Management node of File Server Resource Manager includes all the necessary options to work with quotas.


To create new Quota , Right Click the Quotas or Click the Create Quota in the  action pane right side .  







Also we can select custom Quota. This will help you to give folder size manually instead of selecting templates. 




File Screening Management:

     File screens are used to block specific types of files from being saved on a volume or in a folder tree. To specify which files to screen, you assign one or more file groups to a file screen. The File Screening Management node of File Server Resource Manager includes all the necessary options to work with file screens.



To add a file Screen, Click on the "Create File Screen....." action (on the Actions pane on the right).







You will probably want to use a template to define your File Screening. Below is the list of pre-defined templates included with FSRM.




You can also create your own File Screening Templates,  

FSRM includes a list of pre-defined File Groups, as shown below:



You can use those, modify them or create your own File Groups.


Saturday, September 22, 2012

What are the DS Commands ? How it works in Active directory.


                           DS (Directory Service) Family of built-in command line utility. The DS (Directory Service) group of commands are split into two families. In one branch are DSadd, DSmod, DSrm and DSMove and in the other branch are DSQuery and DSGet.

DS Commands are:
  • DSmod  - To Modify Active Directory Attributes.
  • DSrm     - To Delete Active Directory Objects.
  • DSmove - To relocate objects.
  • DSadd    -  Create new accounts.
  • DSquery - To find objects that match your query attributes.
  • DSget     -  List the properties of an object

DSaddAdds specific types of objects to the directory.

  • DSadd Computer:  Add a single Computer to the directory. 

  Example 1.To create a computer account named client_PC in the default Computers container of testdomain.com.

CMD: dsadd computer "cn=Client_PC,cn=computers,dc=testdomain,dc=com"


  

  • Dsadd User:  Adds a single user to the directory.

  

Example 1: Creating a user account.



Cmd: dsadd user "cn=stevejobs,cn=users,dc=testdomain,dc=com"




User id "stevejobs" created under Users folder, with out password, and the account status is Disabled. 

Examble 2. Creating User account with Password and the account should be enabled mode.

Cmd: dsadd user "cn=stevejobs,cn=users,dc=testdomain,dc=com" -pwd A1b2c3d4 -disabled no

-pwd {<Password>|*}: Specifies  that the password for the user be set to Password or an asterisk (*). If you set the password to *, dsadd prompts you for a user password.

-mustchpwd {yes | no }: Specifies whether users must change their passwords when they next log on. The available values are  Yes and no. By default, users do not  have to change their their passwords (no)
    
-mustchpwd {yes | no}: pecifies whether users must change their passwords when they next log on. The available values are yes and no. By default, users do not have to change their passwords (no).

-pwdneverexpires {yes | no}: Specifies whether the user password never expires. The available values are yes and no. By default, user passwords expire (no).

-disabled {yes | no}:  Specifies whether dsadd disables the user account for log on. The available values are yes or no. By default, the user account is disabled for log on (Yes).

-acctexpires <NumberOfDays> : Specifies the number of days from today that the user account will expire. A value of 0 sets expiration at the end of today. A positive value sets expiration in the future. A negative value sets expiration in the past. The value never sets the account to never expire. For example, a value of 0 implies that the account expires at the end of today. A value of -5 implies that the account has already expired 5 days ago and sets an expiration date in the past. A value of 5 sets the account expiration date for 5 days in the future.


Here User id named "stevejobs"  created with password and Enabled.

Example 3.To create the same account, with a set it to never expire, and make it a member of the sales group in the same OU,
Cmd:dsadd user "cn=johnsmith,ou=sales,dc=testdomain,dc=com" -disabled no -pwd  A1c2b3d4  -mustchpwd yes -memberof  "cn=accounting, ou=sales, dc=testdomain, dc=com" -acctexpires never





  • DSad ou: 

Adds a single organizational unit (OU) to the directory.

Example 1. To create an organizational unit (OU) named "sales" in the testdomain.com,

Cmd: dsadd ou "ou=sales,dc=testdomain,dc=com"



  • Dsadd Group:

Adds a single group to the directory.

Example 1. Create a group account named Sales in the default Users container of testdomain.com.


Cmd: dsadd group "cn=Sales,cn=users,dc=testdomain,dc=com"





Example 2.To create a universal group named accounting in an organizational unit (OU) named Sales in a domain named testdomain.com.

Cmd: dsadd group "cn=accounting,ou=sales,dc=testdomain,dc=com" -scope u

-scope {l | g | u}  : Specifies whether the scope of the group that you want to add is domain local (l), global (g), or universal (u). If the domain is in mixed-mode, then AD DS does not support the universal scope. By default, dsadd sets the scope of the group to global.




  • Dsadd contact:

Adds a single contact to the directory.

Example 1.To create a contact named MikeDan in the default Users container of testdomain.com,

Cmd: dsadd contact "cn=mikedan,cn=users,dc=testdomain,dc=com"



Dsmod:

Modifies an existing object of a specific type in the directory.

  • Dsmod Contact: 
             Modifies attributes of one or more existing contacts in the directory.

Example 1:To set the company information of multiple contacts, 

 Cmd:dsmod contact "cn=suneesh,cn=users,dc=testdomain,dc=com" "cn=mikedan,
cn=users,dc=testdomain,dc=com" -office Bangalore


  • Dsmod Computer:
              Modifies attributes of one or more existing computers in the directory.

 Example 1.To disable multiple computer accounts,

 Cmd: dsmod computer "cn="MemberServer1,cn=computers,dc=testdomain,dc=com" "cn=MemberServer2,cn=computers,dc=testdomain,dc=com" -disabled yes 




  • Dsmod User:
    Modifies attributes of one or more existing users in the directory.

   Example 1. To reset the password for "Antony" and force him to change his password when he next logs on to the network.

Cmd: dsmod user "cn=antony,ou=sales,dc=testdomain,dc=com" -pwd A1c2b3d4 -mustchpwd yes

Example 2. To reset multiple user passwords to a common password and force users to change their passwords when they next log on to the network.

Cmd:dsmod user "cn=antony,ou=sales,dc=testdomain,dc=com" "cn=johnsmith,
ou=sales,dc=testdomain,dc=com" -pwd a1b6c7d9 -mustchpwd yes


  • Dsmod Group:
         Modifies attributes of one or more existing groups in the directory.

Example 1. To add the user Mike Danseglio to all administrator distribution list groups.

Cmd: dsquery group "OU=Distribution Lists,DC=contoso,DC=com" -name adm* | dsmod group -addmbr "CN=Mike Danseglio,CN=Users,DC=contoso,DC=com"

Example 2. To add all members of the US Info group to the Canada Info group.

Cmd: dsget group "CN=US INFO,OU=Distribution Lists,DC=contoso,DC=com" -members | dsmod group "CN=CANADA INFO,OU=Distribution Lists,DC= contoso,DC=com" -addmbr

{-addmbr | -rmmbr | -chmbr} <MemberDN> :  Specifies to add members to, remove them from, or replace them in a group. MemberDN specifies the members that the operation affects. You can specify only one of these parameters in any command invocation.
MemberDN specifies the distinguished names of one or more members for AD DS to add to, delete from, or replace in the group that GroupDNspecifies. You must give each member a distinguished name, for example, CN=Mike Danseglio,OU=Users,DC=Contoso,DC=Com. The list of members must follow the -addmbr-rmmbr, and -chmbr parameters. If values are omitted, they are obtained through standard input (stdin) to support piping of output from another command to input of this command. If you use GroupDN and MemberDN together, thendsmod takes only one parameter from stdin, which requires you to specify at least one parameter at the command prompt.
Example 3. To add all users from the Marketing organizational unit (OU) to the existing group Marketing Staff.
Cmd: dsquery user OU=Marketing,DC=Contoso,DC=Com | dsmod group "CN=Marketing Staff,OU=Marketing,DC=Contoso,DC=Com" -addmbr

Dsquery:  Queries the directory by using search criteria that you specify. Each of the dsquery commands finds objects of a specific object type, with the exception ofdsquery *, which can query for any type of object
Example 1. - To find all users in the default Users folder with DSQuery.

Cmd:dsquery user domainroot



Example 2. To find all users whose name begins with a*

Cmd: dsquery user domainroot -name a*


Example 3. To filter the output with -o rdn

Cmd: dsquery user domainroot -name a* -o rdn 

{-o{dn | rdn |upn |samid}: Specifies the format in which the list of entries found by the search will be displayed. A dn value displays the distinguished name of each entry. An rdn value displays the relative distinguished name of each entry. A upn value displays the user principal name of each entry. A samid value displays the SAM account name of each entry. By default, the dn format is used. 





Dsrm: 
  
     Deletes an object of a specific type or any general object from the directory.

Example 1. To remove an organizational unit (OU) named Marketing and all the objects under that OU.

   Cmd: dsrm -subtree -noprompt -c "ou=Marketing,dc=testdomain,dc=com"


Example 2.To remove all objects under an OU named Marketing, but leave the OU intact.

   Cmd: dsrm -subtree -exclude -noprompt -c "ou=marketing,dc=testdomain,dc=com"


Dsmove: 
     
        Moves a single object, within a domain, from its current location in the directory to a new location, or renames a single object without moving it in the directory tree.

Example 1. To rename a user object from Johnsmith to smith
 Cmd: dsmove "cn=jhonsmith,ou=sales,dc=testdomain,dc=com" -newname "smith" 

Example 2.To move the user object for antony from the Sales organization to the Marketing organization.

Cmd:dsmove "cn=antony,ou=sales,dc=testdomain,dc=com" -newparent "ou=marketing,
dc=testdomain,dc=com"

Example 3.To combine the rename and move operations.

Cmd:dsmove "cn=antony,ou=sales,dc=testdomain,dc=com" -newparent "ou=Marketing,
dc=testdomain,dc=com" -newname "Joseph"


Friday, September 21, 2012

How to Upgrade to Windows Server 2008 from Windows Server 2003.

The Server 2008 Upgrade Process 


The upgrade process is not difficult at all and it doesn’t take a very long time. There are a couple of steps that you need to do before running the CD to update your server — here they are:
1. Before you start upgrading, make sure that your server’s hardware is up to specifications for Server 2008 (these are the recommendations, for minimum requirements):

  • At least 512MB of RAM – preferably a lot more
  • At least a 2GHz processor
  • At least 40GB of Available Hard Disk space
  • DVD-ROM Drive
  • At least Super VGA (800×600) monitor
  • Keyboard, mouse, NIC Card, etc
2. If you are upgrading a 2003 Domain Controller, you will need to copy a couple of scripts from Server 2008 disc to your Server’s hard disk and then run adprep/FORESTPREP and adprep/DOMAINPREP.

There are a few things you should be aware of before starting the upgrade process:
  1.  2003 Servers should be patched to at least SP1
  2. Small Business Server 2003 and 2003 R2 upgrades are not supported
  3. You can’t upgrade to Server Core
  4. Exchange Server 2007 will not take an in-place upgrade. This is very important, because if you try it will break things. What you need to do is a Mailbox Migration to do this kind of upgrade with Exchange 2007

Preparing Your Server for Upgrade
  • Login to your domain controller on the server you are upgrading ( Windows Server 2003). First we are going to prepare the Domain Controller Database for upgrade.
  • Insert the Server 2008 CD in your CD/DVD-ROM drive.
  • Open My Computer and right-click on CD/DVD-ROM. Then select Explore.


  • Next, select Command Prompt on your start menu. , Type Following Commands One by one. 
  • Commands are: adprep /forestprep, adprep /domainprep /gpprep,  adprep /rodcprep


  • Before executing domainprep you have tochange the Domain functional Level as Windows Server 2003.






  • Now you can execute adprep /domainprep /gpprep
  • adprep /rodcprep this optional.

Now you can login to a.Windows Server 2008 machine.Before run the dcpromo command. You have to change the Preffered DNS. 



Go to the Server Manager, and Select Roles and add new Active Directory Domain Service role.
After the Role is got installed Run DCPROMO.













After the Domain Installation, reboot the machine.and login to the machine, using domain account.



  







                                                                                                                                                                                                                        
                             





You have activate Active directory Schema for that you have to run  regsvr32 schmmgmt.dll command.










After the Operation Master is completed. You can now login to Windows Server2003 and remove the domain Controller. 







        Migration process is completed.