I have a Runbook that is throwing an exception, with the following message: ” The term ‘Get-AutomationVariable’ 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 correct and try again. “
I think it depends on your level of access. For example, if I run that code as an admin, who has full control/approve, it will give you the latest version whether draft or published… but if you have “read” access, it will return the current published/approved document (depending on how you are using versioning/content approval/item level security)…
Your file is a string separated by newline characters and commas. There is no way to know where column 10 is without parsing the file. The quickest way to parse small csv files of 100 MB or less is to ReadAllLines and then split on the commas. Larger files will have to be read line-by-line and then split. Friday, November 13, 2009 3:01 PM 0
