Monday, October 5, 2015

Orphan Shared Drives Removal

Problem :

When accessing Windows network drive, it did not ask for login and straight away display a pop out stating that you do not have permission to access the drive. Please contact administrator.

Solutions :

  1. Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices section of the Windows registry.
  2. Locate the mapped network drive that you want to clear. Each drive will have a registry entry labeled as "\DosDevices\" followed by the letter assigned to it.
  3. Right-click on the drive entry and select the "Delete" option from the contextual menu, then confirm your decision to remove the mapped drive letter assignment.
  4. Restart your Computer to reread the Registry.

Configuring Test mail in Microsoft Windows Powershell

By Modifying the script to your preferences, a test mail can be send from Windows PowerShell

$EmailFrom = “esmondeyong@gmail.com”
$EmailTo = “admin@titanfour.com.my”
$Subject = “Sent from PC PowerShell”
$Body = “What do you want your email to say”
$SMTPServer = “smtp.gmail.com”
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“username”, “password”);
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

  • $EmailFrom = Sender's Email address.
  • $EmailTo = Recipient’s Email address.
  • $Subject = The subject for the Email that you want to send.
  • $Body = Content for the Email.
  • $SMTPServer = Your email SMTP Server
Change the following under $SMTPCleint.Credentials

  • username = Email username
  • password = Email password