Tuesday, January 13, 2015

Delete a file or folder when the Windows path is too long

Recently, while working on one of the project we installed a utility from node.js. After playing around with the said utility / tool, when we tried to delete the folder, it started throwing the below mentioned error :-













 



The reason for this error is that Windows has a number of rules on the maximum lengths possible for directory names, path names and file names. The maximum length for a Windows path name is generally 260 characters.

After doing a lot of head hunting, we used the following process to delete the folder.

1. Create a folder anywhere in your system to use as a source (leave it empty).
2. Take back up from the folder you want to delete (if there is something important)
3. Open Command prompt
4. Type the following command. Modify the placeholders to suit your needs.

robocopy C:\path-to-source-empty-folder E:\path-to-folder-you-cant-delete /purge.









Note: If there are spaces in source or destination path in Step 4, the path must be enclosed by quotation marks.

5. After successful execution of the command, you will get execution report like the following




6. Everything inside the destination folder will be deleted forever.

You can also type robocopy in command prompt to see other options. Leave your comments to share which robocopy option you used.

If you enjoyed this post, We would be very grateful if you’d help it spread by emailing it to a friend, or sharing it on Twitter or Facebook. Thank you!
Read More..

Tuesday, January 6, 2015

Exchange 2013 - OWA login without Domain Name

While logging into Exchange 2013 through Outlook Web App (OWA), the default option is to log in with domainname\username.

















Sometimes it gets very annoying, considering the fact that the user has to enter domainname\username for each log-in. Many of us would simply want to log in with our username only.















The procedure to change domainname\username to username in Exchange 2013 is as follows:-
1. Connect to Exchange 2013 Admin Center.















2. Select Servers from left panel.



3. Select Virtual Directories from the top panel. Select OWA (Default Web Site) and click on Edit.



4. A pop up window opens up. Select Authentication from the left panel.




5. In the next window, the currently selected option in second group of radio buttons under “Logon format” is “Domain\user name”. Change it to “User name only”.

 6.  Click on Save button.


7. Next step is to reset the IIS. Open run window. The shortcut key is to use Windows Key + R. Type “cmd” and press enter. It will open command prompt.

8. Type iisreset /noforce. The /noforce parameter is recommended as a safeguard against data loss in case the IIS services cannot all be stopped within the one minute timeout period.


9. Open browser window and you can now log in with username only. Mission accompolished!!!

Important - The above steps will also change the log on method of Exchange Admin Center.

To read more about Restarting IIS, you can use the following link:-
http://technet.microsoft.com/en-in/library/cc758159(v=ws.10)

If you enjoyed this post, We would be very grateful if you’d help it spread by emailing it to a friend, or sharing it on Twitter or Facebook. Thank you!
Read More..