I have read the entire AutoIT Help file, all of the AD UDF scripts and supporting HTML files, and a large part of the Internet and have researched myself into paralysis.

My company has more than one domain with two-way trusts and use LAPS on each domain. At present, we remote in to a jump box in each domain when we need to manage a device there. I want to build a multiple-domain console that works just like the LAPS UI, but allows the user to select a domain via pull-down.

At this point, I can't even get the crazy thing to work on the current domain.

Get-AdmPwdPassword : The term 'Get-AdmPwdPassword' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ Get-AdmPwdPassword T4211BLC1
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AdmPwdPassword:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Share this post

Link to post

Share on other sites

I don't even have the flu so I have no excuse for overlooking this option, but good use of _AD_GetObjectAttribute. Next question, since you may have already solved this: I'd like to reset the password in the GUI as well. I already have the date/time picker sorted, now I just need the AD equivalent to Powershell:

Share this post

Link to post

Share on other sites

I don't even have the flu so I have no excuse for overlooking this option, but good use of _AD_GetObjectAttribute. Next question, since you may have already solved this: I'd like to reset the password in the GUI as well. I already have the date/time picker sorted, now I just need the AD equivalent to Powershell:

Recently Browsing
0 members

Similar Content

For my next project I would like to send files with "alternate data streams" by email in ZIP format.
I can not use any external program like 7-Zip or WinRAR. (They would fit😥)
Who knows how to create a ZIP file with "alternate data streams" included with the Powershell command "Compress-Archive"?
Here a test script: (save as "ADSTester.cmd")
@rem Try to create a zip file with alternate data streams (ADS) included
@rem Housekeeping
@cls
@del ADSTester.zip >nul:
@RD /S /Q Extracted >nul:
@del ADSTester.txt >nul:
@rem End of Housekeeping
echo This is the ADSTester.txt file >ADSTester.txt
echo This is the ADSTester.txt:Part1 file >ADSTester.txt:Part1
echo This is the ADSTester.txt:Part2 file >ADSTester.txt:Part2
dir /r ADSTester.txt
@rem See the 3 files
@rem ****************************************************************
@rem ****************************************************************
@rem Please alter the next lines to include the alternate data streams.
powershell Compress-Archive -Path .\ADSTester.txt -Update -DestinationPath ADSTester.zip
powershell Expand-Archive -Path ADSTester.zip -DestinationPath .\Extracted\
dir /r Extracted\ADSTester.txt
@rem Only one file left :-(
pause

Hello and Good Day to All!
I am trying to install .NET 3.5 on Windows 10 x64bit via autoit (via ShellExecuteWait + PowerShell).
If I run this line, it will runs without issues:
ShellExecuteWait('PowerShell.exe', '-executionpolicy Bypass -File "' & @ScriptDir & '\OJP83BU523.ps1' & '"')
"OJP83BU523.ps1" contains: DISM /Online /Enable-Feature /FeatureName:NetFX3 /All /Source:D:\Sources\sxs /LimitAccess
However, since I won't know in advance the drive letter of the "sources" folder, I created a script to generate a PowerShell Script to give a correct path for it.
With the modified script below, PowerShell only blinks and nothing happens
ShellExecuteWait('PowerShell.exe', '-executionpolicy Bypass -File "' & @ScriptDir & '\' & $filename & '"')
or
ShellExecuteWait('PowerShell.exe', '-executionpolicy Bypass -File "' & $filename & '"')
I wish I know the difference with "$filename" and "\OJP83BU523.ps1" usage, as for me, it should be the same.
Attached is my entire autoit script.
any help is appreciated!, many thanks in advance!
test.au3