Private - Guide

Free Tutorial, Guide, Tips, Trik and Application Download..

Senin, 17 September 2012

Beginner: How to Import and Export Virtual Machines in Hyper-V

Windows-Server-2008-Hyper-V-logo-v_2Today we have a look at how we can backup our virtual machines on one server, and then restore them on another server configured to run Hyper-V without requiring any third-party tools.

Exporting a Virtual Machine

To get started, open up the Hyper-V Manager MMC Console.

Now right-click on the virtual machine you wish to export, and select export from the context menu.

Hit the browse button and select the folder you wish to save your exported virtual machine, then click on the export button.

Once the export is complete, you can see your exported virtual machine by going to the location you selected.

Importing a Virtual Machine

Importing a virtual machine can also be done through Hyper-V Manager, to do so click on the Import Virtual Machine link on the right-hand side.

Now navigate to the exported virtual machine and be sure to select folder that your virtual machine was exported into. You can leave the rest of the settings at their defaults and click the import button.

It may take a while for your machine to import depending on its size, but that’s all there is to it.

Label: ,

How to Install and Manage Active Directory on Server 2008 R2 Core

How to Install and Manage Active Directory on Server 2008 R2 Core

Installing Active Directory on Server Core is not a task that can be achieved using  the Optional Component Setup tool–instead we actually have to use DCPROMO from the command line. Here’s how to do it.
Note: this is part of our ongoing series teaching IT administration basics, and might not apply to everybody.
Before we install Active Directory there are a few things that need to be done first–we need to set static IP information for the network adapter as well as change the name of our server. This all needs to be done from the command line, so lets take a look at how to go about doing these tasks.

Setting a Static IP Address

Active Directory requires that the Server has a static IP assigned, so we need to get a list of the network adapters attached to this server. To do this we use a netsh command:
netsh interface ipv4 show interface

Now that you can see the names of all the network cards in your machine, you can change the settings for a specific card. To change the IP address we again use the netsh command:
netsh interface ipv4 set address name=”Local Area Connection” source=”static” address=”10.10.10.1″ mask=”255.255.255.0″ gateway=”10.10.10.254″
Where the following values should be substituted:
  • Name – Name of the interface that you wish to change the settings for
  • Address – IP address that you want to assign the interface
  • Mask – The subnet mask for the interface
  • Gateway – The default gateway for the interface

To set up DNS information for the server, we run the following command:
netsh interface ipv4 add dnsservers name=”Local Area Connection” address=”127.0.0.1″ index=1 validate=no
Where the following values should be substituted:
  • Name – Name of the interface that you wish to change the settings for
  • Address – IP address of the DNS Server (we are using the loopback address)
  • Index – Specify 1 to set the Primary DNS Server, Specify 2 to set the Secondary DNS Server

Changing The Computer Name

We would also want to rename the server before promoting it to a domain controller, to do that we use the netdom command. You should substitute DC1 in the following command, to whatever you want to call your server.
netdom renamecomputer %computername% /newname:DC1

For the changes to take effect you need to reboot your PC, to do this from the command line run the following command:
shutdown /r /t 0

Installing Active Directory

There is a couple of ways to install Active Directory on a Server Core, however we will go with the answer file method. So I have created an answer file (seen in the screenshot below) this is a basic answer file but if you have special needs you should see  this TechNet article which will give you a full list of parameters. You can create a file exactly like this in notepad and  just call it DCPROMO.txt

So what does this do:
  • Creates a new domain at the root of a new forest called howtogeek.local
  • Sets the forest functional level to Server 2008 R2
  • Installs DNS with an Active Directory Integrated Zone
  • Makes this sever a Global Catalog
  • Sets the AD Restore Mode password to Pa$$w0rd
  • Reboots on completion
You use the answer files by running the following command:
dcpromo :/unattend:”path to answer file”

This will kick off the installation of Active Directory and reboot on completion.

That’s all there is to installing Active Directory on Server Core.

Managing Active Directory

The easiest way to manage a Server Core Server is to use the RSAT (Remote Server Administrator Tools) which allows you to load up MMC consoles on any Windows 7 machine and connect to an instance of the role running on the server. You can grab the RSAT from here. The installation is in the form of a Windows Update, once installed open the Turn Windows features on or off option from the Programs and Features section in Control Panel. You need to add the AD DS Snap-ins and Command-line tools, check the screenshot to see how to get there.

Once the components have been added, you can open a run box by hitting the Windows + R key combination and type MMC before hitting enter.

This will open a blank MMC console, click on file and then choose Add/Remove Snap-in..

Choose Active Directory Users and Computers from the list and hit the Add button.

If you are logged in with a Domain Admin account, it will automatically connect to the Active Directory instance, if not you will have to connect to it manually.

Label: ,

Forgot The Windows Administrator Password

Ok, so you say you forgot your Windows administrator's password, huh? Oh well, it doesn't really matter if you did or you just say you did. The fact is that you need to gain access to a computer and you cannot "remember" the administrator's password. How can you get out of this situation without formatting and re-installing the operating system?

One method of gaining access to the system is by trying hard to remember the forgotten password, or a password of another user which has the same level of administrative rights. However I don't think this approach will help you, otherwise you wouldn't be sitting here reading article, would you?
Another method is by trying to restore a backed up System State (in Windows 2000/XP/2003) or a ERD (in NT 4.0) in which you do remember the password. The problem with doing so is that you'll probably lose all of the recently add users and groups, and all the changed passwords for all of your users since the last backup was made.
A third method might be to install a parallel operating system on a different partition on the same computer, then use a simple trick to gain access to the old system. Read more about it on my Forgot the Administrator's Password? - Alternate Logon Trick article.  For Office document password removal, you can also check our tutorials on Excel password recovery.
Note: If you are looking for password cracking tools that can be used for miscellaneous objectives such as password-protected PDF documents, zipped archives, Office documents, BIOS protection and so on then this pages is NOT for you. See some links at the bottom of this page for hints on where to find such tools, but I can tell you right away that Google might be a better choice for you.
The fourth option is by using 3rd party tools that will enable you to reset the lost password and logon with a blank password.
Update: You can also discuss these topics on the dedicated Petri.co.il Forgot Admin Password Forum.

Password Recovery Tools

Free Windows password-cracking tools are usually Linux boot disks that have NT file system (NTFS) drivers and software that will read the registry and rewrite the password hashes for any account including the Administrators. This process requires physical access to the console and an available floppy drive but it works like a charm! I've done it myself several times with no glitch or problem whatsoever.
Beware!!! Resetting a user's or administrator's password on some systems (like Windows XP) might cause data loss, especially EFS-encrypted files and saved passwords from within Internet Explorer. To protect yourself against EFS-encrypted files loss you should always export your Private and Public key, along with the keys for the Recovery Agent user. Please read more about EFS on my What's EFS? page. Out of the following list, the only tool that will no cause any harm to EFS-encrypted files on your hard disk is the Windows Password recovery system. Here are 5 of these tools:
  1. Stellar Phoenix Password Recovery - Simple startup utility resets a forgotten admin or users' password using a familiar Windows-like program interface instead of command-line.
  2. Password Kit - Top rated version of Passware's Password recovery app, supports Windows Vista and RAID/SCSI/SATA drives.
  3. Petter Nordahl-Hagen's Offline NT Password & Registry Editor - A great boot CD/Floppy that can reset the local administrator's password.
  4. Openwall's John the Ripper - Good boot floppy with cracking capabilities.
  5. EBCD – Emergency Boot CD - Bootable CD, intended for system recovery in the case of software or hardware faults.
If you happen to know about other free tools please let me know.
Important note for Windows Vista users: At this time there is only one solution for Window Vista and that is Petter Nordahl-Hagen's Offline NT Password & Registry Editor
Note: These password resetting tools are usually good for local users on a stand alone computer. For Domain Admin password resetting procedures please see the Related Articles section at the bottom of this page. I'd like to put together all the info you have about these issues. If you have any tips, recommended links or any ideas about how to figure out a lost password - please e-mail me and I'll get back to you.

Windows Password recovery

www.loginrecovery.com This site provides a tool to recover lost Windows XP passwords. It works for administrator and user accounts, it doesn't change the password just tells you the old one. It works with encrypted files (EFS) and password hashes. It even works if no passwords at all are known for the machine (as long as you have another computer with internet access to view this website with). Author claims it also works with Windows NT and Windows Server 2003 and Windows Longhorn, but the BEST thing about it is the fact that it won't reset your passwords, but simply reveal them for you to remember and then use. Give it a try. The author would like to receive feedback. The fee for the service is very cheap, and is really just to cover server costs. Note: You'll need a blank floppy to run the process.
Update: Author now offers the same tool as a CD image for those of you who do not have a floppy in their computer. Usage, instructions and additional information can be found at www.loginrecovery.com

Offline NT Password & Registry Editor (v080526 - May 2008)

Petter Nordahl-Hagen has written a Windows NT/2000/XP/Vista offline password editor: http://pogostick.net/~pnh/ntpasswd/
  • This is a utility to (re)set the password of any user that has a valid (local) account on your Windows NT/2000/XP/2003/Vista system, by modifying the encrypted password in the registry's SAM file.
  • You do not need to know the old password to set a new one.
  • It works offline, that is, you have to shutdown your computer and boot off a floppy disk or CD. The boot-disk includes stuff to access NTFS partitions and scripts to glue the whole thing together.
  • Works with syskey (no need to turn it off, but you can if you have lost the key)
  • Will detect and offer to unlock locked or disabled out user accounts!
Caution: If used on users that have EFS encrypted files, and the system is XP or later service packs on W2K, all encrypted files for that user will be UNREADABLE! and cannot be recovered unless you remember the old password again! Download links:
To write these images to a floppy disk you'll need RawWrite2 which is included in the Bootdisk image download. To create the CD you just need to use your favorite CD burning program and burn the .ISO file to CD.
Support and Problems? Don't call me! Talk to the creator of this great tool. He also has a good FAQ set up covering most of the day-to-day questions. Read it right HERE. Author claims that this tool was successfully tested on NT 3.51, NT 4, Windows 2000 (except datacenter), Windows XP (all versions) and Window Server 2003. Notice that it is NOT compatible with Active Directory.
Need to change Windows NT/2000 Domain Admin password? This tool, however useful, will only reset the local administrator's password (e.g. the one found in the local computer's SAM). To reset a password of a domain administrator (or any other user for that matter) you must perform the routine that is described in the following page: Forgot the Administrator's Password? - Reset Domain Admin Password in Windows 2000 AD.
Note: The above trick will probably not work under Windows Server 2003 due to service account security changes. To work around these limitations please read the Forgot the Administrator's Password? - Reset Domain Admin Password in Windows Server 2003 AD page.

John the Ripper (v1.7.0.1)

John the Ripper is a fast password cracker, currently available for many flavors of Unix (11 are officially supported, not counting different architectures), DOS, Win32, BeOS, and OpenVMS. Its primary purpose is to detect weak Unix passwords. Besides several crypt(3) password hash types most commonly found on various Unix flavors, supported out of the box are Kerberos AFS and Windows NT/2000/XP LM hashes, plus several more with contributed patches. Read more at www.openwall.com/john. Download links: John the Ripper 1.7.0.1 (1.32mb) A Pro version also exists on the author's site, however that one costs money.

EBCD – Emergency Boot CD (v0.61 - October 2004)

EBCD is a bootable CD, intended for system recovery in the case of software or hardware faults. It is able to create backup copies of normally working system and restore system to saved state. It contains the best system software ever created, properly compiled and configured for the maximum efficient use. EBCD will be very useful when you need to:
  • Copy/move files (with long names, not necessary in CP437 encoding) from/to the disk but OS which can handle them (windows, Linux...) cannot boot. In particular, you may create a backup copy of normally installed and configured Windows and later restore Windows from such backup copy. So, in the case of fault OS itself and all software and its settings can be restored in 5-10 minutes.
  • Perform emergency boot of Windows NT / 2000 / XP. When the loader of this OS on the hard disk is damaged or misconfigured, you are able to load OS using another, standalone loader from this CD.
  • Recover master boot record of HDD. This allows to boot OS after incorrect uninstallation of custom loader (LILO, for example), which made all OS on your PC not bootable.
  • Delete, move, copy to file (image) and re-create partition from file. Image transfer over network is also supported: so you may configure one PC and then make contents of hard disks of other PCs same as contents of the hard disk of the first one.
  • Change password of any user, including administrator of Windows NT/2000/XP OS. You do not need to know the old password.
  • Recover deleted file, even file re-deleted from Windows Recycle Bin, and, in contrast, wipe single file or a whole disk so that it will be impossible to recover it in any way.
  • Recover data from accidentally formatted disk. Sometimes it helps to recover data from the disk, damaged by a virus.
  • Recover data from a floppy disk, which is not readable by OS. Format 3.5" disk for 1.7 Mb size.
Also the disk includes full set of external DOS commands, console versions of the most popular archivers/compressors. Moreover, emergency boot CD includes minimal Linux distribution (Rescue Linux distribution) which may be very useful to a professional user

Label: , ,

Changing the Screen Resolution in Windows Server 2008 Server Core

Changing the Screen Resolution in Windows Server 2008 Server Core

Once you install Server Core, and especially after installing VMWare tools, you may find that the screen resolution is amended and you only get a reduced screen as below.

As you can see, you don’t get a vast amount of screen estate and can’t scroll the command box. To fix this, you need to amend the registry. Now, while Server 2008 doesn’t contain many GUI based tools, one of the IS the registry editor. To start up regedit, simply type regedit (or regedt32 if you prefer) and press return. The keys you need to modify are

  • HKLM\System\CurrentControlSet\Control\Video\{ClassID}000\DefaultSettings.XResolution
  • HKLM\System\CurrentControlSet\Control\Video\{ClassID}000\DefaultSettings.Yresolution
The ClassID is a GUID. There is one for each display driver installed on your system. You can tell which one is currently in use as below the 0000 Key you will have another Key called “Volatile Settings”.

So, you need to simply locate the appropriate ClassID for your current driver and, within the Key for that driver, find the DefaultSettings.XResolution and DefaultSettings.YResolution DWord values. You can then change them to appropriate values. When you open one of these values, you will notice that, by default, it is set to Hex.


Click on Decimal to see (and change) the decimal equivalent.


That is, by changing to decimal you can enter X as 1024 and Y as 768 (for example). Indeed, as you are in the registry, you can set ANY values you like, even non-standard ones or values that your card and / or monitor are not capable of displaying. So, choose sensible values (it is a generally non-GUI based O/S after all).

You can now reboot the server (using shutdown /r /f for example) and, after rebooting, you will have your new screen resolution.

Label:

Installing Windows 2008 Active Directory on Server Core (Existing Forest)

Installing Windows 2008 Active Directory on Server Core (Existing Forest)

You can get a nice reference guide of the commands you can easily use to complete most tasks for Windows Server 2008 core from here (just follow the pages through to see all of the commands). But, if all you want to do is get a core DC up and running in an existing Windows 2008 forest then follow this guide. It follows on from my previous post Installing Active Directory on Windows 2008 (New Forest). So, if you’ve followed that, you should already have a DC running in its own forest.
To have a Windows Server Core machine acting as a DC, we first need to install server core and then promote the computer to be a domain controller. The setup screens for installing Server Core are very similar to those for Windows Server and so I have skipped the initial install on the basis that most people will be able to figure this out.
After installing Server Core there are a couple of things we need to do. Change the machine name, assign TCP/IP settings to the network cards etc.
To rename the server we use the netdom utility. The command is
Netdom renamecomputer OldComputerName /newname:NewComputerName
To make life easier, we can tokenise the OldComputerName by passing the command our existing computer name using the %computername% token. So, to change our computer name to “CoreDC” we would use the command
Netdom renamecomputer %computername% /newname:CoreDC

You will be asked to confirm the change as below.

Now the machine has a new name, we need to set its IP address. To do this, we may need to know the name of the interface on the card. This is usually “Local Area Connection”. In a virtualised or multi-card environment then this may not be the correct name. Indeed, there may be some circumstances (though I wouldn’t recommend it for a DC) where you want to have the server sitting in multiple subnets. To do this, we enter the command netsh interface ipv4 show interface to list all the ipv4 enabled interfaces.

To set the IP address for this interface we use the command
netsh interface ipv4 set address name=”Local Area Connection” source=static address=10.1.1.2 mask=255.255.255.0 gateway=10.1.1.254
1
swapping the IP address, subnet mask and gateway for appropriate values and the connection name to the correct value found in the previous step. The 1 at the end of the command signifies the metric for this gateway – setting a metric of 1 sets this as the default gateway. As can be seen from the below, you do not receive an acknowledgement.

IPConfig shows that these values have been set.

We can now set our DNS and WINS values. The commands to use are
Netsh interface ipv4 add dns name=”Local Area Connection” 10.1.1.1

Netsh interface ipv4 add dns name=”Local Area Connection” 10.1.1.3 index=2

The above commands set 10.1.1.1 to be the primary dns server and 10.1.1.3 to be the secondary dns server. This can again be confirmed using IPConfig /all.



Similarly, WINS addresses can also be added and checked.

The server should now be rebooted using shutdown /r /f /t 0 for an immediate reboot.
Once rebooted and logged in, we can check that the server has the new machine name either using IPConfig /all or echo %computername%.

We can now add the computer to the domain, again using the Netdom utility. The command to do this is
Netdom join ComputerName /domain:NameOfDomainToJoin
Again, we can tokenise our computername. My lab has the domain name mydomain.local. Once entered, the command may take several seconds or a minute to complete, just as when you add a computer to the domain via the GUI in Windows 2000/2003. If successful, you will receive a message similar to the below.

We can now reboot the server with the same command as above shutdown /r /f /t 0

Like the GUI version, the AD binaries are not installed. However, unlike the GUI version, the binaries will be automatically installed when we run DCPromo. In the meantime, we may want to install DNS first and we can do this by adding the DNS role to the server using the command line version of Server Manager, OCSetup. To see the list of possible roles that can be installed, enter OCList.

To add the DNS role we can enter the following command
OCSetup DNS-Server-Core-Role
NOTE: This is a case sensitive command – if you mis-enter the command you will receive an error similar to the below.

Running OCList will now show that the DNS Server Core Role is installed

We can now run DCPromo as usual. However, as this is server core, just typing DCPromo merely shows the help file for the command. As we want to promote the server to be a DC in our domain we need to use the /promotion switch. To see the construction of the command we can enter dcpromo /?:Promotion. As this command is quite long you may want to output it to a text file
Dcpromo /?:Promotion > promotion.txt & promotion.txt

This will not only run the command and put it into a file but also open that file in notepad – yes, server core ships with the GUI version of notepad ! To make the text appear you will have to press any key after running the above command. This is because the help file for the promotion event requires you to do this time complete.
To promote the server to be a DC in our domain we can enter the command
Dcpromo /unattend /replicaOrnewDomain:replica
/replicaDomainDNSName:mydomain.local /ConfirmGC:yes
/username:mydomain\administrator /Password:*
/safeModeAdminPassword:LetmeIn123

This will run dcpromo adding our server as a global catalog server to the mydomain.local domain. The Domain restore Mode password will be set to LetMeIn123. We will be asked to enter the domain administrator password when the command is run (by way of the /password:* command)

The server will reboot itself as part of the install. Running OCList will now show Active Directory as being installed.

Alternatively, as we are in an existing forest / domain, you can always use the Users and Computers tool on another server to confirm that your Server Core machine is, in fact, a domain controller.
If you want to demote a Core sever from being a domain controller simply enter the command
Dcpromo /unattend /Administratorpassword:MyNewLocalAdminPassword
If you want to add your domain controllers in different ways, I set our below the RTM version of the Promotion help file which shows the switches to locate the database and sysvol shares on different drives for space and / or performance reasons.
The following is a list of unattend parameters for promotion (default values are enclosed in <>):
/AllowDomainControllerReinstall:{Yes | | NoAndNoPromptEither}
Specifies whether to continue installing this domain controller despite that a domain controller account with the same name is detected. Specify Yes only if you are sure that the account is no longer in use.

/AllowDomainReinstall:{Yes | | NoAndNoPromptEither}
Specifies whether an existing domain is recreated.

/ApplicationPartitionsToReplicate:”"
Specifies application partitions to be replicated in the format of “partition1″ “partition2″. If * is specified, all application partitions will be replicated.

/AutoConfigDNS:{Yes | No} default will be automatically computed based on the environment
Specifies whether Domain Name System (DNS) Server service should be installed.

/ChildName:”child_domain_name”
Specifies the single-label DNS name of the child domain.

/ConfirmGc:{Yes | No}
Specifies whether you want the domain controller to be a global catalog server.

/CreateDNSDelegation:{Yes | No} default will be automatically computed based on the environment
Specifies whether a DNS delegation for this domain should be created in the parent zone.

/CriticalReplicationOnly:{Yes | }
Specifies whether the promotion operation performs only critical replication before reboot, and then continues, skipping the non-critical (and potentially lengthy) portion of replication. The non-critical replication will happen after the role installation has finished and the computer reboots.

/DatabasePath:”path_to_database_files” default is %SYSTEMROOT%\NTDS
Specifies the fully qualified, non-UNC path to a directory on a fixed disk of the local computer that contains the domain database. For example, C:\Windows\NTDS.

/DelegatedAdmin:”name of user or group”
Specifies the name of user or group that will install and administer the read-only domain controller.

/DNSDelegationPassword:{“password” | *}
Specifies the password for the user name (account credentials) to use for creating or removing DNS delegation. Specify * to prompt the user to enter credentials.

/DNSDelegationUserName:”user_name”
Specifies the user name (account credentials) used for creating or removing DNS delegation. If no value is specified, the credentials used for the domain controller installation or removal are used.

/DNSOnNetwork:{ | No}
Specifies whether DNS service is available on the network. This is used only when the network adapter for this computer is not configured with the name of a DNS server for name resolution. Specifying ‘No’ indicates that DNS server will be installed on this computer for name resolution. Otherwise, the network adapter must be configured with a DNS server name first.

/DomainLevel:{0|2|3}
The domain functional level cannot be lower than the forest functional level. Default will be automatically computed and set to the existing forest functional level or the value set for /ForestLevel
Specifies the domain functional level when creating a new domain. A value of 0 specifies Windows 2000. A value of 2 specifies Windows Server 2003. A value of 3 specifies Windows Server 2008.

/DomainNetBiosName:”domain_NetBIOS_name”
Assigns a network basic input/output system (NetBIOS) name to the new domain.

/ForestLevel:{<0>|2|3}
The default forest functional level when creating a new forest is Windows 2000 (0); do not use this switch when promoting a domain controller in an existing forest
Specifies the forest functional level when creating a new forest. A value of 0 specifies Windows 2000. A value of 2 specifies Windows Server 2003. A value of 3 specifies Windows Server 2008.

/InstallDNS:{Yes | No} default will be automatically computed based on the environment
Specifies whether Domain Name System (DNS) should be installed for the domain. This switch replaces /AutoConfigDNS.

/LogPath:”path_to_log_files” default is %SYSTEMROOT%\NTDS
Specifies the fully qualified, non-UNC path to a directory on a fixed disk of the local computer that contains the domain log files. For example, C:\Windows\Logs.

/NewDomain:{Tree | Child | }
Indicates the type of domain that you want to create: a new forest, a new domain tree in an existing forest, or a child of an existing domain.

/NewDomainDNSName:”DNS_name_of_domain”
Specifies the fully qualified domain name for the new domain.

/ParentDomainDNSName:”DNS_name_of_domain”
Specifies the fully qualified domain name of an existing parent domain when installing a child domain.

/Password:{“password” | *}
Specifies the password corresponding to the user name (account credentials) used for the operation. Specify * to prompt the user to enter credentials.

/PasswordReplicationAllowed:{“security_principal” | None}
Specifies the names of user, group, and computer accounts whose passwords can be replicated to this RODC. Specify “None” if you want to keep the value empty. By default, only the Allowed RODC Password Replication Group is allowed, and it is originally created empty.

/PasswordReplicationDenied:{“security_principal” | None}
Specifies the names of users, groups, and computer accounts whose passwords are not to be replicated to this RODC. Specify “None” if you do not want to deny the replication of credentials of any users or computers. By default, Administrators, Server Operators, Backup Operators, Account Operators, and the Denied RODC Password Replication Group are denied. By default, the Denied RODC Password Replication Group includes Cert Publishers, Domain Admins, Enterprise Admins, Enterprise Domain Controllers, Enterprise Read-Only Domain Controllers, Group Policy Creator Owners, the krbtgt account, and Schema Admins.

/RebootOnCompletion:{ | No}
Specifies whether to restart the computer upon completion, regardless of success.

/RebootOnSuccess:{ | No | NoAndNoPromptEither}
Specifies whether to restart the computer upon successful completion.

/ReplicaDomainDNSName:”DNS_name_of_domain”
Specifies the fully qualified domain name of the domain in which you want to promote an additional domain controller.

/ReplicaOrNewDomain:{ | ReadOnlyReplica | Domain}
Specifies whether to install an additional domain controller (writable or RODC), or to create a new domain.

/ReplicationSourceDC:”DNS_name_of_DC”
Indicates the full qualified domain name of the partner domain controller from which you replicate the domain information.

/ReplicationSourcePath:”replication_source_path”
Indicates the location of the installation media that will be used to install a new domain controller.

/SafeModeAdminPassword:”password” default is empty password (it is required that you do not leave this value blank)
Supplies the password for the administrator account when starting the computer in safe mode or a variant of safe mode, such as directory service restore mode.

/SiteName:”site_name”
The default value depends on the type of installation. For a new forest, the default is Default-First-Site-Name. For all other installations, the default is the site that is associated with the subnet that includes the IP address of this server. If no such site exists, the default is the site of the replication source domain controller.
Specifies the name of an existing site where you can place the new domain controller.

/SkipAutoConfigDns
This switch is for expert users who want to skip automatic configuration of DNS, including creation of zones and configuration of client settings, forwarders, and root hints. The switch is only in effect if the DNS Server service is already installed on this server. If you specify this switch, ensure that zones are created and properly configured before you install Active Directory Domain Services (AD DS); otherwise, this domain controller will not operate correctly. If the DNS Server service is not installed on this server, this switch is ignored.

/Syskey:{ | system key}
Specifies the system key for the media from which you replicate the data.

/SysVolPath:”path_to_database_file” default is %SYSTEMROOT%\sysvol
Specifies the fully qualified, non-UNC path to a directory on a fixed disk of the local computer. For example, C:\Windows\SYSVOL.

/TransferIMRoleIfNecessary:{Yes | }
Specifies whether to transfer the infrastructure master (IM) role to this DC, in case it is currently hosted on a global catalog (GC) server, and you do not plan to make this DC a GC. Choose Yes to transfer the IM role to this DC in case this is needed; in that case, make sure to specify “/ConfirmGC:No”. Choose No if you want the IM role to remain where it currently is.

/UserDomain:”domain_name”
Specifies the domain name for the user name (account credentials) used for the operation. It also helps to specify the forest where you plan to install the domain controller or create an RODC account. If no value is specified, the domain of the computer will be used.

/UserName:”user_name”
Specifies the user name (account credentials) used for the operation. If no value is specified, the credentials of the current user are used for the operation.

Label: , ,

Schedule SyncToy to Run Automatically With Task Scheduler in Windows 7

Schedule SyncToy to Run Automatically With Task Scheduler in Windows 7

SyncToy is a great tool to help you keep your files and folders synced between drives and devices.  Here’s how you can make it do sync automatically so your files will stay synced even if you forget to sync them.
By default, SyncToy only synchronizes your files when your fun the program and directly tell it to sync.  This might work fine for syncing files to a flash drive before heading out on a trip, but makes it difficult if you’re using it to synchronize files regularly between folders or drives on your computer or with Dropbox.  Windows includes an often overlooked scheduling tool that can automatically run many applications without any action on your part.  Let’s see how you can setup SyncToy to automatically sync with the Task Scheduler.
Automatically Run SyncToy
First, make sure you have SyncToy installed and have some syncs setup.  Here’s one of our articles with more info about Synchronizing Folders With SyncToy.
image
Now open Task Scheduler to get SyncToy automatically syncing.  Type Task Scheduler in the Search box in the Start Menu and hit Enter.

Once Task Scheduler opens, click Create Basic Task on the right sidebar.

Enter a name and a description for your task in the dialog that opens so you’ll be able to easily recognize your task.

Choose how often you want to run the task.  Note that Daily is the most frequent you can select in the dialog, but we can tweak this later in the settings.  Click Next to continue.

You’ll be asked to add additional settings depending on the trigger you selected previously.  If you chose Daily, then the default settings should work fine.  Note that it will automatically run daily at the current time; if you’d rather it run at a different time, enter the time you’d like in the box.

Now, you’ll be asked what you want the action to do…Click Start a program.

In the Program/script box, enter the following including the quotes:
“C:\Program Files\SyncToy 2.1\SyncToyCmd.exe”
Then, in the Add arguments box, enter –R to run all of your syncs each time.

Alternately, if you’d only like to run one of your syncs, enter –R “your sync name”.  Make sure to enter the sync name inside quotes if it contains any spaces.  Once you’re finished, click Next to continue.

If you left out the quotes in the program’s field, Task Scheduler will ask if you want to run C:\Program with the remainder as an argument.  Click No to keep it like you entered, and Task Scheduler will add the quotes correctly for you.

You’re finally finished.  The Wizard will show you a summary of the sync settings; click Finish to save the changes.

Now your sync will automatically run as you set, and you’ll never have to worry about running it manually again!
Edit Your Sync Schedule
If you’d like to make your files sync more often or change other things about your task, you can easily do so from the Task Schedule interface.  Click on the Task Scheduler Library on the left side to find your task.

Scroll through the tasks listed, and find the one you created previously.  You’ll see an overview of its settings in the preview underneath.

On the right sidebar, click Properties to change its settings.

To change how frequently it syncs, click the Triggers tab and double-click on your time listed.

Now you can select to have it repeat the task every hour or any other time you want, for as long as you want.  This dialog is much more flexible than the previous one used when creating the task.

Back in the Properties dialog, the Conditions tab lets you choose whether or not to run this task when your computer is running on battery power if you’re using a laptop/netbook.  By default it will only run when on AC power, but you can uncheck the box if you’d rather it sync even if you’re on battery.

You can also go ahead and run the task manually from the Task Scheduler if you’d like.  You may notice a command prompt window open while the sync is running, but it won’t require any input from you.

Conclusion
No matter what you need to sync, SyncToy is a handy tool to make sure all of your files are kept in different locations.  You can run as many syncs as you want automatically with the Task Scheduler, freeing you up for more important tasks.
If you haven’t already looked at it, check out our article on how to Sync Any Folder to Dropbox With SyncToy.  Once you’ve got that setup, you can automate your Dropbox syncs this way, too!
Download SyncToy

Source :

http://www.howtogeek.com/howto/25046/schedule-synctoy-to-run-automatically-with-task-scheduler-in-windows-7/

Label: ,