How do I get just the homepath?

I have this code:  
$user = 'MyUser'
$getU = Get-ADUser $user -Properties homedirectory
It works but it returns a lot of data, DistinguishedName, GivenName, etc...etc.... and it returns HomeDirectory.   It looks like this in the output
HomeDirectory     : \\USR-FS02\MyUser$
how do I get just the \\USR-FS02\MyUser$   ???
mqh7

To get just the value of the homedirectory property of $getU:
$getU.homedirectory
or
$getU | select -ExpandProperty homedirectory
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    You're welcome.
    All photos transferred from your computer are stored in the iPhone's Photo Library regardless if you select a single album or folder of photos to be transferred or multiple albums or folders. The photos on the albums or folders of photos include a pointer to the original photos stored in the Photo Library. The photos are not duplicated taking up double the storage space. This way you can view the photos in an album or folder of photos only by selecting the album or folder, or all photos in all albums or folders by selecting Photo Library.
    Makes more sense when transferring multiple albums or folders of photos which cannot be changed when transferring only a single album or folder of photos.
    The same applies with iTunes and music playlists. A song can't be in a playlist unless it is in the main iTunes library. Placing a song in a playlist does not duplicate the song.

  • How do i get just the icons to appear in my yahoo tool bar without the labels?

    how do i get the tool bars to just show the icons and not the labels or the short description of the icon. it makes a few of the icons hidden and i then need to scroll down to open them.

    Yahoo toolbar''' [https://login.yahoo.com/config/login_verify2?.done=http%3A%2F%2Fhelp.yahoo.com%2Fl%2Fus%2Fyahoo%2Ftoolbar%2Fgeneral.html%3Ffrom_url%3Dhttp%253A%252F%252Fhelp.yahoo.com%252Fl%252Fus%252Fyahoo%252Ftoolbar%252Ftoolbar2ff%252Findex.html%26amp%3Blast_url%3Dhttp%3A%2F%2Fhelp.yahoo.com%2Fl%2Fus%2Fyahoo%2Ftoolbar%2Ftoolbar2ff%2Findex.html email]''' based support or http://help.yahoo.com/l/us/yahoo/toolbar/toolbar2ff/index.html

  • How do i get just the contacts and photos from my back up without downloading anything else?

    please help me.
    im trying to just get CONTACTS and PHOTOS only back from my backup on itunes but it wont give me the option to do so.
    how do i just get contacts and photos?

    You don't.
    It is all or nothing.
    You should be syncing contact with your computer regularly, so they should be in whatever program you have chosen to sync.
    You should be importing all pics regularly, so they should be on your computer as well.

  • How do i get just the photos out of an iCloud backup?

    I recently had to restore from an icloud backup, but it stopped importing photos when i did a sync with my mac, I know the photos are in iCloud i just need to get them back withut doing yet another restore!!
    They do not appear in PhotoStream and are not on iCloud.com
    Any Help?

    Welcome to the Apple Community.
    You cannot selectively restore data from a backup, it's all or nothing.

  • When I long press a link, in addition to opening a context box, it also opens the link in that window. How can I get JUST the context window to appear?

    I am an avid Pocket user and I like to scroll through various blog sites while saving articles to read later. Typically, I have been using Google Chrome browser which requires me to open each article in a different tab and then share that article to Pocket in order to save it. I was ecstatic when I found out the firefox browser worked very well and even supported add ons. I decided to try it but have run into a major issue. When I long press a link in order to share it, instead of a context window appearing and the website staying the same, a context window opens while the website loads the link. When I right click on a link in my browser, it doesn't mean I want to go to that link so I'm not sure why the same procedure would cause the mobile browser to do so. Is there a way I can long press a link without opening the link in that tab?

    Okay, this is silly, but it's the best I could come up with:
    I tested on Gizmodo: when the long press menu appears, instead of lifting your finger straight up, slide it down a bit, just off the link, before lifting your finger off the glass. Then the script in the page does not detect a "mouse up" (or equivalent event) on the link. Does that work for you?
    I realize you can't actually see the link through the menu, but one or two lines of text height usually will do it.
    Probably would make sense for Firefox to cancel all events associated with touching the link once the menu is displayed. Or to make sure the site understands it as a right-click (that seems harder). I haven't checked to see whether any ideas along these lines have been filed in the bug tracking system.
    ''Edit: Tested on a Nexus 5 (LG).''

  • How do I get just the tracks I want!

    I’m still new to sound track and I’m having some problems.
    I have been given a voice over recording on cd and it has several takes on it. In soundtrack I have imported these clips and put tighter the version of the voice over I want to use.
    To make the file I’m going file>export>master mix
    To bring the file in to fcp I go file>import but the file I bring in seems to have 5 audio tracks. I just want one file that with a left and right channel I don’t want 5 tracks!
    What am I doing wrong? I don’t know what all the terms mean but I think that I want to do a “mix down”?

    You need to change the Submix output from Surround to Stereo.
    !http://rdiv.com/screenshots/STP_submix.jpg!

  • How do I get just footage I did not use?

    Say I have a body of footage and I make a bunch of edits
    How do I get just the footage I did not use?
    Body of footage - edits = all the footage that was not used
    lol, thanks!

    Probably the easiest way to do this would be via Save_As. First, look in the Project Panel, and delete all of the Assets that show Usage (might want to organize the Columns to display this info near the head of the Project Panel's display). Clean out everything with Usage. Then, do a Save_As, naming it something that you'll recognize.
    It's easier to do just the opposite - delete the unused, as there is a button for doing that, Remove Unused. Going the other way will require a bit more action my the editor, unless CS4 has added a Remove Used button.
    Good luck,
    Hunt

  • How do I get to the rules section in iCloud mail on my iPad. I want to block just one email sender.w do I post

    How dom I get to the rules box in iCloud mail on my iPad. I just want to block one address.  Thanks

    The replies have helped me to conclude that in this instance apple have failed by a long shot to provide any reliable help.  I have exchanged chats with them and been told to just read variuos support notes which explain how to set the rules on an iPad.  After many exchanges I was not convinced they had grasped the real problem.  In the end they would appear to be wrong in the advice given.  Apple were no help at all, I gave your replies a HELP star because they helped me conclude that.
    The situation was and still is, the iPad was a gift to an 85 year old relative of mine, she loved it, really getting used to emails, photos,, web and so on.  Suddenly things started to go wrong, photos started failing freezing up during uploads and albums sharing etc.  in the end had to dump everything and with help call on Dropbox, all well now with that. Then an email from one of her eldly friends was delivered every 10 minutes, over 400 panic.  Nobody  gave any simple answer to her of the sender to stop the emails.  She called me, 500 miles away to see if I could help, yep I said until you get someone close to help you just block that email address, easy or so I thought, you know the trauma from there.
    I got the roundabout way to stop them with my own winbox and iPad., she as just got the iPad and is housebound.  I have offered that if she gives me her security info I'l  log into her iCloud mail in windows and set the rules and any other preferences for her.....highly desirable solution isn't it.
    I,ll say to anyone that apple and many of it apps are not user friendly and fail badly.  Sorry for being a bit longwiinded in this reply but it's given me some experience with this facility that again was not easy to master.

  • I want to back up my 4S but I don't get the correct screen when I plug it into my Mac - Just iPhotos and iTunes (songs) pop up. How do I get to the screen where I can back up and restore?

    I want to back up my 4S but I don't get the correct screen when I plug it into my Mac - Just iPhotos and iTunes (songs) pop up. How do I get to the screen where I can back up and restore?

    Hi Spookola,
    I don't know how that could have happened. Go through the folders for the rolls and separate the 2005 rolls from the 2006 rolls, then import the 2006 rolls.

  • Just bought an ipad2 turned it on and all I get is a picture of a plug with an itune logo on it, nothing else. How do i get to the main page

    just bought an ipad2. all i see is a picture of a plug when i turn it on , no icons. How do I get to the main page

    Getting started guide here http://support.apple.com/kb/HT4053 . There is also a getting started section in the manual which can be downloaded from here http://support.apple.com/manuals/#IPAD

  • I just opened my new ipad2 32GB.  I can't get off the screen for language choice!  How do I get to the correct screen to begin using it?

    I just opened my new ipad2-32GB.  It is connected to my macbook pro and itunes is opened.  But it is stuck on a screen for language choices.  How do i get to the correct screen to begin using it?

    yes, thanks.  I needed to reset using the power button and home button and hold for longer than i thought.  After some serious worry (I'm an electronic illiterate!) I do have everything working and synced with my laptop and phone. 
    I am glad to have discovered the "support community" site

  • My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazona?

    My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazon.com for everything ?

    Change the search plugin in the search bar to something else and you can search with that.

  • How do I get all the music on my IMAC in one folder. We have one IMAC and 3 sign ons. When add a song under one sign on it doesn't add to all 3 libraries.

    How do I get all the music on my IMAC in one ITUNES folder? We have one IMAC, with 3 sign ons for me and my 2 teens. When you add a song under one of the sign ons it doesn't add it to all 3 libraries. Before I updated to LION,  We had one main library with all the songs we bought, imported from cd's etc. Then any of the three of us could add it to our own IPOD instead of buying the song agin. It is one house, one IMAC. It was working fine under Leopard.

    The sort fields should generally be empty unless you've putting in custom values to sort solo artists by their surnames. You can apply common changes to thousands of tracks at once, just don't apply the wrong change because there is no undo.
    It is a good idea to backup before undertaking large scale changes. See this backup tip for a suggested approach.
    tt2
    Message was edited by: turingtest2

Maybe you are looking for