Decrypt the password from RDCMan.exe using PowerShell Script. The script is used for retrieving the password from RDCMan.exe. The script is only working within the profile from which the original .rdg file was generated. Because The string is encoded with the local user profile that is used to set the password in the RDG file. Therefore the string cannot be decrypted from another user account than yours. Comments: <# 1. Rename the RDP.rdg file to RDP.xml in the original folder or you may copy it to a different location. 2. Rename the RDCMan.exe to RDCMan.dll in the C:\Temp folder in the original folder or you may copy it to a different location. #> Import-Module 'Path\to\RDCMan.dll' $EncryptionSettings = New-Object -TypeName RdcMan.EncryptionSettings $xml = [xml](Get-Content "Path\to\RDP.xml") # Path to RDP.xml file. $passwords = Select-Xml -Xml $xml -XPath "//password" $usernames = Select-Xml -Xml $xml -XPath "//userName" forea...
How to Enable Recycle Bin on Mapped Drive. Here is the solution for enabling Recycle Bin on Mapped Drive. I have tested it in My existing environment Windows Server 2019 and Windows Server 2012 and it's running fine. Step 1. Press Win+R and type regedit and hit the enter key. Step 2. Goto " HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions " Step 3. Press Right Click on Mouse and Create New Key under FolderDescriptions and paste " {9147E464-33A6-48E2-A3C9-361EFD417DEF} " as value. Step 4. After creating the key Right Click under " {9147E464-33A6-48E2-A3C9-361EFD417DEF} " and Create New REG_DWORD-32Bit with Name = Category and set Value to 4. Step 5. Create New String with Name = RelativePath and set the value to Y:\ (Note: Replace volume letter Y with your existing letter. ) Step 6. Create New String with Name = Name and set the value to YDrive Step 7. Goto " HKCU\Software\Microsoft\Windows\CurrentVersion\Exp...
PowerShell script for Windows Server. This script is used for fire and Email notification on any user login via Public IP. Steps: 1. Save the script with the name EmailNotification.ps1. 2. Create a Basic Task via Task Scheduler. Enter Name for Task. 3. Select the Trigger option "When a specific event is logged" 4. Select option as below. 5. On Action Select "Start a specific program" and browse the EmailNotification.ps1 file. 6. Save the task. Script: # Define the SMTP server details and user credentials $smtpServer = "SMTP server" # SMTP.GMAIL.COM $smtpUsername = "SMTP username" $smtpPassword = "password for authentication" $smtpSecurePassword = ConvertTo-SecureString -String $smtpPassword -AsPlainText -Force $smtpCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $smtpUsername, $smtpSecurePassword $from = "from@example.com" $to = "to@example.com" # Define Regex ...
Comments