0 votes

I have a powershell custom command that retrieves the LAPS password from AD for a specified computer. This allows us to run the query in the Adaxes context and delegate it to support staff by OU.

Is there any way to copy the resulting password to the clipboard? We find that even in the adaxes website, the results popup window will not let you copy from it.

#Viewing a password using the LAPS PowerShell module.
$logmessage = Get-AdmPwdPassword -Computername '%name%' | Select-Object ComputerName, Password, ExpirationTimeStamp | Out-String -Stream
foreach ($logline in $logmessage) { if ($logline -ne '') { $Context.LogMessage($logline, "Information") } }

by (410 points)

1 Answer

0 votes
by (244k points)
selected by
Best answer

Hello,

Yes, it is possible. You can output the required information into the Execution log using the $Context.LogMessage method (as your script does) and then copy it after the command execution. You just need to select the text in the Execution log and then click Ctrl+C or right-click the selected text and click Copy in the context menu.

0

When I run this in the adaxes admin console it works, but not in a browser. I wonder if there is some security setting in the browsers or possibly the adaxes web interface?

We have tried this in several browsers (chrome/firefox/edge), and it won't allow us to copy/paste.

I also tried using powershell to copy to the clipboard but that doesn't work either.

0

Hello,

There are no limits in Adaxes that might prevent you from copying text from the Execution Log. Maybe, there are such limits in web browsers, however, we were not able to reproduce the behavior.

Most probably, the behavior occurs because the text is not actually selected. For example, if you click a text in the Execution Log, it is not selected and the Copy option will not be available in the context menu.

For the option to be available, you need to make sure that the text is selected and then right-click it to Copy.

0

Thanks, we did not differentiate between clicking to select and highlight the text. That works.

We really like Adaxes for allowing help desk access to elevated powershell commands in our AD and O365. It would be nice if a future version improved the custom command/powershell display/output.

Related questions

0 votes
1 answer

How do you add a custom attribute to the search results? Version 2017.2 / 3.8.14823.0

asked Nov 12, 2018 by hgletifer (1.3k points)
0 votes
1 answer

We currently have a form for HR to deal with ex-employees that are hired once more, but it's not much more than automatic emails sent to IT. If I add some actions ... this trigger the business rule we have that targets "After updating a user" ? Thanks, Louis

asked Oct 18, 2022 by lw.fa (130 points)
0 votes
1 answer

Hi We're experiencing some issues with showing and hiding custom commands when viewing user accounts. We have a number of commands in Adaxes, but no matter the permissions ... other custom commands shown. We're running the latest verison of 2021.1 Thanks Matt

asked Apr 5, 2022 by chappers77 (1.6k points)
0 votes
1 answer

Hello, I need a way to populate with a schedule task "userWorkstations" with a list of computer objects located under a specific OU. The process must not relpace values already in "userWorkstations" attribute. Thanks, Mic

asked Jan 26, 2022 by zemitch (180 points)
0 votes
1 answer

Hello, I'm trying to execute a custom command through a Powershell script, but I'm struggling to pass multiple values to an AD Object Picker parameter. ... , $NULL, $NULL, 0) $obj.ExecuteCustomCommand($command.CommandID, $commandArguments) Thanks in advance!

asked Nov 24, 2021 by KelseaIT (320 points)
2,993 questions
2,712 answers
6,988 comments
203,643 users