Showing posts with label Genaral Windows. Show all posts
Showing posts with label Genaral Windows. Show all posts

Wednesday, September 29, 2010

one more virtual software : SUN V BOX

one more virtual software


SUN V BOX :: http://www.virtualbox.org/wiki/Downloads

Wednesday, June 23, 2010

RUN Command Tip’s

1. Click Start/Run and type APPWIZ.CPL to open "Add/Remove Programs"

2. Click Start/Run and type SYSDM.CPL to open "System Properties"

3. Click Start/Run and type HDWWIZ.CPL to open the Add New Hardware Wizard

4. Click Start/Run and type NCPA.CPL to open "Network Connections"

5. Click Start/Run and type LOGOFF and press Enter to LOG OFF the current logged user

Wednesday, June 9, 2010

Sysprep parameters

Sysprep parameters
You can use the following optional parameters with the Sysprep command in Windows XP:
  • -activated - Do not reset the grace period for Windows product activation. Use this parameter only if you have activated the Windows installation in the factory.
    Important The product key that you use to activate the Windows installation must match the product key that is located on the COA sticker that is attached to that particular computer.
  • -audit - Restarts the computer in Factory mode without having to generate new security IDs (SIDs) or process any items in the [OEMRunOnce] section of the Winbom.ini file. Use this command-line parameter only if the computer is already in Factory mode.
  • -bmsd - Populates all the available mass storage devices in the [SysprepMassStorage] section.
  • -clean - Clears the critical devices database that is used by the [SysprepMassStorage] section in the Sysprep.inf file.
  • -factory - Restarts in a network-enabled state without displaying Windows Welcome or mini-Setup. This parameter is useful for updating drivers, running Plug and Play enumeration, installing programs, testing, configuring the computer with customer data, or making other configuration changes in your factory environment. For companies that use disk imaging (or cloning) software, Factory mode can reduce the number of images that are required.
    When all the tasks in Factory mode are complete, run the Sysprep.exe file by using the -reseal parameter to prepare the computer for end-user delivery.
  • -forceshutdown - Shuts down the computer after the Sysprep.exe file finishes.
    Note Use this parameter with computers that have an ACPI BIOS that do not shut down correctly with the default behavior of the Sysprep.exe file.
  • -mini - Configures Microsoft Windows XP Professional to use Mini-Setup instead of Windows Welcome. This parameter does not affect Microsoft Windows XP Home Edition, where the first-run experience is always Windows Welcome.
    Note that if you plan to use the Sysprep.inf file to automate Mini-Setup, you must either run the Sysprep tool by using the -mini switch, or click to select the MiniSetup check box in the GUI interface. By default, if you do not choose to run Mini-Setup, Windows XP Professional runs the Windows Welcome.
  • -noreboot - Modifies registry entries (SID, OemDuplicatorString, and other registry entries) without the computer restarting or preparing for duplication. This parameter is mainly used for testing, specifically to see if the registry is modified correctly. Microsoft does not recommend this option because making changes to a computer after the Sysprep.exe file has run may invalidate the preparation that was completed by the Sysprep.exe file. Do not use this parameter in a production environment.
  • -nosidgen - Runs the Sysprep.exe file without generating new SIDs. You must use this parameter if you are not duplicating the computer where you are running the Sysprep.exe file or if you are preinstalling domain controllers.
  • -pnp - Runs the full Plug and Play device enumeration and installation of previous devices during Mini-Setup. This command-line parameter has no effect if the first-run experience is Windows Welcome.
    Use the -pnp command-line parameter only when you must detect and install previous, non-Plug and Play devices. Do not use the sysprep -pnp command-line parameter on computers that only use Plug and Play devices. Otherwise, you will increase the time that it takes for the first-run experience without providing any additional benefit to the user.
    Note When unsigned drivers are unavoidable, use the UpdateInstalledDrivers=yes parameter in conjunction with OemPnPDriversPath= and DriverSigningPolicy=ignore instead of the -pnp command-line parameter to provide a more seamless installation.
  • -quiet - Runs the Sysprep.exe file without displaying onscreen confirmation messages. This is useful if you are automating the Sysprep.exe file. For example, if you plan to run the Sysprep.exe file immediately after the unattended Setup program finishes, add the sysprep -quiet command to the [GuiRunOnce] section of the Unattend.txt file.
  • -reboot - Forces the computer to automatically restart, and then starts Windows Welcome Mini-Setup, or Factory mode, as specified. This is useful when you want to audit the computer and verify that the first-run experience is operating correctly.
  • -reseal - Clears the Event Viewer logs and prepares the computer for delivery to the customer. Windows Welcome or Mini-Setup is set to start the next time that the computer restarts. If you run the sysprep -factory command, you must seal the installation as the last step in your preinstallation process. To do this, run the sysprep -reseal command or click the Reseal button in the Sysprep dialog box.

Join the computer silently to the Domain

Join the computer silently to the Domain

 

Or, in the command you want to use:

netdom join /d:mydomain.com Computertobeaddednamehere /ud:mydomain.com\administrator /pd:oil@22

Batch file for loop in other way

echo ***** Are you sure you want to add these accounts? *******
echo *** If not, press CTRL-C to terminate this batch file ***
pause
FOR %%X IN (NT1 NT2 NT3 NT4 NT5) DO NET COMPUTER \\%%X /ADD
FOR %%X IN (NT6 NT7 NT8 NT9 NT10) DO NET COMPUTER \\%%X /ADD
cls
echo ******* Machine Accounts Added ********
pause

Thursday, June 3, 2010

DNS Bulk ADD

use ease:--

For /F %a in (list.txt) do addaptr.bat %a

list.txt sample input is

addaptr.BAT DNSSERVERNAME COMPUTERSNAMETOBEADD.DOMAINNAME.COM IPADDRESS

addaptr.bat 10.0.0.20 QTEST.PADDYMADDY.COM 10.0.0.23

 

script:-

::  addaptr.bat
::
::  Purpose:         Add an A and PTR record using dnscmd.exe
::
::  Usage:           addaptr dnsserver fqdn ipadd
::
::                     dnsserver  DNS server's ip, hostname or "." if the
::                                DNS service is running on local machine
::                     fqdn       FQDN of the host you want the records
::                                to be added for (hostname.mydomain.com)
::                     ipadd      ip address of the host
:: __________________________________________________________________
::
@Echo Off
SetLocal

Set dnsserver=%1
Set fqdn=%2
Set ipadd=%3

If Not Defined ipadd (
  Echo Add an A and PTR record using dnscmd.exe
  Echo.
  Echo %~n0 dnsserver fqdn ipadd
  Echo.
  Echo   dnsserver  DNS server's ip address, hostname, or "." if the DNS
  Echo              service is running on local machine.
  Echo   fqdn       FQDN of the host you want the records to be added for
  Echo              ^(hostname.mydomain.com^)
  Echo   ipadd      ip address of the host
  Goto End
)

For /F "Tokens=1,* Delims=." %%A In ("%fqdn%") Do (
  Set hostname=%%A
  Set fzone=%%B
)
For /F "Tokens=1-4 Delims=." %%A In ("%ipadd%") Do (
  Set rzone=%%C.%%B.%%A.in-addr.arpa
  Set okt4=%%D
)

:: Add PTR record
DnsCmd %dnsserver% /RecordAdd %rzone% %okt4% PTR %fqdn%

:: Add A record
DnsCmd %dnsserver% /RecordAdd %fzone% %hostname% A %ipadd%
Echo Done.
Goto End

:Err
Type %TEMP%.\%~n0.log
Pause

:End
If Exist %TEMP%.\%~n0.log Del %TEMP%.\%~n0.log
EndLocal</pre>

Friday, May 28, 2010

excel VLOOKUP

=IF(ISNA(VLOOKUP(A:A,'[17.0.xls]BAU Accepted Servers'!$B:$B,2,0)),"Not In BAU servers List","Yes server In BAU servers List")

=IF(ISNA(VLOOKUP(A:A,'[17.0.xls]Decommissioned Server List'!$B:$B,2,0)),"Not In BAU servers List","Yes Server In Decommissioned list")

=VLOOKUP(A321,'[17.0.xls]Decommissioned Server List'!$B$2:$C$81,2,FALSE)

Thursday, May 27, 2010

Yes server In BAU servers List

a a Yes server In BAU servers List (=IF(ISNA(VLOOKUP(A:A,B:B:$B$99,2,0)),"Not In BAU servers List","Yes server In BAU servers List"))
b a Yes server In BAU servers List
a b Yes server In BAU servers List

 

 

=IF(ISNA(VLOOKUP(A:A,B:B:$B$99,2,0)),"Not In BAU servers List","Yes server In BAU servers List")

Friday, April 2, 2010

Thanks to Ajay for recollecting this – Virus Clean with the help of Super DAT File


How to scan for viruses in DOS

 

Step 1 - Download and Extract the current SuperDAT Files
  1. Click on the following link or type the URL into an Internet browser address bar:
    http://www.mcafee.com/apps/downloads/security_updates/superdat.asp?region=us&segment=enterprise
  2. Click the I Agree button (if needed) to verify you have a current support agreement with McAfee.
  3. English users, please click the link named sdatxxxx.exe (where 'xxxx' replaces the current SDAT version number) and save the file to your C:\ Drive.
  4. All others please select the appropriate localized language from the drop-down list, click the link named sdatxxxx.exe (where 'xxxx' replaces the current SDAT version number) and save it to your C:\ Drive.
  5. From the Taskbar, select Start and then Run.
  6. In the Open field, type command and click OK. A DOS command window will open.
  7. Type CD\ and press Enter. You should now be at a C:\ prompt.
  8. Type SDATXXXX.EXE /E C:\SDAT and press Enter. (Note: The 'x's should be replaced with the appropriate numbers of the file that was downloaded above.) This will create an SDAT folder on the C:\ drive, and extract the SDAT files to this folder.
    Note: Windows XP Users with Service Pack 2 installed will be presented with a security warning when attempting to extract the file. Please click Run to continue the extraction process.
    SDAT_securitywarning
  9. Once the C:\ prompt is displayed again, please type exit and press Enter.
Step 2 - Disable Windows System Restore

Windows XP utilize a restore utility that backs up and protects selected files automatically to the C:\_Restore folder. This means that an infected file could be stored there as a backup and VirusScan would be unable to delete these files. The System Restore utility must be disabled to remove any infected files from the C:\_Restore folder.

 

Windows XP
  1. Right-click the My Computer icon on the Desktop and click Properties.
  2. Click on the System Restore tab.
  3. Put a check mark in the box next to Turn off System Restore.
  4. Click the OK button.
  5. You may be prompted to restart the computer. Click Yes to restart.
    Note: To re-enable the System Restore utility, repeat the steps above and in step 3 remove the check mark from the box next to Turn off System Restore.
Step 3 - Boot the Computer to DOS
  1. If the computer is on: From the Taskbar, click Start, then Shutdown and choose Restart.
  2. If the computer is off, turn the computer on.
  3. When the opening splash screen appears, begin tapping the F8 key every second.
    Note: On some computers, if you press F8 too soon you will get a keyboard error. If this happens, press the F1 key to continue.
  4. The Windows 2000 (or XP) Advanced Options Menu will appear. Use the arrow keys to choose Safe Mode with Command Prompt.
  5. Login to your computer (if necessary).
  6. When the computer is finished booting, the c:\> prompt will appear on the screen.
    Note: If there is anything typed after c:\>, type cd\ and press Enter.
  7. Continue with the scan instructions below.
Step 4 - Scan the Computer
  1. At the c:\> prompt, type cd sdat and press Enter.
  2. Type scan.exe /adl /clean /all /sub /program /unzip /analyze /rptall /report report.txt and press Enter.

This will perform a virus scan, which will clean and delete any viruses you may have on your computer.

Explanation of DOS scan switches:
  • /all - Scans all files
  • /adl - Scans all local drives
  • /sub - Scans within subdirectories
  • /program - Enables Potentially Unwanted Program scanning
  • /unzip - Enables archive scanning
  • /analyze - Enables heuristics
  • /clean - Sets the automatic action for the scanner to Clean anything detected
  • /rptall - Enables verbose logging
  • /report=C:\scan.txt - Saves the verbose logging as a text file in the root of C: called scan.txt
Multiple Infections

After the scan has run, a summary report of the scan will be created in the sdat folder on the C:\ drive. If this summary reports that your computer had multiple infections, it is recommended that you run the scan again to make sure the computer has been completely cleaned.
To determine if an additional scan is needed, please complete the following steps:

Step 5 - Review the Scan Report
  1. Restart the computer into Normal Mode.
  2. Double-click the My Computer icon.
  3. Double-click the C:\ drive.
  4. Double click the sdat folder.
  5. Locate the file named report.txt and double-click to open.
  6. The report contains several lines that look similar to this:
    Scan_Summary
    If the top line named Possibly Infected has a number greater that 5, it is recommended that you run the scan in DOS again.
  7. If you need to run the scan again, repeat the above instructions for Boot the Computer to DOS and Scan the Computer.
Additional Information

Monday, March 29, 2010

Updates Performance Monitor counter : LODCTR

Updates Performance Monitor counter

 

LODCTR
    Updates Performance Monitor counter names and explain text for an extensible
counter

Usage:
    LODCTR [\\computername] filename
        computername is the name of the remote computer.
            Local machine is used if computername is not specified.
        filename is the name of the initialization file that contains
            the counter name definitions and explain text for an extensible
            counter DLL.

    LODCTR /S:<FileName>
        save current perf registry strings and info to <FileName>

    LODCTR /R:<FileName>
        restore perf registry strings and info using <FileName>

Note: any arguments with spaces in the names must be enclosed within
Double Quotation marks.