Sunday, September 14, 2014

Start up for Win 7

For current user:

C:\Users\username\AppData\Roaming\Microsoft\Window s\Start Menu\Programs\Startup

For all users:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Wednesday, July 23, 2014

How to Setup Email Notifications on Dell OpenManage


How to Setup Email Notifications on Dell OpenManage
https://shuvocse5.blogspot.com/2014/07/how-to-setup-email-notifications-on.html

All Dell servers come with Dell OpenManage Server Administrator software which has the ability to monitor and display system level indicators. Additionally, through the Alert Management tab you can configure actions to execute whenever an alert is triggered. Unfortunately there is no vehicle for applying uniform notifications to all events, so we are going to provide a script which configures all the alert actions to send an email notifying you of the respective event.
Top of Form
Bottom of Form
How it Works
The script is very simple. When an event is triggered, Dell OpenManage executes the specific application, then the application connects to an external SMTP Server, and send the email with the message of the event.
Requirements:
-Dell Server with OpenManage Installed
-Microsoft .Net Frameworks v2.0 (Download Here)
-DellSMTPNotify Application (Download Here)
-DellSMTPNotify Alert List (Download Here)
Step 1:
Extract files to C:\DellSMTPNotify
Edit Config.xml and configure DefaultEventSettings to your SMTP server.

Now we are going to test the SMTP settings by running the script. Open command prompt and navigate to C:\DellSMTPNotify. Then type the following: “DellSMTPNotify.exe 1“.
DellSMTPNotify associates numbers to messages. Looking at config.xml, you can customize the messages. In this case, “1″ would send message “Message from server: Watchdog ASR”.

You should have received an email alert. If you didn’t receive an email, check your SMTP settings in config.xml.
Note: Sometimes emails are delivered to junk box.

If you didn’t recieve an email, re-check your config.xml SMTP settings.
Step 2:
Now that we have our DellSMTPNotify.exe working properly with our SMTP settings. We can now get it to work with Dell OpenManage.
Login to Dell OpenManage and navigate to Alert Management

Under Alert Actions, select Watchdog ASR.
Under “Set Alert Actions for Watchdog ASR”, enable “Execute application.” In the whitebox, place the Abolute patch to DellSMTPNotify.exe with code to Watchdog ASR. The code for Watchdog ASR is 1, and would place the following “D:\DellSMTPNotify.exe 1“.

Now we have setup email alert for Watchdog ASR. We will have to do the same thing for the rest of the alerts.
Top of Form
Bottom of Form
Step 3:
Once we have setup the email alerts, now we have test the configuration. We want to get Dell OpenMange to trigger an alert and so would execute our application. The safest test we can do on a production server is thermal settings.
First we have to ensure that Thermal Shutdown is disabled. Under Shutdown -> Thermal Shutdown, set “Thermal Protection Shutdown Severity” to disabled.

From left panel, navigate to System -> Main System Chassis -> Temperatures. Select probe name “System Board Ambient Temp”.

From here, we want to get OpenMange trigger an event. One way is to force the Minimium Warning Threshold to be higher that the current reading. To do this, we click on “Set to Value” and change Minimium Warning Threshold to 1 degree higher than current reading. In our case, our current reading is 24.0 C, and so we place value of 25.0 C for Minimium Warning Threshold.

You should have recieved an email alert from OpenManage in regards to Temperature Probe Warning. This proofs that email alert is setup on Dell OpenManage. You can now change the Minimium Warning Threshold back to default.

Tuesday, July 22, 2014

Make a list of all hidden system files and folders



In the rare eventuality that you forget the name of the folder, but know the location – or vice versa, you can run the following command.
attrib C:\*.* /s|find “A  SH”>C:\hiddensystemfiles.txt&notepad C:\hiddensystemfiles.txt
This will output the list of all hidden system folders on your C drive.
hidsysfiles 400x273 Change File Attributes, Create super hidden private files & folders in Windows using attrib.exe
You can of course modify the syntax suitable to search for only select locations also.

Create a super hidden private file or folder

