![]() $password = $credential.password | ConvertFrom-SecureString -Key $AESKeySet-Content $credentialFilePath $password $credentialFilePath = "C:\Credential.txt" You will create this random key.Ĭredential.txt - to store encrypted passwordĬreate a random 32 byte key for encryption. I had this problem of "cannot use encrypted pwd on another machine other than the machine on which it was encrypted". $RegPathToTask = "Software\Microsoft\Windows NT\CurrentVersion\Schedule\Taskcache\Tree\$" -Name SD -Value $BinaryNewSD It allows the "Authenticated Users" group to execute the task, but not edit or modify it in any way which is crucial: Write-Verbose "Getting the permissions (SD) on the scheduled task" This is an exerpt from a script / program I have that tackles your exact problem. Research Triangle Powershell User Group remote-capableĪn administrator can edit the permissions of the scheduled task after creating it, allowing non-administrators to run it.Philadelphia PowerShell User Group remote-capable.Madison Power Users Group remote-capable.Denver Microsoft Enterprise Management User Group.NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions. Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Submission Guidelines | Link Flair - How To
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |