Is it possible to catch a PowerShell script output when an exit code is setted?

Hi,
i'm using TEO 2.1.2 with the hotfixes from 1 to 12 already installed and i have a problem using the "Execute Windows PowerShell Script" in reading the output of a PowerShell script if an exit code is expressly setted . For example if i try to execute a script like:
the output given by the activity is only 0 (like the exit code).
This is a problem if i use a script with multiple exit codes corrisponding to different kind of situations and different outputs like the following:
if($flag -eq "0")
   Write-output "Hello"
   exit 0
elseif ($flag -eq "1")
   Write-output "Error 1"
   exit 1
else
  Write-output "Error 2"
  exit 2
or if i call an executable which exit codes i want to identify by a readable description.
Anyone knows a way to solve this issue?
Thanks a lot,
bye.
Giulio

Thanks Shaun,
i was already looking toward this kind of approch, but i was also curious if there was a different way of doing this.
Anyway just a little annotation about your line of code, in Tidal 2.1.2 at least, Write-host doesn't work right, echo or Write-Output are fine but Write-host seems to be ignored. To the following script:
the output is
Maybe i'm missing something. Regarding an upgrade, as a devoloper i'd really like to try the improvement of the new version but this is not a decision I can make.
Thank you,
bye.
Giulio

Similar Messages

  • EA3/EA2/EA1 - Script output when creating/altering objects

    Another picky post :)
    I noticed something odd with the script output when altering objects as part of running a script (F5). When running an alter command with more than a two separating characters (ie space, tab or new line) between any of the alter, object type or object name, the object name is not reported in the script output. However, when there is only a single separating character, the object name is reported in the script output. If I have three separating characters between the alter and the object type, the object type isn't reported in the script output either.
    For example:
    alter view  my_view compile;
    alter  view my_view compile;
    alter view my_view compile;
    alter   view my_view compile;Generates the following in script output:
    alter view  succeeded.
    alter  view succeeded.
    alter view my_view succeeded.
    alter   succeeded.When running the first three of these as a statement (F9), the status line shows "alter view Statement Processed". When running the last one, we only get "alter Statement Processed".

    Also noticed that there is a similar problem with create statements, for example:
    create or replace force view my_view as select * from dual;
    create  or replace force view my_view as select * from dual;
    create or  replace force view my_view as select * from dual;
    create or replace  force view my_view as select * from dual;
    create or replace force  view my_view as select * from dual;
    create or replace view my_view as select * from dual;
    create  or replace view my_view as select * from dual;
    create or  replace view my_view as select * from dual;
    create or replace  view my_view as select * from dual;Generates the following script output:
    create or replace force succeeded.
    create  succeeded.
    create or succeeded.
    create or replace  succeeded.
    create or replace force succeeded.
    create or replace view succeeded.
    create  succeeded.
    create or succeeded.
    create or replace  succeeded.Note that in this case the feedback on the status line when running each of these as a statement matches the script output (except succeeded is replaced by Statement Processed).

  • Error while executing a uinx script in BODS job - exit code 127

    I am executing a UNIX script using BODS job and it is giving an error message saying 'Program terminated because of exit code 127'. The same script i am able to execute in UNIX. I am not able to find the solution for this.

    Using a print command with return code 8 should give more insight to the error.
    print(exec('sh \bin','<your command>',8));

  • Report Script output in UTF-8 code with Non-Unicode Application

    Essbase Nation,
    Report Script output (.txt) file is being coded as UTF-8 when the application is set to Non-unicode. This coding creates a signature character in the first line of the text file, which in turn shows up when we import the file into Microsoft Access. Does anyone know how to change the coding of the output file or know who to remove the UTF-8 signature character.
    Any adive is greatly appreciated.
    Thank you.
    Concerned Admin

    You may be able to find a text editor that can do the conversion. Alternatively, I have converted from one encoding to the another programmatically using Java as well.
    Tim Tow
    Applied OLAP, Inc

  • How to save in CSV or TXT file the Powershell script output?

    Hi,
    I am not sure how to expot this to csv/TXT file, should I use export-csv "c:\test.csv" ?
    my code:
    $site = Get-SPSite "http://tst.pg.com/sites/tsta"
    Write-Output("`n" + $site.URL)
    $myweb = $site.AllWebs | where {$_.url -eq $site.url}
    Foreach ($list in $myweb.Lists) 
    if($list.BaseType -eq "DocumentLibrary")
          Write-Output("")
    Write-Output("Doc Library Name:" + $list.Title)                
    Write-Output($list.roleassignments | ft Member,RoleDefinitionBindings -auto)
    }$site.dispose()

    Hi there - If you just want to dump the output as a txt file, how about the following?
    .\yourpowershell.ps1 > output.txt
    Please remember to mark your question as answered and vote it helpful if this solves or helps with your problem. *******************************************************************************************************

  • Powershell script for when user last used their AD account to login or unlock a computer.

    I want to create a method for determining when a users account would expire after 35 days of inactivity.
    The issue would be not when they last logged on, as many of our users just lock their machines, but when they last logged on or unlocked any computer in the domain.
    I am thinking a combination of last logon with a session unlock parameter.
    In the system logs:
    Event viewer id for logon unlock is 7.
    SessionSwitchEventArg - SessionSwitchReason is SessionUnlock.
    Is this feasible?

    dsget user -inactive 30
    Don't reinvent the wheel.
    http://technet.microsoft.com/en-us/library/cc725702.aspx
    ¯\_(ツ)_/¯

  • Executing a powershell script for checking duplicate users while creating a AD user throug ADUC console.

    Hi,
    I have a text file in which some SamAccountNames are present.I need to check the file while creating a new users through ADUC console.If a username that is going to create through ADUC console is present in the file, then it should prompt a message
    that the user is already present in the text file.
    Is there any possibility of contacting the powershell script from the ADUC console.If so, then while creating a new user through ADUC console, what is the proceedure for executing that powershell script.
    please provide me the approriate solutions.
    Thanks
    Prasanthi k

    Run the below Powershell Script for users are exist or not in AD. Later you can create the users.
    #Find Users exist in AD or Not?
    #Biswajit Biswas
    $users = get-content c:\users.txt
    foreach ($user in $users) {
    $User = Get-ADUser -Filter {(samaccountname -eq $user)}
    If ($user -eq $Null) {"User does not exist in AD ($user)" }
    Else {"User found in AD ($user)"}
    Active Directory Users attributes-Powershell
    http://gallery.technet.microsoft.com/scriptcenter/Getting-Users-ALL-7417b71d
    Regards~Biswajit
    Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
    MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
    MY BLOG
    Domain Controllers inventory-Quest Powershell
    Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
    Generate a Report for installed Hotfix for Bulk Servers

  • How to forward alerts by powershell script in OCUM 6.3

    Hi all Finally the new OCUM Version 6.3RC1 offers the possiblity to forward alerts by script. I eagerly awaited this feature, because I use it on DFM for my 7-mode Systems already. The Problem for me now is, that I can't find any documentation on how to create such scripts.My idea is it to create a powershell script where I can handle the alerts, set some severity rules on it and forward it to our event and alert collector System, which then  creates incidents and attach it to the operations teams. For all my scripts I create I use logfiles. How do I create a logfile in such a script I attach to OCUM and where can I store These logfiles? Does anyone has an idea about this? Maybe some  examples would be helpful. thx and regardssandsturm

    Hi all Finally the new OCUM Version 6.3RC1 offers the possiblity to forward alerts by script. I eagerly awaited this feature, because I use it on DFM for my 7-mode Systems already. The Problem for me now is, that I can't find any documentation on how to create such scripts.My idea is it to create a powershell script where I can handle the alerts, set some severity rules on it and forward it to our event and alert collector System, which then  creates incidents and attach it to the operations teams. For all my scripts I create I use logfiles. How do I create a logfile in such a script I attach to OCUM and where can I store These logfiles? Does anyone has an idea about this? Maybe some  examples would be helpful. thx and regardssandsturm

  • PowerShell Script to Create a Contact Card and Enable Email Forwarding

    Exchange 2010
    Can anyone help with creating a powershell script to create a contact card and set email forwarding at the sametime?
    I'm looking to import a list of 200 users via a text or csv file, create the contact card with first name, middle initial if one exists, last name, (no alias) and put the contact card in the following OU "DIS###" in the a.b.c.com domain as well
    as enable forwarding to @mail.com.
    I've been able to create a script to enable mail forwarding but it doesn't help me without a contact card.  I hate to put this upon anyone, but my ps scripting and Exchange knowledge is still in it's infant stage and I need get this done post haste

    Q:Import csv: Does this contain 200 mailboxes name
    A:It contains 200 user logon names.
    For the mail forwarding:
    I currently have a csv file with two columns -- one named displayname and the next call mailaddress.  Under the displayname column I have the users account name (first.mi.last -- middle initial if they have one) and under mailaddress i have @mail.com.                                                                                                           
    script:                                                                                                                                                                    
    Import-CSV C:\setmailforwarding\mailforwarding.csv | foreach-Object{Get-Mailbox $_.displayname | set-Mailbox -forwardingAddress $_.mailaddress}
    The above script should work if the contact card has been created.  Obviously I need to create the card first.
    I don't have a script to set up the contact card as of yet -- I was hoping to get some help on that.
    Q:E-mail forwarding: Is this  from  mailboxes to mail contact, you will be creating
    A:Not really sure what you are asking.  I'm looking to create the contact card with a csv or txt file for first name, middle initial if one exists, last name, (no alias) and put the contact card in the following OU "DIS###" in the a.b.c.com domain as
    well as enable forwarding to @mail.com.  The users current email is @mail.1234.com and we will be migrating our mailboxes to another organization that uses @mail.com.  I will need to set forwarding in the interim until the migration is complete.
    Hope this helps.

  • Problems signing Powershell Scripts

    Hi world,
    I'm trying to sign a powershell script with a self issued code signing certificate. I created the certificate using following command lines:
    "makecert.exe" -n "CN=Code Signing Certificate Root" -a sha1 -eku 1.3.6.1.5.5.7.3.3 -r -sv "%Temp%\MakeMyCert\MyCERT.pvk" "%Temp%\MakeMyCert\MyCERT.cer" -ss Root -sr localMachine
    "makecert.exe" -pe -n "CN=My Certificate" -ss MY -a sha1 -eku 1.3.6.1.5.5.7.3.3 -iv "%Temp%\MakeMyCert\MyCERT.pvk" -ic "%Temp%\MakeMyCert\MyCERT.cer"
    "pvk2pfx.exe" -pvk "%Temp%\MakeMyCert\MyCERT.pvk" -pi "%Password%" -spc "%Temp%\MakeMyCert\MyCERT.cer" -pfx "%Temp%\MakeMyCert\MyCERT.pfx" -po "%Password%"
    After that I try to sign my script using the MyCert.pfx file. I made sure, that the PS1 powershell script file is saved in UTF-8. I use following powershell commands (I'm asked for a Password after Get-PfxCertificate):
    $cert=Get-PfxCertificate .\MyCert.pfx
    Set-AuthenticodeSignature .\MyScript.ps1 -Certificate $cert
    The result I get is "UnknownError", though the signature block gets written into the MyScript.ps1 file. If I read the Authenticode signature using
    Get-AuthenticodeSignature .\MyScript.ps1
    it still gives me the Signer Certificate followed by "UnknownError". I really don't know where to search. As mentioned before, it is not the Encoding issue. I already played around saving the PS1 file in ASCII, UTF-8, UTF-8 w/o BOM. It doesn't
    make any difference.

    I think I found the problem. Do not use pvk2pfx.exe to create your pxf file. This works in Win 7 but no longer in Win 8.1 or 2012 R2. You manually need to export the certificate including the key using certmgr.msc and save it as PFX file. Then you can use
    this file with the Get-PfxCertificate commandlet.
    This way it also works in Win 8.1 and Server 2012 R2.

  • Creating scheduled task to run powershell script

    Hi all,
    been following this guide on how to create scheduled task to run a .ps1 script:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx
    When I manually run this task,in the history it says success, but it doesnt work.
    The script should create a report and send me an e-mail.It works fine if i run it manually in Windows powershell or Powershell ISE.
    I cannot see that a new report have been created either.
    Anything im missing here?
    Been using same account to run it manually and the one using in task scheduler.
    thanks!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

    Hi all,
    been following this guide on how to create scheduled task to run a .ps1 script:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx
    When I manually run this task,in the history it says success, but it doesnt work.
    Try executing the same command in cmd line, do you get a different result? or does that work as well?

  • Powershell Syntax working when run in cmd, but when run through SCCM2007 Task Sequence it claims the syntax is incorrect?

    The code below is a simple powershell statement which enables me to change the execution policy so that I can run powershell scripts. When I run this in a normal windows enviroment the statement will work fine, not giving me an issue whatsoever. However,
    whenever it runs in the task sequence the TS fails. I am running this via the command line option in the task sequence, each time running this step as 3 different types of administrators.
    powershell.exe -noninteractive Set-ExecutionPolicy -ExecutionPolicy unrestricted
    Checking the log file it states this:
    Set-ExecutionPolicy : The term 'Set-ExecutionPolicy' is not recognized as the InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    name of a cmdlet, function, script file, or operable program. Check the InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    spelling of the name, or if a path was included, verify that the path is InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    correct and try again. InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    At line:1 char:1 InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    + Set-ExecutionPolicy -ExecutionPolicy unrestricted InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    + ~~~~~~~~~~~~~~~~~~~ InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    + CategoryInfo : ObjectNotFound: (Set-ExecutionPolicy:String) [], InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    CommandNotFoundException InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    + FullyQualifiedErrorId : CommandNotFoundException InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
    Failed to run the action: Script Exception.
    Incorrect function. (Error: 00000001; Source: Windows) TSManager 13/10/2014 17:28:09 2716 (0x0A9C)
    I am new to both SCCM and Powershell, but from my point of view, this should work, considering that the syntax is not actually incorrect? Please could anyone with any idea drop some hints and tips on how to
    stop this issue.

    I'm not using 3 admin accounts at once if that's how it sounded. I have tried 3 different Admin accounts because I felt that perhaps the difference in permissions may have made a difference in whether I was able to run the syntax and scripts. So I tried
    using my own personal administrator account, the SCCMNA account, and the local admin account, which I read worked.
    At this point in the task sequence I have:
    - Installed the OS
    - Connected to the domain
    - Installed Applications such as; Flash, Shockware, Reader etc.
    Once it has installed the last application within a folder called "Helper Apps" (Which contains various Java and Adobe apps which install fine) it will then run a "Use Toolkit Package" using the MDT toolkit, once this stage is complete
    it then progresses to the Script Exception section of the TS.
    powershell.exe -noninteractive Set-ExecutionPolicy -ExecutionPolicy unrestricted
    I obviously need this to work otherwise I am not allowed to run the script, but because this syntax is "incorrect" it stops the task sequence.
    I hope this information might shed some more light on the situation.

  • Auto-clear previous script output on running next command

    Hi
    Is there a way to auto-clear the previous script output when i run the next sql? Thanks
    Rgds
    Ung

    As for now, you may manually use Clear button on it.
    Out of my curiosity, why would you need to automatically clear the previous output?
    Here is another consideration, if your statement contains error, would you still want it to be automatically erased?
    IMO, keeping the previous output is really preferable.
    Please notice there are two ways of executing command, using F9 (execute) and F5 (run script). Both of them are reported under Script Output tab.
    Imagine after executing update or delete statement followed by commit, currently you may still see the information on inflicted record instead of having the script output only containing "commited".
    Or... you execute many updates, and still can see the whole count of updated records, instead of getting the last one only.
    As for now, I am very disagree with this feature.
    Regards,
    Buntoro

  • Is it possible to monitor State change of a .CSV file using powershell scripting ?

    Hi All,
    I just would like to know Is it possible to monitor State change of a .CSV file using powershell scripting ? We have SCOM tool which has that capability but there are some drawbacks in that for which we are not able to utilise that. So i would like
    to know is this possible using powershell.
    So if there is any number above 303 in the .CSV file then i need a email alert / notification for the same.
    Gautam.75801

    Hi Jrv,
    Thank you very much. I modified the above and it worked.
    Import-Csv C:\SCOM_Tasks\GCC2010Capacitymanagement\CapacityMgntData.csv | ?{$_.Mailboxes -gt 303} | Export-csv -path C:\SCOM_Tasks\Mbx_Above303.csv;
    Send-MailMessage -Attachments "C:\SCOM_Tasks\Mbx_Above303.csv" -To “[email protected]" -From “abc@xyz" -SMTPServer [email protected] -Subject “Mailboxex are above 303 in Exchange databases” -Body “Mailboxex are above 303 in Exchange databases" 
    Mailboxex - is the line which i want to monitor if the values there are above 303. And it will extract the lines with all above 303 to another CSV file and 2nd is a mail script to email me the same with the attachment of the 2nd extract.
    Gautam.75801

  • [PowerShell] Script to restart a service and its dependents (and their dependents)

    I am trying to write a PowerShell script that will restart the SNMP Service on a server.  The server in question is an HP server that has the various HP Insight agents installed, and some of these depend on the SNMP Service.  One of these services
    also depends on one of the other HP Insight services (that in turn depends on SNMP Service).
    I can easily write a script that stops and starts the specific services in order, but I don't want to do that.  I like to create scripts that are as flexible as possible.  In this case, I'd like to write a script that takes a service name as input
    and can restart that service, including any dependents (and dependents of those dependents, and dependents of those dependents).  They way to do this seems to be recursion, but I simply cannot get it to work correctly.  Here is what I have so far
    (just trying to get the services to stop in the correct order):
    $MainServiceName = "SNMP"
    $ServiceInput = ""
    $CurrentService = ""
    $Service = ""
    function Custom-Stop-Service ($ServiceInput)
    Write-Host "Name of `$ServiceInput: $($ServiceInput.Name)"
    Write-Host "Number of dependents: $($ServiceInput.DependentServices.Count)"
    If ($ServiceInput.DependentServices.Count -gt 0)
    ForEach ($Service in $ServiceInput.DependentServices)
    Write-Host "Dependent of $($ServiceInput.Name): $($Service.Name)"
    If ($Service.Status -eq "Running")
    Write-Host "$($Service.Name) is running."
    $CurrentService = Get-Service -Name $Service.Name
    Custom-Stop-Service $CurrentService
    Write-Host "Stopping service $($CurrentService.Name)"
    Stop-Service -Name $CurrentService.Name -Force
    Else
    Write-Host "$($Service.Name) is stopped."
    Else
    Write-Host "Stopping service $($ServiceInput.Name)"
    Stop-Service -Name $ServiceInput.Name
    $MainService = Get-Service -Name $MainServiceName
    If ($MainService.Status -eq "Stopped")
    Write-Host "Service $($MainService.Name) is already stopped."
    Else
    Custom-Stop-Service $MainService
    However, it doesn't work like I expect.  Firstly, it never attempts to stop the SNMP service itself.  Secondly while it does seem to stop all the dependents of SNMP correctly, it tries to stop CqMgHost twice.  Here is the output:
    PS C:\Scripts> .\restart_service.ps1
    Name of $ServiceInput: SNMP
    Number of dependents: 4
    Dependent of SNMP: CqMgHost
    CqMgHost is running.
    Name of $ServiceInput: CqMgHost
    Number of dependents: 0
    Stopping service CqMgHost
    WARNING: Waiting for service 'HP Insight Foundation Agents (CqMgHost)' to finish stopping...
    WARNING: Waiting for service 'HP Insight Foundation Agents (CqMgHost)' to finish stopping...
    WARNING: Waiting for service 'HP Insight Foundation Agents (CqMgHost)' to finish stopping...
    WARNING: Waiting for service 'HP Insight Foundation Agents (CqMgHost)' to finish stopping...
    Stopping service CqMgHost
    Dependent of SNMP: CqMgStor
    CqMgStor is running.
    Name of $ServiceInput: CqMgStor
    Number of dependents: 1
    Dependent of CqMgStor: CqMgHost
    CqMgHost is stopped.
    Stopping service CqMgStor
    Dependent of SNMP: CqMgServ
    CqMgServ is running.
    Name of $ServiceInput: CqMgServ
    Number of dependents: 1
    Dependent of CqMgServ: CqMgHost
    CqMgHost is stopped.
    Stopping service CqMgServ
    WARNING: Waiting for service 'HP Insight Server Agents (CqMgServ)' to finish stopping...
    WARNING: Waiting for service 'HP Insight Server Agents (CqMgServ)' to finish stopping...
    Dependent of SNMP: CpqNicMgmt
    CpqNicMgmt is running.
    Name of $ServiceInput: CpqNicMgmt
    Number of dependents: 1
    Dependent of CpqNicMgmt: CqMgHost
    CqMgHost is stopped.
    Stopping service CpqNicMgmt
    Can someone suggest a different script or changes to my script so that it will do what I want?  I know that "Stop-Service -Name SNMP -Force" will work but there are two problems with this: 1) it doesn't record the stop events for the dependents in the
    Event Viewer and 2) it doesn't work in reverse ("Start-Service -Name SNMP -Force" nor "Restart-Service -Name SNMP -Force" restart the main service and the other services that depend on SNMP that were stopped).
    I'm a little surprised that Restart-Service doesn't behave like the restart function in the Services MMC does, where it easily and reliably handles the stops and starts of not only the service itself, but dependent services and also properly does event logging.

    I decided to try to understand why you see layers of dependencies.  I found that on WS2008 R2 HP managemnet does have a second layer.  It does not incluse anything but subservices from HP>  VSC is not  a dependency and, from my research,
    should not ever be a dependency.  Of course this does not stop someone from making it a dependency which could create issues.
    Here is a recursive function that will display all dependencies of any service or all services,
    The code returns the service names in order and can be used to restart all services in dependent order.
    function Get-Depends{
    [CmdLetBinding()]
    Param(
    $servicename='SNMP',
    $level = 0,
    [switch]$infoonly
    try{
    Write-Verbose $($("`t" * $level)+$servicename)
    $servicename
    $services=get-service $servicename -ea stop | where{$_.dependentservices}|select -expand dependentservices
    if($services){
    $services | %{Get-Depends $($_.Name) ($level+1) }
    catch{
    $_
    $depends=Get-Depends -v
    The verbose switch displays a hierarchical display of names to ilustrate the dependencies.
    jv

Maybe you are looking for

  • How can I change the order of my sidebar in Lion?

    I prefer to have my devices at the top of my sidebar list in the Finder (as it was in Snow Leopard), rather than my Favorites (All My Files, Airdrop, etc). Is it possible to bring devices back to the top of the ordering system? Thanks!

  • Java Applet fails to run after JRE upgrade

    I had JRE 1.6 which was updated to 1.8.0_31. After this update my applet has stopped working and I am getting below error java.lang.ExceptionInInitializerError   at com.sun.deploy.net.protocol.https.Handler.openConnection(Unknown Source)   at java.ne

  • Problem with activeX objects

    hi all, i am having a problem with activeX objects. my activeX ( Tree View) is wrking fine with windows2000 but when i am trying the same code with XP its saying dll missing. do these activeX depends on OS also.. plz help me.

  • Why do i get 2 notifications of the same email on my home screen?

    Using Mail, when the phone is idle and I get a banner notification, there are always 2 of the same message.  The Mail client only shows one. iPhone 5 ver 6.0 VZW gmail

  • How to import VLC downloads into final cut?

    my new final cut express does not accept VLC trailers which i downloaded , can i transform VLC into Quicktime?