"$pass" | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString | out-file. ( I found it easyer to copy/paste from the text file insted of the screen) #Next we convert the pass and export the hash string to text file. $pass = Read-Host "Enter Password" -AsSecureString AsSecureString hides the password on the screen I created 2 scripts one to create the secure password that you use only once and the other was updated version of the original. So who do we run the scheduled task as? The Citrix account to gather the data or send with another account and secure the password? The script has to run as one account that has access to the Citrix environment and the account they gave to send out the messages was different. A security issue occurred with the SMTP relay server that he was using for sending out the reports and the team that managed it forced all users to authenticate via user/pass and a mailbox to send messages. The Citrix team has some Powershell scripts running to gather Citrix information 2 times a day via schedule task within Windows. Resonantly I had a problem given to me by a colleague at work. $server = hostname #$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Authentication Kerberos #Import-PSSession $Session add-pssnapin .SnapIn Write-host "Exchange Snapin now eanbled." $total_messages = get-transportserver| get-queue | foreach -begin
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |