Search

  • Re: Get-Content from file, in Chucks of 3 out to xml.

    hello, sorry about the missing information. but your input fixed my problem! many thanks!
    Posted to General (Forum) by Emort on 09-19-2011
  • Get-Content from file, in Chucks of 3 out to xml.

    hello I have a problem I have a file that generates a long list of data, every 3 lines is 1 chunk og data e.g 1..3 line = data chunk 1 4..6 line = data chunk 2 ... .. . 51..54 line data chunk x ect….. I run a do until but I cant get it to work proberly $XmpPrep = @( Get-Content C:\pstmp\RAW\xmlprep.txt) $count = $XmpPrep . Count $a = 0 $b = 1 $c = 2 $XmpPrep [ $a ] $XmpPrep [ $b ] $XmpPrep [ $c ] do { $a ++ $b ++ $c ++ “<some xml tag>” + $XmpPrep [ $a ] + “</some
    Posted to PowerShell General (Forum) by Emort on 09-16-2011
    Filed under: XML, Get-Content, do until
  • Get-Permissions

    Hello, Can anyone get me in the right direction; I’m fairly new in PowerShell, just completed 3 days of v1. And now trying to throw myself in my first project, and it is not going well :-D I’m trying to get a result that will show me a sites users and permissions of at SharePoint site Get-SPUser -Web "WEBSITE" | Select-Object name Will return the names but not the rights and as I can see it there is no permission property Get-SPSite ‘ WEBSITE’ | Get-SPWeb -Limit
    Posted to PowerShell for SharePoint (Forum) by Emort on 09-07-2011
    Filed under: User Profile Attributes, Permissions
Page 1 of 1 (3 items) | RSS | More Search Options
Copyright 2012 PowerShell.com. All rights reserved.