Powershell Array Export Issues
Hey everyone! So I might just be going about this the wrong way but here's my issue. The script functions as I need it to however, when I export the values to my .csv, the columns are in the wrong order than the way I think they should be. Here's what I've
got:
$list = Get-content targets.txt
Foreach($_ in $list) {
$SAM = Get-RegValue -ComputerName $_ -Key Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI -Value LastLoggedOnSAMUser
$User = Get-RegValue -ComputerName $_ -Key Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI -Value LastLoggedOnUser
@('Name','LastUserAccessed','LastUserLoggedOn')
New-Object PSObject -Property @{
Name = ($SAM).ComputerName
LastUserAccessed = ($User).Data
LastUserLoggedOn = ($SAM).Data
} | Export-csv Results.csv -notypeinformation -append}
I would like it to read Name, LastUserAccessed, and LastUserLoggedOn but it comes out to be LastUserAccessed, Name, LastUserLoggedOn. Any ideas as to why this is happening? Thanks in advance!
Okay, then instead of using 'New-Object PsObject -Property', use [pscustomobject].
http://blogs.interfacett.com/powershell-v3-object-creation-accelerator
EDIT: Or you can just use [ordered] if you'd prefer:
http://stackoverflow.com/questions/7802406/use-cases-of-ordered-the-new-powershell-3-0-feature
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)
Similar Messages
-
Here is a very weird export issue. Windows XP.
Project is set at h264 1920x1080 mono audio 29.97 fps
I have 30 shots that make up the sequence. Each shot is exactly 90 frames. I exported each sequence at h264 1920x1080 with one channel of audio. The first shot exports just fine and is 5 MB. The second shot exports at 10 MB. The third is 15 MB, the tenth shot is 50MB. But the picture is still 90 frames for each shot. BUT, when I export without audio each exported file is just 5 MB. If I look at the properties of each clip the duration of the video and audio is just 90 frames. If I open one of these clips in QuickTime Pro and re-export it as source then the files size goes back to 5 MB; same video, same audio yet with the correct file size.
Anyone seen this before?
Is there a setting that could be incorrect?
-cabletWeird, man. Not sure what might cause that.
-
We are experiencing a PDF export issue with Crystal JRC version 12.2.202. The PDF report shows 1 of 3 pages but ONLY the first page is generated. When this occurs, ALL other users that are exporting to PDF experience the same issue with any multiple page report. I can't find any errors in the log that would indicate what the problem is. To resolve the issue, I have to recycle the WebLogic application server that hosts the JRC, which would indicate something gets "locked" in memory and gets cleared when the app server is bounced.
Any ideas on how to resolve this ?Hi Ted,
Thanks for the response!
Though, the mentioned Sun JVM Bug explains the root-cause, the Bug status also state that it is not fixed yet.
Also, we are reluctant to change the JVM Option to -Xint due to unknown impacts on JVM optimizations.
Is there a patch released for CrystalReports to deal with this behavior? We are using CRJ runtime 11.5.7.620 and seeking for a patch on this version.
Thanks. -
PP CS5.5 FLV To MP4 Export Issues / Problems
I just upgraded from Production Premium CS5 to CS5.5. I do a fair amount of converting/exporting of imported FLV files (downloaded from internet news sites) to H.264/AAC w/ MP4 wrappers using Premiere Pro (PP) and Adobe Media Encoder (AME). My equipment is a 1+ yr. old HP Win 7 Pro w/ an Intel i970 Quadcore, 12 Gb RAM and MSI nVidia GTX 470 GPU. I have never experienced any queue or export issues w/ CS5 (at least that I noticed), but I am experiencing noticeably degraded queue export and direct export problems with these files in CS5.5.
Description: (1) The queue export times for the exact same imported FLV clip(s) using the exact same sequence settings and H.264/MP4 export settings are noticeably slower in CS5.5 (sometimes 2x, depending on the export settings, e.g. using maximum render quality) than in CS5; (2) My MSI Afterburner GPU monitoring software indicates 5-10% GPU usage during queue/export in CS5, while indicating 0% GPU usage (flatline) in CS5.5; and (3) When I attempt to direct export these files using CS5.5 I get the following error message: "The source and output audio channels are not compatible or a conversion does not exist."
I suspect that it may have something to do with "conforming" anomalies when the FLV file is imported into PP, but I would put that squarely in the category of rank speculation on my part.
Has anyone experienced the same or similar problems or have any insight into what may be the problem(s)? Of course, thanks for any help/insight you can provide.
JimWhat do you mean by a better routine?
A better compression routine than H.264.
Is the quality better than H.264?
Yes.
Does this use an MOV wrapper?
Yes.
Also, would it import correctly into PPro?
Yes.
we would import files into PPro exported out of FCP and would get a red pixelated glitch during preview and export. Does this codec solve this problem as well if it is an MOV wrapper?
I don't know anything about FCP.
Sorry for all the questions, just want to get things right before diving into a new codec.
It's harmless, and free.
Download it and run some tests. -
hello
I'm trying to export a flash video using Adobe media encoder from Premier Pro, but when I do I get this error " there are no clips to build".
I have another file that I am able to export and it does not have this problem.
They are Windows Media files and play in Premier fine. I am using Premier Pro CS3.
Lastly, I'm not a video expert but I really need to get these up on the web for work, there is a lot of pressure and I need to get it done.
Regards,
Tomfixed the exporting issue.
-
I am a relatively new user to lightroom. I haven't had any exporting issues until today. I am attempting to export a photo/photos to a specific folder with a custom name. When I do this it exports the WHOLE library and NOT the edited photo. What am I doing wrong??
Lightroom usually exports all images that are highlighted. If you only want to export one image then make sure it is the only image that is highlighted.
-
Exporting issues after 4.2 upgrade
Has anyone else experienced exporting issues after installing the 4.2 upgrade? It used to be a breeze but now I keep getting the message that a destination folder has not been specified even though I've done that. Any feedback would be greatly appreciated! Thank you.
Are you using an Export preset, or setting the Export up manually each time?
-
Reporting Export Issue from Taleo
Can anyone help? We have a work around for the Exporting Issues into Excel 2010 regarding figures and dates only reading as text, however, a new issue has arisen. In one field we have Aggregated Agencies assigned to any particular Job Code. In the legacy reports, every agency name exported into one cell in Excel, now they export into individual rows, this causes a report to be too long and there is no way to amalgamate them into one cell. Has anyone found a workaround for this?
is there someway that it was reformatted by the Iomega drive being daisy chained to it?
No. That is not possible -anyway, reformatting erases everything on a drive.
You would have noticed that first.
You can download the [NTFS-3G driver|http://macntfs-3g.blogspot.com> which will let you read, write and even reformat the clients drive as NTFS on the Mac. All reasonably modern Windows PCs work with this disc format and you won't run into the file size limitations associated with FAT formatted drives. -
Using 128bit key Blowfish and any export issues
Hi,
I want to use blowfish (symmetric key algorithm) in my product and which will be shipped outside US. Reading Sun's documentation I am bit confused and I am not sure if the jce package is going to be available outside the US.
Has anyone used the default available symmetric key algorithms in the JCE package (javax.crypto.*) and faced any export control issues ?
Please let me know.
Thanks
RT
Here is a sample code
String ks = "123456789123456";
kb = ks.getBytes();
SecretKeySpec key = new SecretKeySpec(kb,"blowfish");
Cipher cipher = Cipher.getInstance("blowfish");
// Initialisation of cipher object for Encryption.
cipher.init(Cipher.ENCRYPT_MODE, key);1. the issue is rather an import issue for some countries, than an export issue for US as far as you use jre>=1.4 .
you can read the
'Downloading the "Unlimited Strength" Jurisdiction Policy Files'
section of
http://java.sun.com/products/jce/javase.html
2. The restricted (defualt) shipped version already covers Blowfish if you mind that.
3. I use Blowfish with restricted (default) version of JCE in applications deployed in europe and have not heard of customer complaining sofar: they are supposed to use webstart or jre1.5. -
So my ultimate goal is to export emails after a specific length of time as a .msg and then upload them to sharepoint for archival purposes.
My issue is all the examples I find never seem to work for me. I use PowerGUI for my ISE, I have powershell 2.0 and Outlook 2007 SP3
So for example, when I try something very simple according to the scripting guy
Reference, I try this line of code:
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Outlook") | out-null
[enum]::GetNames("Microsoft.Office.Interop.Outlook.OlDefaultFolders")
This should list the enums used to point to the different folders in outlook....here are some of them:
olFolderDeletedItems
olFolderOutbox
olFolderSentMail
olFolderInbox
olFolderCalendar
olFolderContacts
olFolderJournal
When I run it, either PowerGUI or straight in the console I receive the following error:
Cannot convert argument "0", with value: "Microsoft.Office.Interop.Outlook.OlDefaultFolders", for "GetNames" to type "System.Type": "Cannot convert the "Microsoft.
Office.Interop.Outlook.OlDefaultFolders" value of type "System.String" to type "System.Type"."
At C:\Users\clayman\AppData\Local\Temp\ceb3eca9-5cf1-4dd2-92aa-c2c29d3ca438.ps1:2 char:17
+ [Enum]::GetNames <<<< ("Microsoft.Office.Interop.Outlook.OlDefaultFolders")
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
Truth be told, no matter what sample I try they all fail, for instance try and run this function (yet another scripting guy article)
Function Get-OutlookInBox
Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
$olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type]
$outlook = new-object -comobject outlook.application
$namespace = $outlook.GetNameSpace("MAPI")
$folder = $namespace.getDefaultFolder($olFolders::olFolderInBox)
$folder.items |
Select-Object -Property Subject, ReceivedTime, Importance, SenderName
And this one fails with:
Add-Type : Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dep
endencies. The system cannot find the file specified.
At C:\Users\clayman\AppData\Local\Temp\51f81593-6a0f-4261-9888-5499432508e7.ps1:3 char:10
+ Add-Type <<<< -AssemblyName "Microsoft.Office.Interop.Outlook" | Out-Null
+ CategoryInfo : NotSpecified: (:) [Add-Type], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.AddTypeCommand
Exception calling "GetDefaultFolder" with "1" argument(s): "Value does not fall within the expected range."
At C:\Users\clayman\AppData\Local\Temp\51f81593-6a0f-4261-9888-5499432508e7.ps1:8 char:39
+ $folder = $nameSpace.getDefaultFolder <<<< ($olFolders)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
If I change:
Add-Type -AssemblyName "Microsoft.Office.Interop.Outlook" | Out-Null
To:
[Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Interop.Outlook") | Out-Null
The first error goes away, but the second one remains. What the heck am I doing wrong?
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Don't Retire TechnetHi,
How about change
$folder = $namespace.getDefaultFolder($olFolders::olFolderInBox)
to
$folder = $namespace.getDefaultFolder($olFolders.olFolderInBox)
Please test it.
Regards,
Yan Li
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Cataleya Li
TechNet Community Support -
I have a simple Flash animation which I'd like to be made
into a transparent GIF.
When I do the GIF export, only the first frame of my
movieclips (which are placed in the main timeline) get rendered. It
seems like Flash only records the main timeline preview output into
the GIF file, and does not play movieclip objects. You would expect
the GIF recording to be of the same preview as when you hit
ctrl+enter (essentially final playback).
Because of this, the GIF export is pointless. The only way to
use it is to have all your animations occur in the main timeline,
and not within movieclips. It doesn't work for me (and for most
people?), because I need to easily scale my animations, which is
doable by just resizing a movieclip.
Is there a way around this in Flash? Am I missing something?
I've had to use a 3rd-party tool (Magic SWF2GIF) to do the
GIF recording.
My other issue is Flash cannot export transparent GIF's it
seems. Because of this, I have to rely on more 3rd-party GIF tools,
most of which are rubbish.
In the end, I've had to take snap shots of every individual
frame and edit each frame as individual files in Photoshop to do
all the cropping and transparency just right. Real pain when you
are talking 50 frames, and having to do multiple animations.
Is there a way to export transparent GIF's in Flash?
Seems kind of dumb that I have all this high-end software and
loads of tools... and I still have to edit things frame by
frame.Thank you for your reply!
I check exported GIFs in various browsers and XnView viewer.
It's definitely not a preview issue - i have 32Gb of RAM and Nvidia Quadro 4000 GPU on my system.
I believe the issue is with transparency, because i'm able to export GIFs with solid background just fine
GIF export dialogue window has 'Transparency' checkbox, so it looks like it should be possible to export an animated GIF with transparent background, but for some reason i'm getting all frames at the same time
thank you -
Regarding web analysis data export issue
Hi all,
Iam new to web analysis we had a issue on one of the report
I can open the report and i can work perfectly on the report but when i export the data to excel its showing up as fallowing error
FATAL ERROR: gui report is inccorect
In the same application i have some other reports those are working fine and data is being exported to excel for those reports
What might be going with that report Please let me know if you have any ideas.
Thanks,
RameshAs report was exceding 65000 records we have modified the report by adding the pages and reduced the count of output records. So the issue was resolved.
-
i got a user that have issue export with media encoder
when she encode she get this error
any idea
ThanksAny one ?
-
Odd new issue surfaced today - frame animation plays fine when played from timeline but all layers are exported stacked on top of each other for the duration of the whole animation.
I'm able to see that because the layers have transparency.
About animation - 8 frames with in endless loop, imported into a timeline via 'Make Frames from Layers' command in a fly-out menu in the Timeliine window.
Tweens for animation are off, 01.sec delay for all frames
I was able to export animated GIF before, wondering if this issue is tied to the latest update.
Anyone else is experiencing this weird issue?
-thank you
Photoshop CS6 Extended
Windows 7x64 SP1Thank you for your reply!
I check exported GIFs in various browsers and XnView viewer.
It's definitely not a preview issue - i have 32Gb of RAM and Nvidia Quadro 4000 GPU on my system.
I believe the issue is with transparency, because i'm able to export GIFs with solid background just fine
GIF export dialogue window has 'Transparency' checkbox, so it looks like it should be possible to export an animated GIF with transparent background, but for some reason i'm getting all frames at the same time
thank you -
Report - Export issue on some url a href, bad displayed
Hello,
My URL link set-up are because are set as formula, because I'm launching the report viewer from a JAVA apps in Internet Explorer
"<a href='"{?MatrixJPO - Parameter 1 (String)} + "/common/emxTree.jsp?objectId=" +{MatrixJPO.ECO_id} "' title=" "Open ECO:" {MatrixJPO.ECO_name}" target='_blank'>"{MatrixJPO.ECO_name}"</a>+
My issue is that in PDF or XLS or CSV this field is paste as is?
- Is it possible to set-up a conversion for Export ?
Thanks in advance
AlexHi,
Instead of inserting anchor tag (<a></a>) try this
insert a textobject and edit it then drag the field {MatrixJPO.ECO_name} in the text object and right click on the text object and go to format Text and select the Hyperlink Tab and check the option "A Website on the internet" and click on X+2 and write the url in "".
Hope this helps!
Raghavendra
Maybe you are looking for
-
Importing CD's to iTunes fail with "The required folder cannot be found"
I have my iTunes library on an external drive. Everything works fine, except that I cannot import CD's into iTunes. When I try, I get the error "The required folder cannot be found". My work around currently is to: 1. Upfdate my preference for "iT
-
HP 1012 printer with Windows 7 64-bit
Looking for HP 1012 printer driver for Windows 7? You, like me, tried to install the HP 1012 printer onto a computer that ran Windows 7, but to no avail. You need to go to Start --> Devices and Printers --> Add a printer --> Add a local printer -->
-
Nexus 5010 Won't Load System Image - Stuck at Boot Prompt
I have a 5010 that simply won't load any system image. Loads the kickstart image just fine, but once at the Switch(boot)# prompt just give me garbage when I enter "load bootflash:n5000-uk9.5.1.3.N2.1b.bin Restarting system. Loader Version pr-1.3 loa
-
QuickTime Sequencer (SG) and Corrupution of Video Files
Hi, I'm trying to recover/repair video files that an app has produced, and without support from the developers (opensource), am in the process of trying to understand the code in the hopes to find out what went wrong and how it can be fixed. What I'v
-
My iPhone is backing up voice mails and not letting me erase
I have an iPhone 5s and I repeatedly delite erace the voicemails but they keep coming back, help