I currently have a script that opens up a GUI that will run a Get-ADUser cmdlet. It opens through a shortcut where I provide an -executionpolicy bypass. It is currently working on my computer, but not anyone elses. The GUI will come up and run, but will not search. I'm thinking it is because it has not ever loaded Import-Module ActiveDirectory. Putting it in the beginning of script does not work. When I put it as a -command Import-ActiveDirectory into my shortcut it is still not working. Any idea why this is not working on other computers?
Running Import-Module Active Directory for Script On Computer that has RSAT through Shortcut
1.2k views Asked by DrixlRey At
1
There are 1 answers
Related Questions in POWERSHELL
- PowerShell Linphone Configuration
- How avoid \t being converted to Tab in Powershell
- How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything
- Npm command not working in powershell but works in cmd
- Issue with path not being treated as encapsulated when calling cmd /C
- Native command throws error only when I redirect to a variable
- Logic Apps and long running Azure Function (Powershell)
- April fools - PsExec (PsTools)
- How to use nested ForEach-Object
- Batch Script-Powershell MessageBox | How do I set TopMost within PS command line of Batch?
- Execution Stuck at Get-PnPPage if function executed on Button Click
- How can I expand a column from group output?
- How to use expression in regex -replace with capturing group in powershell
- powershell where-object -cnotmatch filter unwanted lines
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
Related Questions in COMMAND
- As a normal user, how would I know how many arguments and what arguments I need to pass in a command line arguments program?
- My unban and ban commands arent showing when i put the slash
- i am not able to import execute from qiskit
- explian the line command argument
- How to only estimate neonatal mortality using syncmrates in Stata?
- Custom hover documentation for Latex command in VS code with Latex Workshop extension
- Command Prompt/PowerShell Closing Automatically with Error -532462766/-1 in Visual Studio Code
- Why I get program not found error on running "npm -v" command with Rust Command::new("npm")?
- Export Result from Command dd to Output File
- docker: invalid reference format using kong command
- Discord bot /broadcast command in every server stops after 40~ servers without errors
- How to do a Cmd+Shift+F search of grayed out files in directory in VSCode?
- running the ld command through rust only works 50% of the time
- Discord Bot - DirectMessage Command
- Discord selfbot call users
Related Questions in SHORTCUT
- How when click button order in custom siri intents make custom action
- Set default (custom value) in iOS AppIntent parameter
- Activating a Shortcut on 'hot-corner'
- How to assign keyboard shortcut for arrow keys in Visual Studio Code
- Custom Keyboard Shortcuts in Flutter for returning an independent widget
- Is there any way to make tkinter window dismiss Win + D command?
- Windows shortcut target field, change to current directory
- How can I create a .desktop file [Desktop Entry] that executes a command in the current directory?
- How to restore data of a shortcut file
- Create windows executable shortcuts for given bash commands
- Google Meet PWA with StartParameters?
- How automatically add comments in the start and end of an HTML block using a shortcut
- Autohotkey two buttons pressed result in third button
- Assign shortcut to macro/module in MS-Project?
- MacOS Safaris WebApp to App feature fullscreen metatags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Unclear with your question, Is RSAT installed on the machine that is running the script?
Does the User who is running the script on there machine have credentials to read Active Directory?
Are you able to share any of the script ?
Are you able to run
Import-Module ActiveDirectoryoutside of the script on the other computers? if so, what is the error?