As a Windows end-user, we can use this feature to create a hidden private file or folder on our Windows computer. Lets say you have a normal folder named Personal on your desktop, and you want to make it hidden.
To do so, open command prompt, and type the following in it and hit Enter. Here User_name is my Username, so make sure you use yours in its place.
attrib +s +h C:\Users\User_name\Desktop\Personal
This will make the folder a ‘system’ folder AND a ‘hidden’ folder. However, if you use “-s +h” it will make the folder an ordinary hidden folder only.

To see it, you have to via Folder Options, check Show hidden files, folders and drives and uncheck Hide protected operating system files. Or via CMD you can simply use “-s -h” instead of the above command.
folder hidden options 329x400 Change File Attributes, Create super hidden private files & folders in Windows using attrib.exe
Ofcourse this method is not fool-proof, but its good enough a way to keep your folders secret and hidden from most prying eyes

To change folder Attribute



open a command prompt window and type in "ATTRIB ['file path']\['file name'] -s -h"

For Example: "ATTRIB C:\USERS\ADMIN\DOWNLOADS\7z920-x64.msi -S -H" and press enter.

You can also use a wildcard (*)

For example: "ATTRIB C:\USERS\ADMIN\DOWNLOADS\FILE* -S -H" and this selects every file in that path that starts with "FILE".

replace "-" with a "+" to add the above attributes to a file.


Windows operating system offers four attributes for files and folders. They are:
  • Read-only – r : These are readable, but cannot be changed
  • System – s : For use by the operating system and not normally displayed in a directory listing
  • Hidden – h : They are not displayed in a directory listing by default
  • Archive – a : For backing up or copying files

Monday, July 14, 2014

Clearing Address Book Cache



Steps to Clearing Address Book Cache

  1. Open Outlook and Select File
  2. Select Account Settings 
  3. Select Data Files and Open File Location
  4. Select Offline Address Books
  5. Exit Outlook by select File and then Exit
  6. Highlight the folders within the Offline Address Books Folders and Delete them.
  7. Open Outlook

Downloading an Offline Exchange Address Book in Outlook for Windows



  1. Locate the offline address book.
    • In 2007, from the Tools drop-down list, select Send/Receive.
    • In 2010 / 2013, under the File tab, click the Account Settings button.
  2. Select Download Address Book.
  3. Click OK.

Sunday, July 6, 2014

Exchange Management Console: Disable and Remove


In the Exchange Management Console when a mailbox is selected the actions pane shows two tasks; Disable and Remove.
Exchange 2010 mailbox tasks: Disable and Remove
These two tasks do the following:
  • Disable will remove the Exchange attributes for the user account but leave the user account in Active Directory.  The mailbox is then also left in the Exchange mailbox database until the retention period has lapsed, then it is removed permanently.
  • Remove will remove both the Exchange mailbox and the user account from Active Directory
Unfortunately some admins wrongly assume that Disable is for temporarily disabling mailboxes, and that Remove will only remove the mailbox and not the user account.
If you’re having trouble remember the correct usage of these tasks think about it in terms of the Exchange Management Shell commands and how they pair up.
  • Enable-Mailbox is for creating a mailbox for an existing user, and Disable-Mailbox removes only the Exchange attributes from the user account
  • New-Mailbox is for creating a new AD user and mailbox at the same time, and Remove-Mailbox removes both the mailbox and the user object.
But if thats too hard just to try to remember that Disable is the safest option, because you can quickly reconnect the mailbox to the user again if it is still within the retention period.

How to List all Disconnected Exchange 2010 Mailboxes:


How to List all Disconnected Exchange 2010 Mailboxes:
The Exchange Management Shell lets us find the disconnected mailboxes in the organization.

[PS] C:\>Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto


Disconnected mailboxes can be reconnected to an Active Directory user account. If no account exists for the person you want to reconnect a mailbox to then you would first create the account in Active Directory. Then you can reconnect the mailbox.

Restoring a User Mailbox after being Disabled


The following is a shortcut for restoring a mailbox in exchange 2010 that should work within 5 days or less
Procedure:
• Connect to a Mail Server and run the EMC(Exchange Management Console)
• Right click “Disconnected Mailbox” and select “View Exchange Management Shell Command Log…”
• Maximize the window to view all commands that have been run, and navigate to the Command example: 'domain.com/users/.../User Name' | Disable-Mailbox
• Now open the Exchange Management Shell, and paste the command in the Shell and change Disable-Mailbox to Enable-Mailbox and press enter.
• Now go back to “Mailbox” and refresh the list and confirm that the mailbox in question is back in the list.

Thursday, July 3, 2014

Service Tag Finder

Open cmd as Administrator then run bellow command
wmic /node:192.168.1.17 csproduct get identifyingnumber

Get service TAG from Dell Pc


Obtain Service Tag locally with command line

In the command prompt type the following and press Enter/Return.
wmic csproduct get vendor,name,identifyingnumber

You can also use
wmic bios get serialnumber

Thursday, June 19, 2014

Address Resolution Protocol (ARP) and it's Anatomy


Address Resolution Protocol (ARP) :
  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.
  • To minimize ARP broadcast traffic on your network, a cache of hardware-to-software address mappings is maintained for future use. This cache contains the following two types of entries:

    • Dynamic ARP cache entries

      These entries are added and deleted automatically during normal use of TCP/IP sessions with remote computers. Dynamic entries age and expire from the cache if not reused within 2 minutes. If a dynamic entry is reused within 2 minutes, it may remain in the cache and age up to a maximum cache life of 10 minutes before being removed or requiring cache renewal by using the ARP broadcast process.
    • Static ARP cache entries

      These entries are added manually by using the arp command with the -s option. Static entries remain in the ARP cache until either the computer is restarted, or the interface is reinitiated. Examples of some of the events that cause an interface to be reinitiated are:
  1. The interface is Disabled, and then Enabled.
  2. The Repair feature is used.
  3. The commands ipconfig /release and ipconfig /renew are given.
  4. The computer awakes from a suspend or hibernation state.
  5. You removed and replugged a network cable or moved a computer out of and back into wireless range.
  6. ARP cache entries can be deleted manually by using the arp command with the -d option.

    Example: arp -d 192.168.0.1
    Removes ARP mappings for 192.168.0.1 on all interfaces.
    

How to Add a Static entry in address resolution protocol (ARP)


Adds a static entry:
Start-->run-->cmd-->
 arp -s 157.55.85.212   00-aa-00-62-c6-0

How to know all ip addresses and MAC(media access control) Addresses in a network

address resolution protocol (ARP)
Login in your DNS server:
Start-->run-->cmd-->arp -a

How To change Logon server via Command Line



How To change Logon server Name through Command Line:

echo %logonserver%
set  logonserver=\\server1

set logonserver

 open Command Prompt
*******************************************************
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\user>echo %logonserver%
\\ServerName1

C:\Users\user>set logonserver
LOGONSERVER=\\ServerName1

C:\Users\user>set logonserver=\\ServerName2

C:\Users\user>set logonserver
LOGONSERVER=\\ServerName2

C:\Users\user> echo %logonserver%
\\ServerName2

*************************************************************
You are invited to see below video:
How to manage user account in Active Directory

Create New Mailbox and AD User Account in Exchnage

Never lose your Files/Data

Never Lose Contacts -android phones


set command to show windows information



Set:
C:\Users\administrator.ULC>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\administrator.domain_name\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=TID-L-177
ComSpec=C:\Windows\system32\cmd.exe
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\administrator.Domain_name
LOCALAPPDATA=C:\Users\administrator.Domain_Name\AppData\Local
LOGONSERVER=\\server_name
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Program Files\Dell\DW WLAN Card;;C:\Windows\system32;C:\Windows;C:\Windo
ws\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mi
crosoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS
\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\
;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ADMINI~1.ULC\AppData\Local\Temp
TMP=C:\Users\ADMINI~1.ULC\AppData\Local\Temp
USERDNSDOMAIN=example.COM
USERDOMAIN=example
USERNAME=Administrator
USERPROFILE=C:\Users\administrator.example
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
windir=C:\Windows


 set l:
C:\Users\administrator.Domain_name>set l
LOCALAPPDATA=C:\Users\administrator.Domain_name\AppData\Local
LOGONSERVER=\\Server_name



set a

