What is your preferred import format and why?

Just curious as to what people like to use for importing information into PowerShell. It obviously depends on the format of the information, like lists, single text fields and lists of lists.
[email protected]

Thanks, Fred, this is actually for a new user script. I recently migrated our old new user script from VB to Powershell and things seem to be working ok with it, but it's time to expand it a bit and do automatic group provisioning. Each department is going
to send me a list of AD groups each new user should be added to for file/folder access and security and I was wondering the best format for those lists to be in. I was personally thinking have each list be a separate "text" file with each group on
a separate line and just import them as CSVs. What do you think?
Thanks.
[email protected]
That is not a CSV.  THe usual and easiest method is to have thembuild an Excel Workbook with users listed by group:
Example:
UserID, Group
jsmith, users1
jsmith, users2
ljones, users1
ljones,users4
This would be easiest to loop through and should be easy to build.  THis would be a SCSV or can be read directly out of an Excel WB.
If you want simple text then forget CSV
Use this:
jsmith, group, group2, group3
Now read oneline
and split
Get-Content usergroups.txt |
      $userID,$groups = $_ -split ','
      # process user
Now you have the userid and an array of groups.
\_(ツ)_/

Similar Messages

  • What are your preferred word processing and drawing apps?

    I currently use LibreOffice for most purposes, because it has both word processing and drawing software built-in, because it can read many file formats, without as much trouble as most other office suites. Unfortunately, while it can import AppleWorks word-processing documents, it can't import drawings, spreadsheets, etc., and while it can import older Word word-processing documents, it tends to corrupt the tables, the fancier quotes, etc. Also unfortunately, it does not work well with speech-to-text/dictation, not that dictation works well. Also unfortunately, it sometimes screws up imported images.
    I try to minimize formatting to avoid that in the future.
    I used to use Appleworks for most purposes, but it isn't supported anymore.
    I tried TextEdit, but it doesn't allow me to save different versions of the same document, or a new document based on an old document, it screws with page margins, and it doesn't have drawing software. I used to use Word, and at one point used Pages, but there are all sorts of issues with their file formats and incompatibilities between different versions.
    I would like a functional but not excessively fancy word-processing and drawing tool, and either as part of that, or in addition to that, a suitable version comparison tool. I draw a lot of maps, so the drawing program has to respect scale, and I have coordination problems, so it has to make it easy to put the right object in the right place. I've had trouble with that in LibreOffice.
    So in general, what word processing and office suite software do you think works for your needs, or would work for my or other people's needs?

    http://itunes.apple.com/ca/app/pages/id361309726?mt=8
    http://itunes.apple.com/us/app/numbers/id361304891?mt=8
    http://itunes.apple.com/ca/app/documents-to-go-premium-office/id317107309?mt=8

  • Preferred import format for iphoto4

    I've got some old photos that were original scanned directly into PhotoDeluxe. Want them in iPhoto now for obvious reasons. iPhoto Import produces a text message for each photo that amounts to "Can't import".
    I can pass them through Photoshop and export them as almost any known format. But which one? I've tried TIFF, which I know to be lossless, and it apparently works well --the "before" and "after" photos look identical on the screen. But are others just as good?
    What's the preferred import format for iPhoto4 to maintain photo quality? (Is the answer the same for later versions? I assume so.)
    Thanks,
    Henry

    Henry,
    Had to do it myself with some old scans from PhotoDeluxe - run them through PhotoShop and save in another format. That text message means the PD file is propietary PD format - requires PD to use.
    Your export choice from Photoshop depends on what you plan to use the photo for. iPhoto is by nature a JPEG creature, but will accept and protect files in other formats.
    I open PD files in PhotoShop or PhotoShop Elements and Save As a full .psd file for safekeeping and as a .jpg I import into iPhoto. I don't have use for anything bigger or better than a .jpg in iPhoto. I don't edit or print with iPhoto.
    Peter

  • What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  I have to immediately move to trash all the duplications on my desktop.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What application is set to open PDF files? If you CNTRL click on the file and open with Preview does the problem occur?
    If not change the default application to open PDF files to Preview.
    You can do this by highlighting the file and either use CMD i or Get Info , this will open a window with the info on the file with an option to change the application that opens the file.
    That's all I can think of.

  • What is y3.online.sec.update and why/who is this t...

    Hello:
    What is y3.online.sec.update and why/who is this trying to call me/message me via my skype?
    Normally if there is an official skype security update/fix it is automatic when I log in so is this some type of phishing scam?   I blocked the contact.
    Thanks for your help.
    Solved!
    Go to Solution.

    you can also visit the thread below for instructions and suggestions on how to deal with such unwanted and suspicious activities;
    How to Handle Suspicious Calls, Messages and Contact Requests (Scam/Spam)
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • I just updated lightroom 5 and now it is completely gone from my computer!!! What the hell is going on and why can't I speak to someone at adobe.....ever???

    I just updated lightroom 5 and now it is completely gone from my computer!!! What the hell is going on and why can't I speak to someone at adobe.....ever???

    You need to contact Adobe directly using the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
    1. Adobe Photoshop Lightroom
    2. Adobe ID, and signing-in
    3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
    It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on.
    Click here to get help now Contact Customer Care

  • What does a skype number cost and why is it so har...

    as the title sais, what does a skype number cost and why is it so hard to find that info?

    Hi, StolpS, and welcome to the Community,
    Please see this topic for more information:
    http://community.skype.com/t5/Skype-Number/Skype-Number-Prices/td-p/3148940
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Imovie is limited to its import formats and does not allow for storing video in any rawformat.  Which means all videos will contain lossy compression applied to the video-.with no way to edit full format video.  Is this statement true?

    Imovie is limited to its import formats and does not allow for storing video in any rawformat.  Which means all videos will contain lossy compression applied to the video….with no way to edit full format video.  Is this statement true? Does iMovie support HD 1080p @ 60 fps?

    Iggy826 wrote:
    …   Is this statement true?
    yes and no!
    using the intended Import from Camera routines, iM converts automatically in its very own AppleIntermediateCodec. so, answer is yes.
    but …
    a) Apple claims , aic is non-lossy intermediate codec. working with proRes in FCPX taught me, there are even less non-lossy-ness codecs
    b) iM offers an Archive feature, which is basically a simple Finder/copy operation which 'clones' your SDcards content into some folder on your harddrive; e.g. you can later use these untouched  'raws' in another editor such as FCPX. so, answer is no.
    c) when you 'override' the import routines by manually re-wrapping mts into a mov container, iM handles the 'native' h264s ... so, answer is no.
    d) adding any effect, transition etc. reduces any interlaced source to 540p. (if you're working with 720p source, res is kept) … so, answer is yes. or, in 720p case, no.
    < Johnny Depp's voice >… savvy?
    Does iMovie support HD 1080p @ 60 fps?
    via Import from Camera? No.
    via re-wrapped mts>>mov? I was told yes, some say no.
    one thing to be kept in mind when talking about these 'issues':
    iM, this 12€, is meant as a CONSUMER toy tool.
    it supports AVCHD vers1 (=no 1080/60p, no >24Mbps, no 3D).
    fingers crossed, we'll see soon some iM/QT/FCPX update for support of AVCHD v2 ........
    the main consumer devices are within the specs, iM supports.
    using professional equipments makes usage of professional software (FCPX, AP) optional.
    sorry for lengthy answer.

  • What is the colored spinning disk, and why does it appear, and how do I get rid of it?

    What is the colored spinning disk, and why does it appear, and how do I get rid of it?

    Repairing permissions will help as will running the UNIX commands. This widget will do all but the pram.
    http://db.tt/Lob4XtPB  Maintenance Widget  One of those links will get you the widget.
    To reset the pram hold the Command+Option+P+R when starting up, wait through 4 startup sounds before letting go.

  • I'm trying to download games or anything but its makeing me answer sacruity ?s like what was your first pet name and dream job and idk any of that

    I'm trying to download games or anything but its makeing me answer sacruity ?s like what was your first pet name and dream job and idk any of that

    If you can't remember your answers then if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or, if it's available in your country, you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • What is the '._v1_.swf' cookie and why can't I delete it?

    What is the '._v1_.swf' cookie and why can't I remove it?

    The '._v1_.swf' cookie is placed by Adobe Flash.  When you delete the cookie Flash promptly puts it back.  If you uninstall Flash ( https://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html ), the cookie will go away.

  • What is your Premiere, After Effects and SpeedGrade Workflow?

    Hi Everyone,
    I am an experienced editor who's switched to Adobe's CC barely a year ago. At the moment I'm in the midst of finishing up a corporate project and trying to think of the best workflow between Premiere, After Effects and SpeedGrade. I'm loving the Dynamic Link workflows, but at the some time I'm facing some obstacles, and am wondering how you guys do your work.
    Let's say I finished the edit of the project and send the project via Dynamic Link to SG. I finish the grade and then decide to use the Dynamic Link to AE to add some titles with shapes and effects such as Fast Blur. This is where I'm facing the first problem. When I choose a clip to be 'Replaced with an AE Composition', the color correction is gone, and now if I grade in SG, it will naturally grade the titles I added. So, it seems as though my color grade is a waste of time and I have to do it the old school way of first absolutley completing the color grade, exporting, re-importing and then heading for titles and effects. That makes you lose quite a bit of "dynamics" in your work (and time aka money), if my clients want changes for example.
    For simple animations with text, and shapes, this is not a big issue since you could easily add the titles to a second Video track. But when you use After Effects which changes the acutal image of a clip by adding effects, things don't work out too easily. But in any case, these might just be the limitations to the relativley new Dynamic Link workflow.
    In my specific example, how would you go about it? What is your workflow? Maybe I'm missing out on some tips & tricks.
    Be happy to hear from you guys and maybe get some expert knowledge.
    Best,
    fabian

    Hey there,
    I'm also looking for a solid workflow solution since adopting (and actually really liking) Speedgrade.  So below is what I'm going to try which should work and will follow this thread to see if any other workflows pop up.  Also typing this out here to help me with plan of attack
    Project Specs - 3 minute corporate video with text animation, interviews, broll, and computer screen replacement
    Edit in Premiere
    Dynamic link to SpeedGrade for color correction
    Open back up in Premiere, confirm all color corrections are applied, and then duplicate sequence to an AE Prep extension
    In AE prep sequence, take all AE "base" shots (for computer screen composite or anything needing stabilization) up onto their own track (i.e. V5 & V6)
    Add 10 frame handles to in & out, checkerboard clips as needed
    Delete all other remaining content but keep blank spaces / no ripple deletes
    Export this out to a ProRes4444 QT movie
    Import ProRes4444 QT movie back into premiere, add over existing video layers in AE Prep extension sequence, and then there time out the screen shot replacement content to cover effect duration
    Dynamic link AE Prep Premiere Pro sequence to AE
    Do the AE work
    Dynamic link back to Premiere
    DoneHopefully
    This was my similar work around back in the day before I had Automatic Duck in FCP to AE
    Hope this helps anyone else - if there are any glaring "why would you do all that" points - please let me know   I'll also report back if there are any horrible roadblocks throughout the process.
    _Christina

  • What is the thumb64segment.jpg file, and why so big?

    Ok, I finally got my MacBook Pro (first mac) got all my photos approx.7-8k worth into iPhoto. Can someone tell me what are the:
    thumb64segment.data
    thumb32segment.data
    thumbJPGsegment.data
    files and why are they in hundreds of MB, and one is ~1.5GB?
    Thanks

    Thanks toad. You might be right about the color profile, I imported all my photos into iPhoto yesterday and I had left the add colorsync profile checkbox clicked--I'm still trying to figure out exactly what it does and if I should have done that in the first place.
    As a side note, and while I have your attention (since you are so good at answering iphoto questions).
    I have a Sony V1 camera, which I assume uses the RGB or the sRGB color profile. When I get home tonight, I would like to software calibrate my monitor to 2.2 gama and 6500k white point. What else do I need to do to make sure that my photos are the same accross the board with respect to colorsync/color profile.
    I rarely print photos (never at home), usually through imagestation.com (maybe through apple's service from now on, but I doubt it). I understand that assuming these services dont discard the color profile embeded into the image file I send them, I should aim to send them the file with the same color profile as is used by their printers? correct?
    Is there anything else I'm missing here?
    Is there any other benefit to embeding a color profile into an image? Like, if I email the img to someone, will the image look the same on their screen? (I assume not, because they will a) not have the screen calibrated the same way, and b) well, I'm sure there's another reason.
    PPS. I did the search on this group earlier today and read a bunch of threads on this, but I"m still not clear.
    Thanks in advance,
    Alex

  • What is the thumb64segment.data file, and why so big?

    Ok, I finally got my MacBook Pro (first mac) got all my photos approx.7-8k worth into iPhoto. Can someone tell me what are the:
    thumb64segment.data
    thumb32segment.data
    thumbJPGsegment.data
    files and why are they in hundreds of MB, and one is ~1.5GB?
    Thanks

    Thanks toad. You might be right about the color profile, I imported all my photos into iPhoto yesterday and I had left the add colorsync profile checkbox clicked--I'm still trying to figure out exactly what it does and if I should have done that in the first place.
    As a side note, and while I have your attention (since you are so good at answering iphoto questions).
    I have a Sony V1 camera, which I assume uses the RGB or the sRGB color profile. When I get home tonight, I would like to software calibrate my monitor to 2.2 gama and 6500k white point. What else do I need to do to make sure that my photos are the same accross the board with respect to colorsync/color profile.
    I rarely print photos (never at home), usually through imagestation.com (maybe through apple's service from now on, but I doubt it). I understand that assuming these services dont discard the color profile embeded into the image file I send them, I should aim to send them the file with the same color profile as is used by their printers? correct?
    Is there anything else I'm missing here?
    Is there any other benefit to embeding a color profile into an image? Like, if I email the img to someone, will the image look the same on their screen? (I assume not, because they will a) not have the screen calibrated the same way, and b) well, I'm sure there's another reason.
    PPS. I did the search on this group earlier today and read a bunch of threads on this, but I"m still not clear.
    Thanks in advance,
    Alex

  • Does any one know what the matrix.dms is? And why it is in my picture folder? When I open this file the unarchiver takes over and I see my entire hard drive when I scroll down I see the matrix.dms file with in the unarchiver.

    Hello everyone. Does anyone know that the matrix.dms file is? And why it may have came to be in my picture folder? When I opened the file the unarchiver took over, then I saw my files in the unarchiver window. I then scrolled down and I saw the same matrix.dms file within the unarchiver window. I made a video of what saw when I tried to open the file, so as to aide in your understanding of reason for my perplexion at this file. Thank you for your help. https://www.youtube.com/watch?v=2QeWH9hRnro&feature=youtu.be

    Hi EMT-B,
    It sounds like you have done all the troubleshooting needed to narrow down your issue with the iPhone camera to hardware. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    You may need to change the country when you get to the page.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

Maybe you are looking for