![]() To create the credential object from the secure password file, you must read the file contents and convert them back to a secure string using ConvertTo-SecureString. When setting the password, make sure that you meet the complexity requirements. Use the following PowerShell to create a secure password file: ConvertTo-SecureString -String "Password123" -AsPlainText -Force | ConvertFrom-SecureString | Set-Content "password.txt" Also, a secure password file is better than a plain text file. You can also create a secure password file so that you don't have to type in the password every time. Now you can save this encrypted standard string to a file using Set-Content. Next you need to convert this secure string into an encrypted standard string using ConvertFrom-SecureString. You begin with specifying a plain text password convert it to a secure string using ConvertTo-SecureString. First, you need to set up a secure password. Since PowerShell helps in automation scenarios, you can also set up the PSCredential object in a way that doesn't require user interaction. This command displays a dialog box allowing you to enter the username and password for the remote user in a secure manner. ![]() If you are using PowerShell interactively, you can easily set the PSCredential object by calling the Get-Credentials cmdlet. The cmdlet lets you specify the Username and Password for the remote desktop user through the Credential parameter that accepts a PSCredential object. The Set-AzureServiceRemoteDesktopExtension cmdlet allows you to enable Remote Desktop on specified roles or all roles of your cloud service deployment. ![]() PowerShell utilizes the Remote Desktop Extension so you can enable Remote Desktop after the application is deployed. See How to install and configure Azure PowerShell for the prerequisites needed for this article. This article describes how to enable remote desktop on your Cloud Service Roles using PowerShell. You can use a Remote Desktop connection to troubleshoot and diagnose problems with your application while it is running. ![]() Remote Desktop enables you to access the desktop of a role running in Azure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |