Home

Google
 

AT CMD Commnd


AT - Schedules commands and programs to run on a computer at a specified time and date. You can use at only when the Schedule service is running. Used without parameters, at lists scheduled commands.

Syntax
at [\\ComputerName] [{[ID] [/delete] | /delete [/yes]}]

at [[\\ComputerName] Hours:Minutes [/interactive] [{/every:Date[,…] | /next:Date[,…]}] Command]

Parameters

\\ComputerName
Specifies a remote computer. If you omit this parameter, at schedules the commands and programs on the local computer.
ID
Specifies the identification number assigned to a scheduled command.
/delete
Cancels a scheduled command. If you omit ID, all of the scheduled commands on the computer are canceled.
/yes
Answers yes to all queries from the system when you delete scheduled events.
Hours:Minutes
Specifies the time when you want to run the command. Time is expressed as Hours:Minutes in 24-hour notation (that is, 00:00 [midnight] through 23:59).
/interactive
Allows Command to interact with the desktop of the user who is logged on at the time Command runs.
/every:
Runs Command on every specified day or days of the week or month (for example, every Thursday, or the third day of every month).
Date
Specifies the date when you want to run the command. You can specify one or more days of the week (that is, type M,T,W,Th,F,S,Su) or one or more days of the month (that is, type 1 through 31). Separate multiple date entries with commas. If you omit Date, at uses the current day of the month.
/next:
Runs Command on the next occurrence of the day (for example, next Thursday).
Command
Specifies the Windows command, program (that is, .exe or .com file), or batch program (that is, .bat or .cmd file) that you want to run. When the command requires a path as an argument, use the absolute path (that is, the entire path beginning with the drive letter). If the command is on a remote computer, specify Universal Naming Convention (UNC) notation for the server and share name, rather than a remote drive letter.
/?
Displays help at the command prompt.
Remarks
Schtasks is another command-line scheduling tool that you can use to create and manage scheduled tasks. For more information about schtasks, see Related Topics.

Using at
To use at, you must be a member of the local Administrators group.

Loading Cmd.exe
At does not automatically load Cmd.exe, the command interpreter, before running commands. If you are not running an executable (.exe) file, you must explicitly load Cmd.exe at the beginning of the command as follows:

cmd /c dir > c:\test.out

Viewing scheduled commands
When you use at without command-line options, scheduled tasks appear in a table formatted similar to the following:

Status ID Day Time Command Line
OK 1 Each F 4:30 PM net send group leads status due
OK 2 Each M 12:00 AM chkstor > check.file
OK 3 Each F 11:59 PM backup2.bat

Including identification number (ID)
When you include identification number (ID) with at at a command prompt, information for a single entry appears in a format similar to the following:

Task ID: 1

Status: OK

Schedule: Each F

Time of Day: 4:30 PM

Command: net send group leads status due
After you schedule a command with at, especially a command that has command-line options, check that the command syntax is correct by typing at without command-line options. If the information in the Command Line column is incorrect, delete the command and retype it. If it is still incorrect, retype the command with fewer command-line options.

Viewing results
Commands scheduled with at run as background processes. Output is not displayed on the computer screen. To redirect output to a file, use the redirection symbol (>). If you redirect output to a file, you need to use the escape symbol (^) before the redirection symbol, whether you are using at at the command line or in a batch file. For example, to redirect output to Output.text, type:

at 14:45 c:\test.bat ^>c:\output.txt

The current directory for the executing command is the systemroot folder.

Changing system time
If you change the system time at a computer after you schedule a command to run with at, synchronize the at scheduler with the revised system time by typing at without command-line options.

Storing commands
Scheduled commands are stored in the registry. As a result, you do not lose scheduled tasks if you restart the Schedule service.

Connecting to network drives
Do not use a redirected drive for scheduled jobs that access the network. The Schedule service might not be able to access the redirected drive, or the redirected drive might not be present if a different user is logged on at the time the scheduled task runs. Instead, use UNC paths for scheduled jobs. For example:

at 1:00pm my_backup \\server\share

Do not use the following syntax, where x: is a connection made by the user:

at 1:00pm my_backup x:

If you schedule an at command that uses a drive letter to connect to a shared directory, include an at command to disconnect the drive when you are finished using the drive. If the drive is not disconnected, the assigned drive letter is not available at the command prompt.

Tasks stopping after 72 hours
By default, tasks scheduled using the at command stop after 72 hours. You can modify the registry to change this default value.

Start Registry Editor (regedit.exe).
Locate and click the following key in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule
On the Edit menu, click Add Value, and then add the following registry value: Value Name: AtTaskMaxHours Data type: REG_DWORD Radix: Decimal Value Data: 0. A value of 0 in the value data field indicates no limit, does not stop. Values from 1 through 99 indicates the number of hours.
Caution

Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.
Task Scheduler and the at command
You can use the Scheduled Tasks folder to view or modify the settings of a task that was created by using the at command. When you schedule a task using the at command, the task is listed in the Scheduled Tasks folder, with a name such as the following:At3478. However, if you modify an at task through the Scheduled Tasks folder, it is upgraded to a normal scheduled task. The task is no longer visible to the at command, and the at account setting no longer applies to it. You must explicitly enter a user account and password for the task.

Examples
To display a list of commands scheduled on the Marketing server, type:

at \\marketing
To learn more about a command with the identification number 3 on the Corp server, type:

at \\corp 3
To schedule a net share command to run on the Corp server at 8:00 A.M. and redirect the listing to the Maintenance server, in the Reports shared directory, and the Corp.txt file, type:

at \\corp 08:00 cmd /c “net share reports=d:\marketing\reports >> \\maintenance\reports\corp.txt”
To back up the hard drive of the Marketing server to a tape drive at midnight every five days, create a batch program called Archive.cmd, which contains the backup commands, and then schedule the batch program to run, type:

at \\marketing 00:00 /every:5,10,15,20,25,30 archive
To cancel all commands scheduled on the current server, clear the at schedule information as follows:

at /delete
To run a command that is not an executable (that is, .exe) file, precede the command with cmd /c to load Cmd.exe as follows:

cmd /c dir > c:\test.out

How to Adjust the Visual Effects in Windows XP for Better Performance


How to modify visual effect on Windows XP for performance.

  1. Right Click on My Computer on the desktop of the Windows XP machine.
  2. Select properties.
  3. Select the Advanced tab -> Performance -> Settings
  4. Select the Adjust for best performance radio button which unchecks all visual effect features.

The Visual Effects tab in the Performance Options dialog box allows you to select the settings you want to use for the visual effects and performance of Windows XP. with an easy way to set your preferences for the and performance of Windows XP. You can choose one of the following options:

  1. Let Windows Windows choose what’s best for my computer
  2. Adjust for best performance
  3. Adjust for best appearance
  4. Custom

The custom option allows you to choose which visual effect you want toenable/disable. Adjusting for best apperance uses all of the effects listed; adjusting for best performance uses none of them.

RDP/Citrix clients cannot connect to Terminal Server - Protocol Driver Error

You may receive one of the following error messages:
The remote session was disconnected because the local computer’s client access license could not be upgraded or renewed. Please contact the server administrator.
• The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact your server administrator.
• The remote session was disconnected because there were network problems during the licensing protocol. Please try connecting to the remote computer again.
• Licensing error occurred while the client was attempting to connect. (Licensing timed out.) Please try connecting to the remote computer again.
• Because of a security error, the client could not connect to the terminal server. After making sure that you are logged on to the network, try connecting to the server again.

Protocol Driver error

A client user/device may face this issue if when a the relevant Terminal Services temporary/full CAL has expired and cannot be renewed or upgraded. The renewal or upgrade process will fail if the client that is logged in does not have write access to the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing.

Provide users with full control of the above key or at least write access.

How to Determine the Version of Citrix Presentation Server on Windows Installed


How to Determine the Version of Citrix Presentation Server on Windows Installed

Procedure

If the IMA Service is running:

  1. Open the Presentation Server Management Console.
  1. Expand the Servers node, and then right-click on the appropriate server and select Properties from the context menu.
  1. Click Information in the left-pane of the window to see the Product Version and Build Number, Installation Date, and any Feature Releases or Service Packs installed.

If the IMA Service is not running:

  1. Open the Citrix Connection Configuration utility (mfcfg.exe).
  1. Click Help > About Citrix Connection Configuration. The version and build numbers of Windows and Presentation Server are shown.

I Cannot Authenticate to ADAM with my Application


How do you troubleshoot the issue where you cannot authenticate to Active Directory Application Mode with you application? Well here are a few steps to follow:

1. Can a user authenticate to ADAM via LDP, using the server name and port number.

2. IS the OS running ADAM Windows XP? If so check the following registry key to make sure it is set to Zero
HKLM\System\CCS\Control\LSA\forceguest

3. Are we doing an anonymous bind? By Default anonymous binds are disabled. To enable anonymous LDAP operations in ADAM, you must set the seventh character of the dsHeuristics value to

Allow anonymous binds can be enabled by changing DsHeuristics
value See: http://support.microsoft.com/kb/326690

4. Is the ADAM service running? Check the System Event log for errors.

5. What type of user are you authenticating with? ADAM User, Proxy User, Local User, Windows Security Principal.

6. If a Proxy User or Windows Security Principal is being used then is the domain available?
Check secure channel with the domain for the ADAM server.
Check network access, Name resolution, DNS to a domain
controller. Is there a domain controller available? Can the user logon to the domain with a workstation without cached credentials? Is replication both ADAM and AD working (repadmin). Basic workstation/logon troubleshooting techniques applies here.

7. If the user in an ADAM user? This is a Simple Bind and must be done over SSL. Since the password is sent in plaintext

8. Is the ADAM user account locked out or disabled: Check the attribute on the user object msDs- userpassworexpired, msDS

Technorati Tags: ,

-UserAccountAutoLocked or msDS-UserAccountDisabled(This will default to true if you have a password policy enabled and the password is blank or does not meet the password policy requirements)

9. Are we connecting over SSL? If so can you connect over normal LDAP? Check the certificates.

See Also: Troubleshooting ADAM Installation

Troubleshooting Active Directory Application Mode Installation


If you are experiencing ADAM setup failures then there a few steps that should be completed and general questions that need to be answered before proceeding with the troubleshooting process.

  1. Is the computer a member of the domain or in a workgroup?
  2. Are there any events generated in the event logs that provide any details regarding ADAM?
  3. Gather the debug logs %windir%\debug\adamsetup.log and %windir%\debug\adamuninstall.log.
  4. Check the registry key

HKLM\Software\Microsoft\Windows\CurrentVersion\ADAM_Installer_Results for any error codes. These keys are not found if there was not a failure.Here a list of common issue and possible solutions:

ISSUE: ERROR_LOGON_FAILURE when trying to bind to it,

Check that the following registry key must be changed to zero and the machine

rebooted: HKLM\Control\CurrentControlSet\Control\LSA\forceguest

ISSUE: Error code: 0×800706fd The trust relationship between this workstation and the primary domain failed.

When you are installing ADAM when not connected to the domain: Check if you are trying to install the ADAM service with the NetworkService account. If so you will need to connect to the domain to allow this account to resolve or choose a local account for the ADAM service account.

ISSUE: Error: ADAM Setup could not complete because shortcuts could not be added to the Start menu.

Try and delete the following key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows

\CurrentVersion\ADAM_Shared

ISSUE: “ The name referenced is invalid”

ADAM user added to administrator group of schema or configuration container you get “ The name referenced is invalid” This is by design. An ADAM user cannot be an administrator of the whole instance.

See Also: Active Directory

What are the subfolders of Windows XP system32 directory?


On a Windows XP computer (like every other Windows system) the %system%/system32 folders contains all the core operating systems files. These files are organized with subfolders of the %system%/system32 directory. Here are a list of the folders with the relevant descriptions:

Folder Name                                                             Contents
1025, 1028, 1031, 1033,                          Localization (language) files for a specific language.

1037, 1041, 1053, 2052, 3076

CatRoot                                                       Catalog files and signature files
CatRoot2                                                     Catalog files and signature files
Com                                                             Component Object Model (COM) objects
Config                                                          Registry files and event logs
Dhcp                                                            DHCP database files
DirectX                                                       DirectX files
Dllcache                                                     Windows File Protection backup files
Drivers                                                       Installed drivers
Export                                                        Encryption Pack installation files
Ias                                                              Internet Authentication Service files
Icsxml                                                       Universal Plug and Play files
Ime                                                            Language files
Inetsrv                                                      Internet Information Services files
Macromed                                                Macromedia files
Microsoft                                                 Cryptography files
MsDtc                                                      Microsoft Distributed Transaction Coordinator files
Mui                                                           Multi-user interface files
Npp                                                           Network Monitor and trace files
Oobe                                                         Windows Welcome files
Ras                                                            Remote access server encryption files
Restore                                                     Data files or System Restore related files
Rpcproxy                                                 RPC Proxy files (RPCProxy.dll)
Setup                                                        Optional component manager files
ShellExt                                                   Shell extension components
Smsmsgs                                                 SMS Site Component Manager files
Spool                                                        Print spooling files
Usmt                                                        User State Migration tool
Wbem                                                     Web-based Enterprise Management data files.

This information was taken from the Windows Xp Reskit.

How do I fix "No permission to perform this operation." VMWare Server Error

After the reboot of a host VMWare server you may receive the error message “No permission to perform this operation” when attempting to start a VM machine.

Here are the steps to solve the problem:

  1. On the host Windows server, navigate to the folder that contains the VMWare configuration files and verify that the relevant user has full NTFS permission on the folder.
  2. Right click on the target VM machine in the VMWare console and select “Remove from Inventory.” This will remove the Vm machine from the list of virtual machines.
  3. In the VmWare server console select File -> Open -> Browse to the folder that contains the relevant *.vmx virtual machine configuration file.
  4. Select Ok. The problem virtual machine will reappear in the VmWare server console.
  5. You should now be able to power on (start) the VM machine.

How do I fix the error Event ID 4321 Source NetBT?

If you have ever received the following error messages in your environment then these steps may help to get rid of the problem:

Event ID: 4321
Source NetBT
Type Error
Description The name “<server name>” could not be registered on the Interface with IP address <ip address 1>. The machine with the IP address <ip address 2> did not allow the name to be claimed by this machine.

  1. Stop and disable the computer browser service on the offending machine if you DO NOT have WINS in your environment.
  2. If you are in a WINS environment then add the WINS server entry in the network settings of the offending computer.
  3. Check if there is conflict between two machine with the same NetBios name.
  4. Delete the offending NETBIOS name on the WINS server
  5. Ensure the computer is in the correct network subnet
  6. Check network mask of the offending machine

How do I refresh Active Directory policy on Windows 2000 computer?

From http://support.microsoft.com/kb/227302 - Using SECEDIT to Force a Group Policy Refresh Immediately

• SECEDIT /REFRESHPOLICY MACHINE_POLICY /ENFORCE: Immediately imposes group policy object settings located within the “machine” node of relevant group policy objects.
• SECEDIT /REFRESHPOLICY USER_POLICY /ENFORCE: Immediate imposes group policy object settings located within the “User” node of the relevant group policy objects.

See:More at WindowsWideOpen.com