C:\Users\administrator.Domain_name>set a
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\administrator.Domain_name\AppData\Roaming



set p
 C:\Users\administrator.Domain_Name>set p
Path=C:\Program Files\Dell\DW WLAN Card;;C:\Windows\system32;C:\Windows;C:\Windo
ws\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mi
crosoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS
\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\
;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public

Wednesday, June 4, 2014

How to Uninstall McAfee Frame package

Run bellow command from command line to uninstall McAfee Frame Package:

C:\Users\users1>cd ..

C:\Users>cd ..

C:\>"c:\programe files\Mcafee\common Framework\frminst.exe" /forceuninstall

Error 14: No enough space to run this operation while runnig DNS server service in windows server 2003


It is due to  a corrupted winsock.
Run bellow command from command prompt with administrative privilege:
netsh winsock reset
then reboot and check.

The system cannot log you on due to the following error: The RPC server is unavailable || Windows Server 2003


Try Bellow :
   1. Incorrect DNS settings.

     2. Incorrect Time and Time zone settings.

     3. The "TCP/IP NetBIOS Helper" service isn't running.

     4. The "Remote Registry" service isn't running

then restart.

If not work then.
1. Take backup of registry
2.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

create DWORD then put Hex value=1
IgnoreRegUserConfigErrors =Dword:1

Tuesday, June 3, 2014

Your Account is configured to prevent you from using this computer. Please Try another computer



Find the user in Active Directory Users and Computers, right click on the account, then click on the Account Tab of that User’s Properties, click the "Accounts" tab then clcik “Log On To” button, the change the option, “The Following Computers” to “All computers” or just add the Computer Name you want…
After that you should be able to login with the affected user.

Monday, April 21, 2014

Flush Transaction Logs in Exchange


Flush Transaction Logs in Exchange:


Your Exchange Logs get deleted when your database backup completes. When your exchange server receives an email it dumps the email to the transaction logs. When the exchange server free's up it then plays these logs into the database. Sometimes Exchange may not have played all the log files into the database, so you cant simply "delete" them.

1. Dismount the all Exchange Mailbox Databases under the Storage Group you wish to clean up.

2. Use the ESEUTIL program to view if all the logs have been played into the Exchange Database.

eseutil /MH database.edb



If all the databases are in a Clean Shutdown or Consistent state, you may remove all the transaction logs. Older versions say "Consistent", New Versions of Exchange say "Clean Shutdown". In my screenshot I'm using Exchange 2010.

Note: If it is not in a "Clean Shutdown" or "Consistent" state, you can use eseutil to reply the log files into the database or remount the database and allow Exchange to replay them.
Caution: Do not delete log files if the state is not "Clean Shutdown" or "Consistent" as you will loose email!

3. Delete all log files including the chk file. The checkpoint file keeps track of which log files have been and have not been played into the database. Since there are no log files anymore, the checkpoint is not needed.

Caution: If your database is in the same directory as your log files be careful you dont accidently delete your edb database file as well!

4. Re-mount your exchange databases in your storage group. This will automatically create a new checkpoint file ready to go!

Sunday, April 13, 2014

Removing saved credentials

Removing Saved Credentials (passwords) from Windows XP, Windows Vista, or Windows 7:

 

To removed cached credentials

1. Click Start and select Run
2. In the Open field type "rundll32.exe keymgr.dll, KRShowKeyMgr"
3. Once the Stored Usernames and Passwords interface opens you can select any of the entries and select Properties to view the existing information
4. To remove a saved password you can select one of the entries and select Remove. A confirmation screen will appear. Click on OK and the account will be removed
5. You can add additional saved passwords as well by clicking on the Add button and entering the appropriate information
6. Repeat the steps above as needed to add, remove or edit saved passwords
7. When you are done using the interface click the Close button
That's all there is to it. This is a great way to see if, while working on a machine, you've accidentally saved your credentials, as any username/password combinations in this list will survive a reboot, and still be available.

 

Wednesday, April 9, 2014

Cd/dvd Drive not showing (Solved)

CD/DVD Drive Not showing but power okay and Driver is Updated. In device manager showing registry file corrupted:

Note: Before Doing any change in Registry file please take a full/partial backup

1. Close all open programs
2. Click on Start, Run, and type REGEDIT and press Enter
3. Click on the plus signs (+) next to the following folders:

HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Control
Class
{4D36E965-E325-11CE-BFC1-08002BE10318}

4. This folder is the DVD/CD-ROM Drive Class Description in the registry. Look for any of the following names in the right hand column.

UpperFilters
LowerFilters
UpperFilters.bak
LowerFilters.bak

5. If any of the above keys shown in step 4 are listed, right-click on them and choose Delete
6. After deleting the keys, close the Registry Editor
7. Reboot your computer
8. Open My Computer and check to see if your CD or DVD drives have returned.

Assign IP while booting

Assign IP while Booting a PC/VM: Mostly useful for Windows Backup restore
netsh interface ipv4 show interfaces  //Will Show found Interfaces
netsh interface ipv4 set address name <ID from interface list> source=static address=<preferred IP address> gateway=<gateway address>  // General Command

For Windows 2008 r2
>wpeinit
>netsh interface ipv4 add address name="Local Area Connection" address=192.168.0.100 mask=255.255.255.0 gateway=192.168.1.200 1




Note: May not work in Windows Server 2008.

Route command for windows and Linux

Route Add Command For windows and Linux:
For Windows:
 Start-->Run-->cmd(Open as Administrator)
>>route print  //will show existing Routing Information
>>route add –p 172.25.61.70 mask 255.255.255.255 192.168.1.200

For Linux System:
Connect with server using putty
route add -net 192.168.2.0 netmask 255.255.255.0 eth1
192.168.2.0-->Destination Network Address
eth1-->Local network Address/ Ethernet


Tuesday, April 8, 2014

How to enable telnet


How to enable Telnet Client in Windows 7:


Steps

To enable Telnet Client on Windows 7, follow these steps :
  1. Click on Start    then left (right click if you have reversed your mouse buttons) click once on Control Panel
  2. From Control Panel, click on Programs
  3. Under Programs and Features, click on Turn Windows Features on or off
  4. From the Windows Features window, using the slider, scroll down till you reach Telnet Client, select the checkbox beside it, then click on OK
    The selected feature will be installed.

    Once it is installed, the Windows Features windows will be closed.
  5. To confirm that Telnet is installed, open command prompt and type telnet /?

Monday, April 7, 2014

Password prompt in Outlook

 Outlook users get repeated pop-up dialogs for Authentication:

Outlook users with a single mailbox may get repeated pop-up dialogs asking for password re-submission even if their password is present and "remember" is checked. When they click "ok" mail proceeds to work even though they have supplied nothing new. When this happens, just follow these three steps or have your system administrator help you do it.

Back Up The Registry

  • Click Start, Run, Type 'regedit' (you may have to use regedt32 to change permissions) and click OK.
  • Click the pluses next to:
    • HKEY_CURRENT_USER
    • Software
    • Microsoft
  • Right click 'Protected Storage System Provider' and select 'Export'
  • Give the key a unique name that you will remember in case you need it later and save the file someplace where you can find it such as your desktop.
Change the Permissions
  • Right click 'Protected Storage System Provider' and select 'Permissions'
  • Select the user currently logged on and set 'Read' and 'Full Control' permissions to 'Allow'
  • Click 'Advanced' and select the 'Permissions' tab
  • Select the user currently logged on, make sure 'Full Control' is listed in 'Permissions' and that 'This Key' and 'Subkeys' are listed in 'Apply To'
  • Check the box for 'Replace Permission Entries on all Child Objects with Entries Shown Here that Apply to Child Objects'
  • Click 'Apply' and 'Yes' when asked if you are sure
  • Click 'Ok' and 'Ok' to return to the Registry Editor
Delete the Key
  • Click the plus next to the 'Protected Storage System Provider' key
  • Right click the user sub-key folder that looks like a long string of numbers with dashes
  • Click 'Delete' and then 'Yes' when 'Confirm Key Delete' appears
  • If an identity has a sub-key under the 'Protected Storage System Provider' key, delete all the sub-key folders, too.
  • Close the Registry and Reboot