Power shell command not working in Power shell ISE

I was looking for guidance on a problem I was having and found a post from
Bigteddy on TechNet that had this command
Get-ADUser -Identity sam -Properties memberof | select -ExpandProperty memberof
I kept trying it many ways and it always fails in power shell ISE. 
I get the below output
The term 'Get-ADUser' 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 c
orrect and try again.
At line:1 char:11
+ Get-ADUser <<<< 
-Identity rwhite -Properties memberof | select -ExpandProperty memberof
+ CategoryInfo         
: ObjectNotFound: (Get-ADUser:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I put the same command in the power shell module window and it works perfectly
Any idea how I can make this work for striping purposes in power shell ise
ronald white

Import-Module ActiveDirectory
If that returns an error, chances are that you do not have the module on your computer.  You can verify that by running
Get-Module -ListAvailable
Rich Prescott | Infrastructure Architect, Windows Engineer and PowerShell blogger | MCITP, MCTS, MCP
Engineering Efficiency
@Rich_Prescott
Windows System Administration tool 2.0
AD User Creation tool

Similar Messages

  • HT4113 my power button does not work to power down phone.  there for leading to the unablility of reseeting phone

    please need help need to reset my iphoe but power button is broken and on a new computer.  what do i do

    You can also make a Genius Bar appointment at your nearest Apple Store and have it replaced under your warranty.

  • My laptop keyboard is having problems. I took it if to change my bottom case it worked fine prior and then after just the power key worked. I cleaned everything nothing is bent in the cable. now my power key is not working

    Hi my keyboard is not working I took off the bottom case to change it prior my keyboard was fine and after just the power key worked. I checked everything no portions were bent and it plugged in good. I tried to turn it on this morning and now the power key doors not work??

    Back up all data.
    Triple-click anywhere in the line below to select it:
    pmset -g assertions
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • T440p Fingerprin​t power-on is not working

    Hi , i just recieved my new T440p ,  Fingerprint @ power-on is not working although all config. is done typically in lenovo fingerprint manager pro & fingerprint security settings in the BIOS , i start my laptop it goes through windows normal startup & logon without any request for fingerprint .
    Solved!
    Go to Solution.

    Dear Ahmad
    Welcome in lenovo community
    Have you tried to first to enroll your fingers first , an application called Lenovo Think Vantage should be installed .
    Do you have this application installed ?
    Also you need to check the device manager , it's better to send us a screen shot of it .
    Let us know
    Thanks
    Alaa
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Froze on black screen and power button does not work

    my sons ipod touch is stuck on a black screen when plugged into the computer got a spinning wheel and will not connect now spinning wheel will not go away the power button does not work so can not reset it manually
    any suggestions would be appreciated

    - iOS: Not responding or does not turn on
    Neglect the reset and when it says place the iPod in recovery mode use one of thes programs
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Is there anyway to power off an I-phone 4s if the power button is not working?

    Is there anyway to power off the phone if the power button is not working?

    Assistive Touch. Tap Settings App > General > Accessibility > Assistive Touch > ON > at bottom of screen tap button > Device > press and hold Lock Screen icon > when slide to power off appears > slide it. To turn iPhone ON connect to Power Source with USB cable, charger or USB port of computer.
    All iPhone 4S have full Warranty Coverage. Make Genius Reservation and take iPhone to Apple for resolution.

  • I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

  • My ipad has a black screen and the power button is not working. Help!

    This is the second time my ipad screen has gone black. The power button is not working. I reset the ipad about two weeks ago  when this happened. However, this time I am not able to get itunes to recognize the device. It keeps asking to respond from the ipad (obviously with a black screen that isn't going to happen). Im not sure what to try next...thoughts?

    Have you tried to give it a reset?
    Reset
    Hold down the sleep and home keys for about 20 seconds. When you see the silver apple, let go and let it reboot. No data will be lost.

  • How can i restart my phone if the power button is not working?

    My power button is not working and my phone freezes every now and them. I read I should restart it. Is there another way to restart it without using the power button?
    Also, I use the on-screen assistance icon but it does not have a power off option.

    demeece wrote:
    My power button is not working and my phone freezes every now and them. I read I should restart it. Is there another way to restart it without using the power button?
    Also, I use the on-screen assistance icon but it does not have a power off option.
    That's correct.  Because how would you turn it back on again if the screen was off and your power button was on the screen?
    Yo need to fix the button, or try letting the iPhone die out completely, then connect it to power and after it's charged for a while, see what happens when you press the Home button.

  • My iphone power button is not working. What can I do?

    Hello, I bought an iphone 5 last year and it still in warranty . It has some regular scratches for the use but it never felt down.
    The power button is not working now and I sent to an apple retailer here in Brazil (SOMA - Revenda APPLE Solution Expert e Assis. Tecnica Autorizada) to fix it. They refuse to do it saying that the button is not working because of  the scratches what I believe is not true. And the retailler suggest to me to buy a new one.
    And more, I receive the iphone with the factory configuration and I don’t know why.
    I would know what can I do to fix the iphone. And How can I use the warranty here in Brazil.
    I couldn't find an e-mail from apple.com support to report this.
    I will stay in US next december. I can fix my phone in an Apple Store?
    I'm very dissapointed with the technical assistance here in Brazil.
    Thank You

    Meaning that you cannot restart or reset the phone?  If you haven't tried already, try both options.
    Otherwise, you can do a backup & restore, or even a restore as new (only after a successful backup).
    If the issue persists, then look at a replacement. Either it will be a hardware defect (free if within warranty), or physical damage ($49 with AppleCare Plus, $149 without it.)

  • Ac power adapter is not working

    i bought this item apox. 9/10 months ago from Tesco so i dont know if i have any cover?
    HP Photosmart Plus All-in-One Printer - B209a
    ac power adapter is not working and i ready own hp printers and dont want to have to splash out on another.
    please help... 
    This question was solved.
    View Solution.

    Hi,
    You should still be under warranty, but if not you should be able to buy one from HP Parts Surfer.
    I hope this helps
    JonW
    I work for HP

  • HT1547 My mac book pro is 3 yrs old and today while watching something on it, it got power off suddenly. And power button is not working, left side round button to battery is not working but when I plugg in to charge it, then this round button shows 4 gre

    I am having MacBook Pro 3 yrs old and today while I was watching some movie on it suddenly it got power off and when I am trying to start it, it's power button is not working even the round button on external left side is not showing battery lights. But when I connect it to chrger then Charger only gives green light and even the external round button only shown 4 green lights (if charger connected). I don't know what to do now

    Sounds like you need a #1SMC Reset
    1. SMC reset
    >>Instructions to reset SMC
    Disconnect other non-Apple and external hardware except (if applicable) a mouse and keyboard until your finished repairing your machine.
    Problems solved: Fans blowing with no activity, machine is not booting, power button pressed and nothing happens, problems with indicators, Magsafe has wrong lights, battery is not charging, monitor and graphics issues etc.  If the battery is not charged (from like letting it sleep too long), let the Mac charge up awhile afterwards.
    Will not hurt the machine resetting if it's not broken.
    Other related hardware problems (optional):
    Check battery status: Hold option/alt key down while clicking on the battery icon in the menu bar, top right corner.
    Magsafe: Use the correct/matching power supply charger with your Mac, not a less powered one from another Mac.
    Apple: Laptop won't power up   Apple: Computer won't power up  Troubleshooting optical drive
    Magsafe problems   Magsafe problems more

  • HT4623 Hi I have a question, I am operating my iPhone 4S on 6.1.1iOS, as my power button is not working, I have jailbreoked my device so that I have a option to restart and shutdown my device. If i upgrade to iOS 7 do i have such option?

    Hi I have a question, I am operating my iPhone 4S on 6.1.1iOS, as my power button is not working, I have jailbreoked my device so that I have a option to restart and shutdown my device. If i upgrade to iOS 7 do i have such option?

    Jailbreaking your iPhone forfeits your ability to receive any support on that phone, including from this forum.
    You'll have to search elsewhere for answers to your issue.

  • My power button is not working and my phone doesn't wanna turn on i've tried to charge it so it can turn on like it usually does but it's not turning on

    my power button is not working and my phone doesn't wanna turn on i've tried to charge it so it can turn on like i usually does but it's not turning on

    Hold down on the home button simultaenously holding on the sleep wake button (power button) hold it for more than 15 seconds this will then shut down the device.
    If the device is already shut off do this same sequence to see if you get an apple logo. If you get the logo allow the device to login. Write back if this does not resolve your issue.
    Good luck Friend.

  • Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

Maybe you are looking for

  • I dont see text options in the RFEBKA00 program

    Hello friends, When I run the RFEBKA00 program, I don´t see the text of the every radio button options. How I can solve this problem, Can you help me please, Regards David

  • [CS3/CS4 JS] How can you get the associatedXMLElement of a merged cell in a table?

    Hi! Inserting a table, and autotagging it, I get a table with a number of cell elements in the XML Structure. Selecting an item in the table, I can find the associated XML by the following line of code: app.selection[0].associatedXMLElement My proble

  • Itunes won't install as it says it's an unsafe programme

    It downloads the says delete as its unsafe programme. Driving me insane. Have unistalled itunes because I couldnt update as signiture issues so just want to install it from scratch. Please help. Very frustrated. Thanks Graham

  • Switching Options for SAP UDS Instance

    Hi All, I have a scenario where in I need to read data records from an Excel file to MII. I have uploaded the excel sheet from end user onto the UDS File Server system and configured a data source/UDC to read the data from the file. Using OLEDB conne

  • 2 discs stuck in my drive!

    Hey guys, I hope you can help me or advise me :-S My younger bro asked if he could watch a DVD on my macbook so of course I told him if he broke it I would saw his legs off. He apparently pressed eject and nothing happened so he assumed there were no