Script paralell tasks

Hey there,
i am currently writing a script to auomate an admt migration.
On two stages, ich have to wait for availability of targets after reboot.
Today i loop with test-connection through my input file, but this is seriell, so if one target fails all the script stops.....
i tried also to start a "SubScript" by an "for /f in input.txt with start /wait My2ndScript.cmd" and similar solutions, but this starts the scripts and does not wait for completion...
Ideal solution would be to start all the tests paralell and wait for the completion...
I found something about PS Workflows, but didnt dig deeper in this technic until now.
So, which ways could you imagine to realize such thing.....
br
Chris

Hi,
i didnt ask for someone to do this for free!?!
I started a discussion to get feedback of different approaches and views on that topic....
What topic?  Are yo asking about WorkFlows?
I apologize.  I realize now that you don't speak English.  I amguessing that you are asking about WF.  I offered alternate approaches.
Are you asking if you should use WF?  Are you asking what alternate methods are available.
Please clarify?
I suggest that the fastest method to ping several computers is WF.
¯\_(ツ)_/¯

Similar Messages

  • Running a powershell script through task scheduler

    Hi,
    when I run a script using task scheduler, the prompt closes after the script ended. What is the argument to leave the prompt open?
    Thanks,
    Ashley

    Hi Ashromeo,
    Maybe you need to set excution plicy efore you running the script by the following command :
    Set-ExecutionPolicy RemoteSigned
    For details please refer to following link :
    http://technet.microsoft.com/en-us/library/hh849812.aspx
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Assigning Null to a variable in SSIS script component task

    Hi,
    I have created a script component task has codes like the one below.
    If Row.SessionKey is null, how do I assign it to _prevSessionKey? Currently, I am receiving column reference is null error.
    Please help!
    publicclassScriptMain : UserComponent
    { int _prevSessionKey;
    public override void Input0_ProcessInputRow(Input0Buffer Row)
    if (Row.Event == 5)
    _prevSessionKey = Row.SessionKey;
    cherriesh

    you can make it like this
    publicclassScriptMain : UserComponent
    { int _prevSessionKey;
    public override void Input0_ProcessInputRow(Input0Buffer Row)
    if (Row.Event == 5)
    _prevSessionKey = (Row.SessionKey_IsNull? <your default value here> : Row.SessionKey);
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Create script\schedules task to clear local app temp files every 1 hour (PS last modified 2 hrs) ? WINDOWS 2008 R2

    create script\schedules task to clear local app temp files every 1 hour (PS last modified > 2 hrs) ? WINDOWS 2008 R2
     can i have the steps to this...how to do?

    This forum is for scripting questions, not script requests.
    You can search the
    Repository for pre-written scripts, and you can also request scripts at the
    script request page.
    -- Bill Stewart [Bill_Stewart]

  • Using variables in WLST Script ant task

    I have multiple scipts that are run using ant tasks, however, I do not want to have to enter the password every time one of these scripts is executed. Instead I would like to use the following ant task to store the password in a variable/property:
    <target name="getPassword" >
         <echo message="Domain: ${domain}" />
    <echo message="Username: system" />
    <input message="Please enter password:" addproperty="password" />
    </target>
    I would then like to use that variable/property everytime a script is executed like this:
         <target name="deploy4x">
              <echo message="***** Copying 4X.ear *****" />
              <copy file="${build.path}\jar\4X.ear" todir="${apps.dir}" preservelastmodified="true"/>     
              <echo message="***** Updating 4X.ear on ${domain} *****"/>
              <wlst debug="true" fileName="Deploy4X.py" executeScriptBeforeFile="true" failonerror="true" >
                   <script>
                        connect('system','%s' % ${password},'%s' % $url)
                   </script>
              </wlst>
         </target>
    However, the script blows up every time I try to run it b/c of the connect() line. I have also tried connect('system','%s' % password, '%s' % url).
    Has anyone else successfully used variables in an Ant WLST Script task?
    Thanks.

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • Running SFTP from script but Task Scheduler does not like part of it.

    Hello,
    I am trying to do some (not so) simple file copying using SFTP in this manner:
     1) Map a drive to the destination, the SFTP program will not accept UNC paths
     2) Use SFTP to copy the files to the target Server
     3) Write a Timestamped entry to a log file
     4) Remove the source files after copy
     5) Remove the drive mapping
    Everything works but Step two and that only fails running from the Task Scheduler (W2K8 R2).  Running from the command line directly in PowerShell or using the Run box works fine all the way.
    The sftp program is BitVise SSH Client using their log utility.  The makes the command line very complicated.
    The line I use in the Scheduler is powershell "D:\Scripts\SFTP_TPCCommission.ps1" Dev  I have also tried using the -command parameter.  Again, it only does not work in the scheduler.
    Here is how I invoke it:
    $CmdLine = "`"D:\\Program Files (x86)\\Bitvise SSH Client\\logs\\`" sftpc " + $Server + " -pk=1 -cmd=`"put -o -lf Z:\" + $File + " /TPCCommissions`""
    & log ($CmdLine)
    I have also tried a Here String to do the same thing.  It works the same way.
    $ArgText = @"
    "D:\\Program Files (x86)\\Bitvise SSH Client\\logs\\" sftpc $Server -pk=1 -cmd="put -o -lf Z:\$File /TPCCommissions"
    Any ideas?

    In a batch file or at the command (not PS) line the command structure looks like this:
    log "D:\\Program Files (x86)\\Bitvise SSH Client\\logs\\" sftpc <user@server> -pk=1 -cmd="put -o -lf Z:\<Source> /<Destination>"
    The double slashes are requirement of the log program which calls the sftpc program with its command structure.
    The double-quoted section after "-cmd=" is required.  The Z: drive is mapped because the SFTP program does not support UNC paths. (Stupid, but that is all I have to work with.
    What you see in my post is just the part giving me trouble.  I am using PS to keep track of what I am copying to the destination and removing from the source and creating a timestamped log of that activity.
    As to the comment about Task Scheduler, I am using it.  Like I said, it all works fine from anywhere but the Task Scheduler.

  • Automating FDM Integration Script in Task Manager

    Hi everyone
    I have created an Integration Script that copies data from a SQL table to FDM, and is now attempting to automate a daily run in Task Manager.
    To do this it seems I need to create a Custom Script to run the following Integration Script:
    Function LedgerTrans(strLoc, lngCatKey, dblPerKey, strWorkTableName) I am unable to figure out what to write in the Custom Script to trigger the Integration Script. Can anyone explain or give a sample?
    Best regards
    Frederik

    You don't need a custom script, you can just use the batch process to trigger the import for the POV. You would create a standard batch script using the Batch GUI in the workbench (Tools > Batch processing) and then put empty source files in the OpenBatch folder with the POV for the file name to trigger the import script for the POV.

  • Trying to run Power shell Script on task schedule

    My case is i'm trying to run a power shell script through the task schedule.
    Note if i run the script locally it is working fine but from the task schedule it is not working.
    More information: 
    script function: Password Change Notification
    Task name : test3
    Time to do the task: 9:08 am every day
    the status : running 
    .ps1 file location: under C\windows\system32\
    some actions in the task history after the dated time to run:
    1 Task Scheduler launched "{3023b1eb-9b29-47b9-ace2-e6083e2f00cc}"  instance of task "\test3" due to a time trigger condition
    2 Task Engine "S-1-5-21-60622444-1628707926-2526327935-500: enviroment\Admin:S4U:LUA"  received a message from Task Scheduler service requesting to launch task "\test3" .
    3 Task Scheduler started "{3023b1eb-9b29-47b9-ace2-e6083e2f00cc}" instance of the "\test3" task for user "enviroment\admin
    4 Task Scheduler launched action ""C:\Windows\System32\Password Change Notification\Password Change Notification.ps1"" in instance "{3023b1eb-9b29-47b9-ace2-e6083e2f00cc}" of task "\test3
    5 Task Scheduler launch task "\test3" , instance "C:\Windows\System32\notepad.exe"  with process ID 5052

    Hi MeipoXu,
    First of all i would like to thank you for your answer, i followed the URL that you posted already in the previous comment and unfortunately it didn't work, and please find my ps1 file
    content as typed below and give me your feedback on that.
    #  # Version 1.1 May 2014
    # Robert Pearman (WSSMB MVP) # TitleRequired.com
    # Script to Automated Email Reminders when Users Passwords due to Expire.
    # # Requires: Windows PowerShell Module for Active Directory
    # # For assistance and ideas, visit the TechNet Gallery Q&A Page. http://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27/view/Discussions#content
    # Please Configure the following variables....
    $smtpServer="outlook. myDomain " $expireindays = 7
    $from = "الدعم الفني
    <ITHelpDesk@myDomain>"
    $logging = "Enabled" # Set to Disabled to Disable Logging
    $logFile = "PassExpireNotlog.csv" # ie. c:\mylog.csv
    $testing = "Enabled" ## "Enabled" # Set to Disabled to Email Users
    $testRecipient = "MyEmail@MyDomain"
    $encoding = [System.Text.Encoding]::Unicode $date = Get-Date -format ddMMyyyy
    # Check Logging Settings if (($logging) -eq "Enabled")
    {     # Test Log File Path
        $logfilePath = (Test-Path $logFile)     if (($logFilePath) -ne "True")
        {         # Create CSV File and Headers
            New-Item $logfile -ItemType File
            Add-Content $logfile "Date,Name,EmailAddress,DaystoExpire,ExpiresOn,MsgBody"
        } } # End Logging Check
    # Get Users From AD who are Enabled, Passwords Expire and are Not Currently Expired
    Import-Module ActiveDirectory $users = get-aduser -filter * -SearchScope Subtree -SearchBase "OU=UsersOU,DC=MyDomain,DC=MyrootDomain,DC=MYrootNS" -properties Name, PasswordNeverExpires, PasswordExpired, PasswordLastSet,
    EmailAddress |where {$_.Enabled -eq "True"} | where { $_.PasswordNeverExpires -eq $false } | where { $_.passwordexpired -eq $false }
    $maxPasswordAge = (Get-ADDefaultDomainPasswordPolicy).MaxPasswordAge
    # Process Each User for Password Expiry foreach ($user in $users)
    {     $Name = (Get-ADUser $user | foreach { $_.Name})
        $emailaddress = $user.emailaddress
        $passwordSetDate = (get-aduser $user -properties * | foreach { $_.PasswordLastSet })
        $PasswordPol = (Get-AduserResultantPasswordPolicy $user)
        # Check for Fine Grained Password
        if (($PasswordPol) -ne $null)     {
            $maxPasswordAge = ($PasswordPol).MaxPasswordAge
        $expireson = $passwordsetdate + $maxPasswordAge
        $today = (get-date)     $daystoexpire = (New-TimeSpan -Start $today -End $Expireson).Days
                 # Set Greeting based on Number of Days to Expiry.
        # Check Number of Days to Expiry
        $messageDays = $daystoexpire     if (($messageDays) -ge "2")
        {         $messageDays = "خلال
    " + "$daystoexpire" + " ايام"
        }     elseif (($messageDays) -eq "2")
        {         $messageDays = "خلال يومين
        }     else
        {         $messageDays = "اليوم."
        }     # Email Subject Set Here
        $subject="كلمة المرور الخاصة بك ستنتهي
    $messageDays"
           # Email Body Set Here, Note You can use HTML, including Images.
        $body =     "<P style='font-family: Arial; font-size: 16pt' />
        <center> الاستاذ/ $name
    </center> 
        <br>     <center>
    كلمة المرور الخاصة بك ستنتهي $messageDays </center>
        <br>     <center>
    نأمل تغييرها في أقرب فرصة حتي تتمكن من الدخول على النظام
    </center>
        <br>     <center>
    مع تحيات الادارة العامة لتقنية المعلومات
    </center> 
        <br>     </P>"
            # If Testing Is Enabled - Email Administrator
        if (($testing) -eq "Enabled")
        {         $emailaddress = $testRecipient
        } # End Testing     # If a user has no email address listed
        if (($emailaddress) -eq $null)
        {         $emailaddress = $testRecipient    
        }# End No Valid Email     # Send Email Message
        if (($daystoexpire -ge "0") -and ($daystoexpire -lt $expireindays))
        {          # If Logging is Enabled Log Details
            if (($logging) -eq "Enabled")
            {             Add-Content $logfile "$date,$Name,$emailaddress,$daystoExpire,$expireson,$body" 
            }         # Send Email Message
            Send-Mailmessage -smtpServer $smtpServer -from $from -to $emailaddress -subject $subject -body $body -bodyasHTML -priority High -Encoding $encoding
                    } # End Send Message
      } # End User Processing
    # End

  • Executing powershell scripts via Task Scheduler

    Hi,
    I have a powershell script that I wrote that when executed from the shell works fine but when executed from task scheduler does not work.
    In my script, an email is sent out based on the results of the execution.  When I run this from the shell, email goes out, when scheduled, no email and there is no indication of errors having occurred anywhere in the system.
    Has anyone run into a similar issue?
    I did change my powershell execution policy to be unrestricted (both in the x86 and x64 consoles).  I am running Windows 2008 R2.
    Thanks - Greg.

    Hi,
    In addition the above suggestions, please also refer to the below threads:
    Using Task Scheduler for a powershell script on server 2008
    http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/e298d613-47b8-4492-92d1-0b55cc8497c1
     Using Windows Task Scheduler to execute Powershell Script frequently
    http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/5901a6ad-ba18-4817-82a9-f75d2d6b439f
    Hope this helps.
    Best Regards,
    Yan Li
    Yan Li
    TechNet Community Support

  • Executing powershell ise(x86) scripts via Task Scheduler

    hi
    i have powershell script that can only run with powershell ISE(X86)
    and i want to add it to Task Scheduler
    but my problem is when i try to test the script using "Powershell" or "run"  before i add it to the Task Scheduler
    using "powershell" i wrote :
    C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe -file "c:\my path\update.ps1"
     and  it only open the script in powershell ISE(X86) without Executing the script
    how can i  Execute  the script not open it ??

    thanks
    I didnt try your solution
    but i solved the problem
    it was two  step first instead of using Set-Culture
    I use
    $nc = New-Object Globalization.CultureInfo 'ar-kw'
    then i add Type Font 'Courier New' to powershell font
    in regedit.exe
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont
    the character may not be readable in the console because they are from left to right and there are spaces between each character
    but when i update my ADUC or send them to out-file they become readable
    these are the references for  solution
    change the CultureInfo :
    http://www.vistax64.com/powershell/16358-how-do-i-explicitly-set-currentculture.html
    Add Font 'Courier New' to powershell
    http://silentcrash.com/2012/05/how-to-add-hebrew-to-powershell-or-command-cmd-console/

  • Executing powershell script via task scheduler

    Hello,
    I am trying to execute powershell script via windows task scheduler which will forcefully delete all email in a mailbox, but I am getting the below errors
    Operational Code - 2
    Task Category - Action Completed --- Task Scheduler successfully completed task "\IL98" , instance "{2b193375-cbd2-4986-918d-3cfd4027d6b6}" , action "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" with return code 0.
    Last Run Result - 0X0
    When I am adding additional cmdlets in the script "Set-ExecutionPolicy Unrestricted", I am getting Last Run Result 0X5 rest of the error remains the same.
    Powershell version - 3.0
    Task Scheduler version - 1.0
    If I try to run the script manually via Exchange Powershell the script executes without any errors
    Thanks in Advance,
    Ankush Shah

    I figured out the problem, there wasn't any problem with the script but I had to correct inputs in windows task scheuler
    Below is the resolution:
    Under Actions:
        Program/Script --> ws\System32\WindowsPowerShell\v1.0\powershell.exe
        Add Argument --> -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto
    ; <filepath>"
    Eariler I was writing the filepath after double quote "
    Also I have selected the option "Run with Highest Privilages" to avoid
    0x5 error

  • Need help in creating script for "Task Schedule" in Oracle E-Bussiness Suit

    Hi,
    I need some urgent help regarding the scripting of Oracle E-Business Suite application. I am new towards working on Oracle Applications. I have been using LoadRunner 11.0 and protocol oracle applications 11i for the scripting of the application. The problem is as follows:
    Scenario- Schedule an incident to a resource.
    1) Log in to the application.
    2) Open Oracle Forms Page.
    3) Enter the details of the incident number.
    4) Right click on the incident number and then select “schedule” option.
    5) Check / Select the resource listed in the new form.
    6) Click on “schedule” Button.
    7) Exit the oracle forms.
    8) Logout from the application.
    I have recorded the scenario but when I try to run the script, it fails after completing the 4th step from the scenario mentioned above. I have done all the required co-relations..
    Another issue that I have noticed in the scipt is that it records a lot of requests to the AppsTCFServer.
    When I check the Tree View of the script, I have found that there are around 25 requests to the AppsTCFServer recorded in the script. In the header of these requests a TCF Start/Session number gets generated randomly. This number stays the same in few AppsTCFServer request headers and then a new number gets generated and the cycle continues.
    However LoadRunner does not generate this number by itself during replay. I cannot find this number in any previous responses.
    In the last few days, I have tried my hands on Oracle Openscript tool to record the above scenario, but still I am getting the same problem, i.e instead of getting the correct response from the server for the AppsTCFServer requests, I am getting the message "X-session 7098.... not found - aborting ".
    I get this message whether I use LoadRunner tool or the OpenScript tool.
    Please help me solve this issue.
    Thanks & Regards,
    Soumya Mukherjee

    This isn't much of a "code-sharing" site but a "knowledge-sharing" site.  Code posted me may be from a questioner who has a problem / issue / error with his code.   But we don't generally see people writing entire scripts as responses to such questions as yours.  There may be other sites where you can get coding done "for free".
    What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
    But the expectation here is for you to write your own code.
    Hemant K Chitale

  • Shell scripts maintenance tasks for DBA

    Most of companies use shell scripts to monitor DB activities, i just want to make myself familier with the main scripts, and how to manage them. If someone can send me some help material.

    Sorry, I should have been more explicit and not only point to the initial page but directly, where the script library is. And I should have made clear it is not a final product, but the base to build your own library.
    First link (orasnap) refers to the work made by Stewart McGlaughlin, who created a comprehensive collection of frequently used dba scripts. He compiled those scripts into an utility named orasnap. This you can download it from his yahoo site, if you take enough time to follow the links. Out from this collection of scripts I have personally taken several to tailor them into specific Unix/Dos shell maintenance scripts. I mean the homework is not finished, Out from his work I have taken a good base to build my own most frequently used Shell Maintenance Library.
    The second link belongs to Tim Hall (http://www.oracle.com/technology/community/oracle_ace/ace1.html#hall) whose remarkable work has greatly contributed to the Oracle technical community daily job. Once again, this site doesn't have finished shell scripts for you simply to cut and paste, but the dba scripts I pointed plus a little effort and several interesting concepts and tips you can find navigating through his site turn this site into a first hand reference.

  • Running a SQL Script during task sequence

    We are about to roll out new workstations to our entire enterprise.  With that rollout comes updated software.  The primary application that our end users work with on a daily basis uses SQL Express 2008 R2.  A challenge that we've come across
    is with a SQL script that we need to run, after the workstation has joined our domain.  I have created a batch file, and copied it to the same directory as the AddADGroup.sql script.  I have created an application in SCCM to run the batch file and
    SQL script.  The following is the batch file:
    @echo off
    Set Path=%path%;C:\Program Files\Microsoft SQL Server\110\Tools\Binn
    echo.
    SQLCMD -S .\SQLEXPRESS -U sausername -P xxxxxxxxxxxxxxxxx -i AddADGroup.sql
    echo.
    What I need to know is how to get this batch file to run, and be successful (about 4000 times).  Is running this batch file the best practice?  If not, what is the alternative?
    Thanks! Nate

    Hi,
    The following blog describes that how to deploy bat and script by Packages. 
    SCCM 2012 – deploying bat files and scripts
    (Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice.
    Microsoft does not guarantee the accuracy of this third-party contact information.)
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Exchange 2013 mailbox auditing command with showdetails parameter in ps1 script is not working via task scheduler

     
    Hi All ,
    In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
    We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the  ps1 script  in exchange management shell ,i can able to get the relevant output.
    CMDLETS in powershell script :
    Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
    Note : we are having only the above commands in ps1 script , apart from that we don't have anything in it .
    Sametime i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it . 
    Steps handled on my side to run the powershell script in task scheduler: 
    1.when i remove the parameter showdetails in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
    The Difference what i have seen between exchange 2010 and exchange 2013 
    when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
    I am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
    program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add arguments : -PSConsoleFile "E:\Program Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
    I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
    Error message : "the requesting account does not have permission to access the audit log"
    Please help me out to resolve this case .
    Thanks 
    S.Nithyanandham

    Hi All ,
    In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
    We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the  ps1 script  in
    exchange management shell,i can able to get the relevant output.
    CMDLETS in powershell script :
    Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
    Note : we are having only the above commands in ps1
    script , apart from that we don't have anything in it .
    In case, if i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it . 
    Steps
    handled on my side to run the powershell script in task scheduler: 
    1.when i remove the parameter showdetails
    in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
    The
    Difference what i have seen between exchange 2010 and exchange 2013 
    when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
    I
    am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
    program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add arguments : -PSConsoleFile "E:\Program
    Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
    I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
    Error message : "the requesting account does
    not have permission to access the audit log"
    Please help me out to resolve this case .
    Thanks 
    S.Nithyanandham

Maybe you are looking for

  • How do I keep layers from auto-expanding in the Layers Palette?

    Hello all. I'm working on a rather complex piece of artwork in Illustrator CC with the latest Mac OS, with several objects on each layer. Whenever I click an object, its layer in the Layers palette auto-expands, pushing all of the main layers off of

  • Differences between Personal and Enterprise editions

    Does anybody know where to find the main differences between Personal and Enterprise editions? Thanks

  • Question to those who do Direct Procurement in EBP

    Hello, I just have a simple question to those who have confgured and process Direct Procurement in EBP....     If you click the 'Order as Direct' button, can you click it again to revert back? If     not, what is your process to revert back? If you c

  • Isn't there any sound output on HP w2558hc??

    I can't find out how to get any sound OUT (for headset) of my screen...is it just me beeing silly or isn't there plugin  pls help

  • Problem viewing and reading blog posts

    I have several friends comment to me that they have trouble viewing and reading my blog posts. They have told me when the click on the "read more" to read the entire blog posts, it jumbles the pictures and text together so they can't see or read any