Variable comparison in powershell

In my attempts to work powershell into some of my automation scripting I've encountered something I can't make sense of. Here's the scenario. I have two command prompt windows open on a Windows 8.1 machine. Both are pointed to the same directory. In one
window I launch the following powershell script:
do {
$request = get-content relayrequest.txt
echo $request
} until ($request -contains '1')
The text file initially contains 0, so the loop begins printing a column of 0's on the screen.  Meanwhile from the other command prompt window I type:
echo 1 >relayrequest.txt
and press enter.  The DO loop immediately reflects the change and begins printing a column of 1's on the screen, but does NOT end the loop.  Why isn't this variable comparison working.  I've tried it various ways and can't get the comparisons
to work.  What am I missing?

The result of Get-Content is an array if there is more than one line in the file.  But there isn't.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Doesn't matter:
PS C:\scripts> echo 1 > file.txt
PS C:\scripts> $x=Get-Content file.txt
PS C:\scripts> $x -contains '1'
True
¯\_(ツ)_/¯
It doesn't for this operation, but the idea that it's always going to be an array isn't quite right.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
The script works as needed.  "-contains"  ssees the while line at once.  When it is not an array then it makes it an array of one and checks.
Food for thought:
PS C:\scripts> '11111' -contains '1'
False
PS C:\scripts> '1' -contains '1'
True
PS C:\scripts> ('11111')[0] -contains '1'
True
PS C:\scripts> ('11111').ToCharArray() -contains '1'
True
PS C:\scripts> ('22212').ToCharArray() -contains '1'
True
PS C:\scripts>
¯\_(ツ)_/¯

Similar Messages

  • Using a variable in a Powershell search and replace string

    Hi
    a couple of days ago I posted a question about doing a search and replace with wildcards
    Search and repalce with Widcards
    I got a swift and very helpful answer but now I need to build on it.
    In a text file I wanted to replace all the text between two defined words.  the script I got was this
    $text = 'Some Server this bit of text varies Language stuff'
    $text -replace '(.*Server) .+? (Language.*)','$1 it will always say this $2'
    It works great but now I want to replace "it will always say this" with a variable and I can't figure out the correct grammar to make this happen.
    Can anyone help??
    Thanks
    Alex

    Here's one way:
    $replace = 'it will aways say this'if ( $text -match '(.*Server) .+? (Language.*)' )
    { "{0} $Replace {1}" -f $matches[1,2] }
    else { $text }
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Associative array two variable comparison :update table error

    Hi,
    i am using associative array to update the version number of table
    -i declare two associative array to compare the column from two table (temp,main tables)values in loop
    -if id's of both variable(for temp and main table) are equal and column of either of table not matching then it should update the version no of temp table
    -if id's not equal i.e record only exists temp table then update null version number annd increment it by 1
    -following is the structure and procedure --it shows the matching and non matching records but for the update statement it not giving expected output i.e it updates all records irrespective of the condition provided
    -i tried to put condition in update as well as in the  if statement but it updates all record
    ....suggestion and help highly appreciate. thankx in advance !!!
    /*--table structure and data--*/
    CREATE TABLE "TEMP_TABLE"
       ( "ID" NUMBER NOT NULL ENABLE,
      "COL1" VARCHAR2(20 BYTE),
      "COL2" VARCHAR2(20 BYTE),
      "VERSION" NUMBER
       INSERT INTO TEMP_TABLE VALUES (101,'A','B',NULL);
       INSERT INTO TEMP_TABLE VALUES (102,'x','y',NULL);
       INSERT INTO TEMP_TABLE VALUES (103,'r','t',NULL);
       CREATE TABLE "MAIN_TABLE"
       ( "ID" NUMBER NOT NULL ENABLE,
      "COL1" VARCHAR2(20 BYTE),
      "COL2" VARCHAR2(20 BYTE),
      "VERSION" NUMBER
       INSERT INTO MAIN_TABLE VALUES (101,'A','B',1);
    /*------update version procedure----------*/
    DECLARE
      TYPE T_tmp_table IS TABLE OF tmp_table %ROWTYPE INDEX BY PLS_INTEGER;
      TYPE T_main_table IS TABLE OF main_table%ROWTYPE INDEX BY PLS_INTEGER;
      l_tmp_table T_tmp_table;
      l_main_table T_main_table;
      BEGIN
        SELECT * BULK COLLECT INTO l_tmp_table FROM tmp_table;
        SELECT * BULK COLLECT INTO l_main_table FROM main_table;
        FOR i IN 1 .. l_tmp_table.count
        LOOP
          FOR j IN 1 .. l_main_table.count
         LOOP
      if(l_tmp_table(i).ID = l_main_table(j).ID AND l_tmp_table(i).VERSION IS NULL) then     
      ---this first if loop updates temp table version irrespective of l_tmp_table.ID=l_main_table.ID orl_tmp_table. ID<>l_main_table.ID  .it display proper matching and non-matching records.
       dbms_output.put_line('matching ids from tmp and main are :'||l_tmp_table(i).ID||'  '||l_main_table(j).ID);
       UPDATE tmp_table SET VERSION = l_tmp_table(i).version +1;
       --where l_tmp_table(i).ID = l_main_table(j).ID     --
       end if;
      if (l_tmp_table(i).ID <> l_main_table(j).ID) then
       dbms_output.put_line('non matching ids from tmp and main are :'||l_tmp_table(i).ID||'  '||l_main_table(j).ID);
       UPDATE tmp_table SET VERSION = l_tmp_table(i).version +1;
       --where l_tmp_table(i).ID <> l_main_table(j).ID    
        end if;
              END LOOP;
              END LOOP;
        EXCEPTION
        WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('OTHER');
    END;

    Hello user8937641
    I think there is a problem with the logic of your SQL-Code.
    But maybe in this formatted structure you can see where your problem is. -> I can not say it because I do not know what is the requirement.
    I hope it helps...
    /*------update version procedure----------*/
    DECLARE
      TYPE T_tmp_table IS TABLE OF tmp_table %ROWTYPE INDEX BY PLS_INTEGER;
      TYPE T_main_table IS TABLE OF main_table%ROWTYPE INDEX BY PLS_INTEGER;
      l_tmp_table T_tmp_table;
      l_main_table T_main_table;
      BEGIN
        SELECT * BULK COLLECT INTO l_tmp_table FROM tmp_table;
        SELECT * BULK COLLECT INTO l_main_table FROM main_table;
        FOR i IN 1 .. l_tmp_table.count
        LOOP
          FOR j IN 1 .. l_main_table.count
          LOOP
            IF     l_tmp_table(i).ID = l_main_table(j).ID
               AND l_tmp_table(i).VERSION IS NULL
             THEN
                 ---this first if loop updates temp table version irrespective of l_tmp_table.ID=l_main_table.ID orl_tmp_table. ID<>l_main_table.ID  .it display proper matching and non-matching records.
                 dbms_output.put_line('matching ids from tmp and main are :'||l_tmp_table(i).ID||'  '||l_main_table(j).ID);
                 UPDATE tmp_table
                    SET version = l_tmp_table(i).version +1;
                  WHERE id = l_tmp_table(i).ID
            END IF;
            IF l_tmp_table(i).ID <> l_main_table(j).ID
             THEN
               dbms_output.put_line('non matching ids from tmp and main are :'||l_tmp_table(i).ID||'  '||l_main_table(j).ID);
               -- Maybe you do not need this update:
               UPDATE tmp_table
                  SET version = l_tmp_table(i).version +1;
                WHERE id =  l_tmp_table(i).ID
            END IF;
            COMMIT;
           END LOOP;
        END LOOP;
      EXCEPTION WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('Error at Executing the PLSQL-Block - ' || SQLERRM);
    END;

  • Prompt using SQL Results with row-wise session variable comparison

    I have a prompt on Department and I only want the departments to show that have been authorized via a session variable for that user. The session variable can return can return multiple values and is set as row-wise. The session variable is returning results and have been used successfully in an application filter.
    I'm trying to put the correct SQL statement and this syntax doesn't work:
    SELECT "Department"."Department Code" 
    FROM "UBC Financials - YTD Table"
    WHERE  "Department"."Department Code" = '@{DEPT_LIMITS}'
    Can someone give me an example that does work?
    Thanks,

    Try something like WHERE  "Department"."Department Code" = VALUEOF(NQ_SESSION."DEPT_LIMITS")
    or else filter on department and then hit on add then Session variable
    ~ http://cool-bi.com

  • Powershell Variable from Excel.VBA Macro

    Hi Guys!
    I don't know if what i'm asking you is achievable.
    I've learned how to pass variables/arguments from powershell to Excel/VBA Macro but i need to do the opposite thing.
    This is an example of what  i want:
    Powershell                                                                      
                       Excel/VBA Macro
    $Input=1   ---------------------------------------------------------------->   Sub Macro(input)
    $excel.Run("Macro",$Input)                                                              
      Output=input +6
    $output (Expected 7)   <----------------------------------------------------  return Output
    I don't know how to do this can you help me please?
    A

    Ok guys those are the script.
    Macro:
    Sub CreatePWD()
    Dim PWD As String
    Dim i As Integer
    Dim Max As Integer
    Dim F1 As Worksheet
    Set F1 = ThisWorkbook.Worksheets("Foglio1")
    Max = F1.Range("A1").Value
    For i = 1 To Max
    If Int((2 * Rnd) + 1) = 1 Then
    PWD = PWD & Chr(Int((90 - 65 + 1) * Rnd + 65))
    Else
    PWD = PWD & Int((9 - 0 + 1) * Rnd + 0)
    End If
    Next i
    MsgBox PWD
    End Sub
    Powershell:
    $Excel = New-Object -ComObject excel.application
    $Excel.visible=$false
    $Version = "C:\Users\Alberto Corona\Desktop\Cartel1.xlsm"
    $WorkBook= $Excel.workbooks.open($Version)
    $WorkSheet= $WorkBook.worksheets.item(1)
    $WorkSheet.cells.item(1,1)=5
    $Excel.Run("CreatePWD")
    $WorkBook.save()
    $WorkBook.close()
    $Excel.quit()
    The result of macro is like "52UT7" i want a variable in powershell called $PWD that contain the value of the macro. 
    Hope the problem is clear now.
    Thanks
    A

  • Write-EventLog from a command line using a variable for -Message

    My apologies for the possibly confusing title of this post, so let me explain...
    My ultimate goal is to capture log information during the execution of a batch script and write it to the Application log.  Simple, you might think?  I couldn't figure it out in batch so gave up and moved on to try using PowerShell via
    the @powershell command.
    I started with the following test, which worked like a charm:
    @PowerShell -NoProfile -command "Write-EventLog -LogName Application -Source MyApp -EntryType Information -EventID 99 -Message "Test1" -ComputerName MyServer"
    Great I thought, now how to capture multiple "events" as my batch script executes so that I can write them all in one go to the Application log using a single @powershell command.  Capturing multiple lines of text in an environment variable
    was a struggle and I wasn't even sure if I could then use the environment variable in the PowerShell command, so I tried writing the events to a text file with the intend of reading that text file using Get-Content, and then writing it to the event log.
    So test #2 went like this:
    @PowerShell -NoProfile -command "$OutText = 'Some text';Write-EventLog -LogName Application -Source MyApp -EntryType Information -EventID 99 -Message $OutText -ComputerName MyServer"
    This worked, and "Some text" was successfully written to the event log entry, so the last step was to read my entries from the text file and write them instead:
    For reference, the text file looked like this:
    Test Entry 1
    Test Entry 2
    Test Entry 3 
    @PowerShell -NoProfile -command "$OutText = Get-Content .\TestLog.txt;Write-EventLog -LogName Application -Source MyApp -EntryType Information -EventID 99 -Message $OutText -ComputerName MyServer"
    Unfortunately I failed at the last hurdle as PowerShell didn't seem to like, I am guessing, the CRLFs in the text file?
    Write-EventLog : Cannot convert 'System.Object[]' to the type 'System.String'
    required by parameter 'Message'. Specified method is not supported.
    At line:1 char:211
    + ... yServer -Message $OutText
    +                    ~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Write-EventLog], Parameter
       BindingException
        + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Comma
       nds.WriteEventLogCommand
    Any suggestions on how to solve my dilemma, either by solving the last step, or maybe by taking a different approach?
    Many thanks, in advance,
    Andy

    Here is how we write to the event log from a batch file.  It is easy and more flexible than howyou are doing this:
    eventcreate /?
    eventcreate /L application /SO MyApp /ID 99 /D %messagetext% /S MyServer
    Adding one big block of text to the event log is not how the EL can work.  The message size is limited.
    The Event Log should not be used as a general tracing log on a regular basis.  It should be used to log errors that are critical and to log critical small pieces of information.
    Why use batch if you have access to PowerShell. It is far less flexible and muc harder to manage.
    ¯\_(ツ)_/¯

  • Add-AdGroupMember. Passing variable in Identity inconsistent.

    Can't get variable to work correctly within the identity parameter.
    Here is what I am trying to run:
    $sitename="Site"
    add-adgroupmember -Identity "cn=ACL_Facilities-$sitename_Read,ou=$sitename,ou=facilities,ou=file,ou=groups,dc=domain,dc=private" -members "cn=$sitename Users,ou=$sitename,ou=Shadow,ou=Groups,dc=domain,dc=private"
    Tells me "Directory object not found".
    If I change within Identity and enter the text, not the variable, it works fine. It works fine being within members without issue.
    If I leave only the second variable in identity it works fine.
    What am I missing? The use of variables seems so inconsistent, works fine with some commands, not with others, works find in some places and parameters, not in others on the same commands...

    The underscore character (_) is a valid character in a variable. When PowerShell parses your string and finds a dollar sign ($) it will see everything after the dollar sign up to a non-variable character (eg. space, comma, period) as the name of the variable.
    So it sees "$sitename_Read" as the variable. And that variable is not defined. Therefore it will evaluate as null.
    You need to use "${sitename}_Read" instead, as that will tell PowerShell to parse only $sitename as the variable.

  • PowerShell command returned an exception. Unexpected token 's' in expression or statement

    Hi All,
    I am trying to Creating a VM based on a Template in VMM through Orchestrator Runbook using below URL;
    http://blogs.catapultsystems.com/lrayl/archive/2013/07/03/orchestrator-system-center-integrations-part-3-creating-a-vm-based-on-a-template-in-vmm.aspx
    Runbook:
    But at the Create VM from Template activity runbook will failed:
    Throwing below error in while running runbook in Error Summary text:
    PowerShell command returned an exception. Unexpected token 's' in expression or statement.
    Exception: InvalidOperationException
    Target site: PSRunspaceInvoker.HandleInvokeException
    Stack trace:
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.HandleInvokeException(Exception ex, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.Invoke(RunspaceInvoke runspace, String script, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSScriptRunner.Execute(String script)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012Domain.VM.CloneFromTemplate(String vmmServer, ParameterList inputParameters)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VM.CloneFromTemplate.DoExecute(IActivityRequest request, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.ActivityBase`2.Execute(IActivityRequest request, IActivityResponse response)
    Both Orchestrator & SCVMM powershell are set on Unrestricted powershell.
    Kindly suggest any solution or work around for resolution.
    Thanks Rahul$

    This may be a bit late and perhaps not even relevant but I came across this post when trying to solve an issue I had with a powershell script in Orchestrator. Maybe it will help you, or maybe it will help someone else.
    I was trying to create a connector between SCOM and our ticketing system. I wanted to export alert descriptions and in the process of testing I came across an alert description that had multiple lines and all kinds of crazy formatting. When I tried to assign
    the Published Data to a varialbe in my powershell script i would get an error "Unexpected token [a partial alert description] in expression or statement.". After looking at the actual alert description data and seeing that i was only getting some of it
    and not all of it it dawned on me that i somehow needed to escape out of all the crazy quoting, carriage returns, and special characters. to do that i assigned the Published Data to a variable in my powershell script as follows:
    $Description = @"
    {Description from "Get Alert"}
    Apparently the @" "@ is called a here-string. Somewhat interesting. Hope it helps you or someone else!

  • Looking for PowerShell Script

    I'm looking for a PowerShell script that I can run and will copy a file with today's date yyyymmdd.txt  to a remote location renaming it to XXXXXX.log and over writing the existing *.log.   
    Sounds simple, but as a newbe to PS, I could use some help.

    Check out: Get-Help Copy-Item -Full
    That cmdlet can copy a file from one place to another, rename it, and also overwrite a pre-existing file (-Force).
    Also check out Get-Help about_Variables for info on how variables work in PowerShell. You can use Get-Date -Format yyyymmdd to get the values you'll need for your source file name, then save it to a variable to use with Copy-Item.
    I don't know what XXXXXX.log represents, but that might just need to be another variable.
    Does that help?

  • Windows Powershell and HP Open Test Architect (TDApiOle80)

    I'm not sure that this is the correct forum to place this in. Please feel free to move it if needed...
    I have a task to create a new script using powershell and the OTA. When trying to log into quality center via the open test architecture in powershell I get this error. 
    At my computer char:22+ $td.InitConnectionEx $qualityCenterLink+ ~~~~~~~~~~~~~~~~Unexpected token '$qualityCenterLink' in expression or statement.
    At my computer char:11+ $td.Login $qualityCenterUsername, $qualityCenterPassword+
          ~~~~~~~~~~~~~~~~~~~~~~
    This is the code that I am using.
    $td = New-Object -ComObject "TDApiOle80.TDConnection"
    $td.InitConnectionEx $qualityCenterLink
    $td.Login $qualityCenterUsername, $qualityCenterPassword
    This code currently works in a script written with VBscript. I am just modifying the td variable to use powershell instead of vbscript. Do you all have any idea what it is that is causing this not to run? Also, Is powershell compatible with the OTA? I am assuming
    so only because the OTA is a COM package.

    it appears it doesn't like the formatting. It doesn't know how to handle the varibles
    Powershell thinks thinks these are 2 variable next to each other
    $td.InitConnectionEx $qualityCenterLinkmaybe put $td.InitConnectionEx($qualityCenterLink)$td.Login $qualityCenterUsername, $qualityCenterPasswordPowershell thinks thinks these are variable next to each other, with a comma separating two of themmaybe put $td.Login ($qualityCenterUsername, $qualityPasswrod)Maybe you can do $td | get-member, may that will show you how the arguments should look. I have neverused the OTA, just guessing here.

  • Programmatically Assign Published Data to Variable

    is there anyway to assign published data to a variable programmatically in powershell? - in other words without right-clicking and selecting "Subscribe->Published Data" .

    We are composing a runbook that queries a database for "events" - this data is published.   Associated with each event is a runbook name(an automation to perform for the event).  With the runbook name, we query another table in db for all
    data associated with the runbook.  Some of the data in the runbook table are parameter names and values.  The values can be either the actual data needed to run the runbook (e.g "SOMEHOSTNAME") or a field name (e.g. @Node) (taken from the
    "event's" row in the first query) where the field's value would be used as a parameter's value passed to the runbook.   Before calling the Web Service to start the runbook, the parameters must be set.   If the parameter's value is
    the actual value needed, then it is used.   If it is a field name, the published data must be used.  I would prefer not to have a long list of conditions for every possible field that could be used(see below) 
     if($fieldName -eq "@Node"){
         $newValue = 'right click for published data'
     }elseif($fieldName -eq "@IPAddress"){
         $newValue = 'right click for published data'
    but rather, evaluate the variable to see if it has a field in it and extract the fieldname and dynamically assign the value from the published data:
    if($fieldName -match "^@(.*)"){
    $newValue = (call some code with $matches[1] to retrieve published data)
    In short, cosolidating all possible "if" statements into one.

  • Unicode Migration using National Characterset data types - Best Practice ?

    I know that Oracle discourages the use of the national characterset and national characterset data types(NCHAR, NVARCHAR) but that is the route my company has decide to take and I would like to know what is the best practice regarding this specifically in relation to stored procedures.
    The database schema is being converted by changing all CHAR, VARCHAR and CLOB data types to NCHAR, NVARCHAR and NCLOB data types respectively and I would appreciate any suggestions regarding the changes that need to be made to stored procedures and if there are any hard and fast rules that need to be followed.
    Specific questions that I have are :
    1. Do CHAR and VARCHAR parameters need to be changed to NCHAR and NVARCHAR types ?
    2. Do CHAR and VARCHAR variables need to be changed to NCHAR and NVARCHAR types ?
    3. Do string literals need to be prefixed with 'N' in all cases ? e.g.
    in variable assignments - v_module_name := N'ABCD'
    in variable comparisons - IF v_sp_access_mode = N'DL'
    in calls to other procedures passing string parameters - proc_xyz(v_module_name, N'String Parameter')
    in database column comparisons - WHERE COLUMN_XYZ = N'ABCD'
    If anybody has been through a similar exercise, please share your experience and point out any additional changes that may be required in other areas.
    Database details are as follows and the application is written in COBOL and this is also being changed to be Unicode compliant:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16

    ##1. while doing a test convertion I discovered that VARCHAR paramaters need to be changed to NVARCHAR2 and not VARCHAR2, same for VARCHAR variables.
    VARCHAR columns/parameters/variables should not by used as Oracle reserves the right to change their semantics in the future. You should use VARCHAR2/NVARCHAR2.
    ##3. Not sure I understand, are you saying that unicode columns(NVARCHAR2, NCHAR) in the database will only be able to store character strings made up from WE8MSWIN1252 characters ?
    No, I meant literals. You cannot include non-WE8MSWIN1252 characters into a literal. Actually, you can include them under certain conditions but they will be transformed to an escaped form. See also the UNISTR function.
    ## Reason given for going down this route is that our application works with SQL Server and Oracle and this was the best option
    ## to keep the code/schemas consistent between the two databases
    First, you have to keep two sets of scripts anyway because syntax of DDL is different between SQL Server and Oracle. There is therefore little benefit of just keeping the data type names the same while so many things need to be different. If I designed your system, I would use a DB-agnostic object repository and a script generator to produce either SQL Server or Oracle scripts with the appropriate data types or at least I would use some placeholder syntax to replace placeholders with appropriate data types per target system in the application installer.
    ## I don't know if it is possible to create a database in SQL Server with a Unicode characterset/collation like you can in Oracle, that would have been the better option.
    I am not an SQL Server expert but I think VARCHAR data types are restricted to Windows ANSI code pages and those do not include Unicode.
    -- Sergiusz

  • Huge Problem: How to get Information out of the SAP System into MySQL?

    Hi all
    Im totally despaired... So im comming here, hoping to find ANY solution.
    I wrote a Program, which creates a internal Table wich some information from many DDIC-Tables. The internal Table is about 7 Columns, with only char fields.
    Also I have a MySQL Server (reached through the Internet), with a database on it, and a table, which looks 1:1 as my internal Table in ABAP does.
    Now I want to append the Data from the internal Table to the MySQL Table.
    Is there ANY chance of getting this done?
    and btw. can I append this Data with a secured connection?
    THX for help...
    greets
    Markus Voelker

    Think of Orchestrator as a "router", that will route information and workflows between SCOM, and [insert 3rd party product here].  Depending on your 3rd party product, there may be an "integration pack" for it that Orchestrator can use for out of the
    box tasks.
    So what's an integration pack?  Well - think of it like a management pack, but for Orchestrator.  SCOM does monitoring, but it doesn't know how to monitor something unless you install the relevant management pack.  The management pack contains
    all the rules/monitors for monitoring whatever it is you wish to monitor.
    Well, an integration pack is similar in concept, except it tells Orchestrator how to interface and integrate with whatever it is you're trying to perform tasks with. 
    For what you want to do, there is a SCOM integration pack.  This is a set of tasks that can get alerts and events out of Operations Manager (there are also tasks that can create and close alerts in Operations Manager). 
    From what I can imagine - you would want to get alerts out of SCOM when they happen (so you would use one of the SCOM orchestrator tasks to "get alert if status = new, and source = myapplication"), and then you can pass that alert to another task - such
    as write it to a CSV file or something.  You could then have another task that picks up that CSV file, and passes it to your application where it can be captured.  Or you could use the CSV to populate variables in a powershell script, and then powershell
    that information into your app.
    There are many ways you could do this, but I do believe that Orchestrator would be the better option. 
    http://www.dreamension.net

  • SCCM 2012 R2, KB2910552 after Cumulative update 2

    Hi !
    I wask noticed for very slow package download at operating system deployment pahse in SCCM 2012R2 CU2. After little digging, I found possible sollution from http://support2.microsoft.com/kb/2910552, but installation failed, since system is updated CU2 after
    R2 upgrade.
    How should I proceed?
    WIM File, application download etc seems fine at 100 or 1000 mbps wire, but any (driver, program) package takes from minutes to hours. No SSL, or antivirus is messing. Drivers and bios updated.
    ~T

    I have noticed only traditional packages (including drivers) kills speed.
    Installed R2CU3, updated Boot images, no change.
    From running log
    .....<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=6]LOG]!><time="17:06:49.617-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=6]LOG]!><time="17:06:49.633-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 5]LOG]!><time="17:06:49.633-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 5]LOG]!><time="17:06:49.633-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="17:06:49.633-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:833">
    <![LOG[Start executing an instruction. Instruction name: Dell. Instruction pointer: 6]LOG]!><time="17:06:49.883-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="engine.cxx:116">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=Dell]LOG]!><time="17:06:49.883-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=6]LOG]!><time="17:06:49.883-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Evaluating an AND expression]LOG]!><time="17:06:49.898-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="tsexpreval.cpp:600">
    <![LOG[Evaluating a WMI condition expression]LOG]!><time="17:06:49.898-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="tsexpreval.cpp:1879">
    <![LOG[Expand a string: root\cimv2]LOG]!><time="17:06:49.898-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="utility.cpp:805">
    <![LOG[Expand a string: select * from Win32_ComputerSystem WHERE Manufacturer LIKE "%Dell%"]LOG]!><time="17:06:49.898-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="utility.cpp:805">
    <![LOG[The condition for the group (Dell) is evaluated to be true]LOG]!><time="17:06:49.898-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:135">
    <![LOG[The group (Dell) has been successfully started]LOG]!><time="17:06:49.898-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:156">
    <![LOG[Set authenticator in transport]LOG]!><time="17:06:49.930-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="libsmsmessaging.cpp:7734">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:06:49.977-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="utils.cpp:1704">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=7]LOG]!><time="17:06:49.977-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=7]LOG]!><time="17:06:49.977-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 5 6]LOG]!><time="17:06:49.977-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 5 6]LOG]!><time="17:06:49.977-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="17:06:49.977-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:833">
    <![LOG[Start executing an instruction. Instruction name: Run PowerShell Script: COnfigure E5440 BIOS. Instruction pointer: 7]LOG]!><time="17:06:50.273-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="engine.cxx:116">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=Run PowerShell Script: COnfigure E5440 BIOS]LOG]!><time="17:06:50.273-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=7]LOG]!><time="17:06:50.273-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a local default variable OSDRunPowerShellScriptExecutionPolicy]LOG]!><time="17:06:50.273-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:700">
    <![LOG[Set a local default variable OSDRunPowerShellScriptPackageID]LOG]!><time="17:06:50.273-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:700">
    <![LOG[Set a local default variable OSDRunPowerShellScriptParameters]LOG]!><time="17:06:50.273-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:700">
    <![LOG[Set a local default variable OSDRunPowerShellScriptScriptName]LOG]!><time="17:06:50.289-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:700">
    <![LOG[Set a global environment variable _SMSTSLogPath=X:\WINDOWS\TEMP\SMSTSLog]LOG]!><time="17:06:50.289-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Evaluating an AND expression]LOG]!><time="17:06:50.289-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="tsexpreval.cpp:600">
    <![LOG[Evaluating a WMI condition expression]LOG]!><time="17:06:50.289-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="tsexpreval.cpp:1879">
    <![LOG[Expand a string: root\cimv2]LOG]!><time="17:06:50.289-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="utility.cpp:805">
    <![LOG[Expand a string: select * from Win32_ComputerSystem
    Where Model Like "%E5440%"]LOG]!><time="17:06:50.289-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="utility.cpp:805">
    <![LOG[The condition for the action (Run PowerShell Script: COnfigure E5440 BIOS) is evaluated to be true]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:706">
    <![LOG[Expand a string: OSDRunPowerShellScript.exe]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:782">
    <![LOG[Expand a string: ]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:782">
    <![LOG[Start executing the command line: OSDRunPowerShellScript.exe]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:722">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:751">
    <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:782">
    <![LOG[Executing command line: OSDRunPowerShellScript.exe]LOG]!><time="17:06:50.305-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="commandline.cpp:827">
    <![LOG[[ OSDRunPSScript.exe ]]LOG]!><time="17:06:50.336-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:312">
    <![LOG[Running powershell script: 'configure-dellE5440_v3.ps1'(PkgID: S0100201) with execution policy: 'Bypass']LOG]!><time="17:06:50.336-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:342">
    <![LOG[The execution scope for running the powershell script is specified not to verify the signature of the scripts. This is unsafe and potentially risk running malicious scripts.]LOG]!><time="17:06:50.336-180" date="10-21-2014" component="RunPowerShellScript" context="" type="2" thread="1952" file="main.cpp:345">
    <![LOG[Sending warning status message]LOG]!><time="17:06:50.336-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:347">
    <![LOG[Set authenticator in transport]LOG]!><time="17:06:50.336-180" date="10-21-2014" component="RunPowerShellScript" context="" type="0" thread="1952" file="libsmsmessaging.cpp:7734">
    <![LOG[Powershell path: x:\Windows\System32\WindowsPowerShell\v1.0\]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:162">
    <![LOG[ResolveSource flags: 0x00000000]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="resolvesource.cpp:3201">
    <![LOG[SMSTSPersistContent: . The content for package S0100201 will be persisted]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="resolvesource.cpp:3212">
    <![LOG[Locations: Multicast = 0, HTTP = 2, SMB = 0.]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="resolvesource.cpp:2749">
    <![LOG[Multicast is not enabled for the package.]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="resolvesource.cpp:2789">
    <![LOG[Trying http://DP1.fqdn.tld/SMS_DP_SMSPKG$/S0100201.]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="resolvesource.cpp:2870">
    <![LOG[Set authenticator in transport]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="0" thread="1952" file="libsmsmessaging.cpp:7734">
    <![LOG[WinHttp credentials set]LOG]!><time="17:06:50.445-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:796">
    <![LOG[List of files to be downloaded]LOG]!><time="17:07:12.800-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:350">
    <![LOG[Downloaded file from http://DP1.fqdn.tld:80/SMS_DP_SMSPKG$/S0100201/sccm?/backup/configure-delE5440.ps1 to C:\_SMSTaskSequence\Packages\S0100201\backup/configure-delE5440.ps1 ]LOG]!><time="17:07:54.868-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1592">
    <![LOG[Executing command line: X:\WINDOWS\system32\cmd.exe /k]LOG]!><time="17:08:01.462-180" date="10-21-2014" component="TSBootShell" context="" type="1" thread="736" file="bootshell.cpp:860">
    <![LOG[The command completed successfully.]LOG]!><time="17:08:01.462-180" date="10-21-2014" component="TSBootShell" context="" type="1" thread="736" file="bootshell.cpp:942">
    <![LOG[Successfully launched command shell.]LOG]!><time="17:08:01.462-180" date="10-21-2014" component="TSBootShell" context="" type="1" thread="736" file="bootshell.cpp:432">
    <![LOG[Downloaded file from http://DP1.fqdn.tld:80/SMS_DP_SMSPKG$/S0100201/sccm?/backup/configure-delE5440_v2.ps1 to C:\_SMSTaskSequence\Packages\S0100201\backup/configure-delE5440_v2.ps1 ]LOG]!><time="17:08:15.912-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1592">
    <![LOG[Downloaded file from http://DP1.fqdn.tld:80/SMS_DP_SMSPKG$/S0100201/sccm?/cctkcmd.bat to C:\_SMSTaskSequence\Packages\S0100201\cctkcmd.bat ]LOG]!><time="17:08:15.912-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1592">
    ......<![LOG[Downloaded file from http://DP1.fqdn.tld:80/SMS_DP_SMSPKG$/S0100201/sccm?/X86_64/mxml1.dll to C:\_SMSTaskSequence\Packages\S0100201\X86_64/mxml1.dll ]LOG]!><time="17:29:20.557-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1592">
    <![LOG[Downloaded file from http://DP1.fqdn.tld:80/SMS_DP_SMSPKG$/S0100201/sccm?/X86_64/pci.ids to C:\_SMSTaskSequence\Packages\S0100201\X86_64/pci.ids ]LOG]!><time="17:29:41.577-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1592">
    <![LOG[Downloaded file from http://DP1.fqdn.tld:80/SMS_DP_SMSPKG$/S0100201/sccm?/X86_64/temp to C:\_SMSTaskSequence\Packages\S0100201\X86_64/temp ]LOG]!><time="17:29:41.593-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1592">
    <![LOG[VerifyContentHash: Hash algorithm is 32780]LOG]!><time="17:29:41.608-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="downloadcontent.cpp:1870">
    <![LOG[Resolved source to 'C:\_SMSTaskSequence\Packages\S0100201']LOG]!><time="17:29:42.327-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:216">
    <![LOG[Working dir 'C:\_SMSTaskSequence\Packages\S0100201']LOG]!><time="17:29:42.327-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:237">
    <![LOG[Executing command line: Run Powershell script]LOG]!><time="17:29:42.327-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="commandline.cpp:827">
    <![LOG[Found cctk.exe from: C:\_SMSTaskSequence\Packages\S0100201\X86_64]LOG]!><time="17:29:54.968-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[ocation: C:\_SMSTaskSequence\Packages\S0100201\X86_64, .\hapint64.exe ]LOG]!><time="17:29:54.968-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[ttempt to install Dell HAPI ....]LOG]!><time="17:29:54.968-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[Installation seems to be Ok...]LOG]!><time="17:30:00.112-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[API installed.]LOG]!><time="17:30:00.112-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[Found: Dell Command Configure Version 3.0.0 563 (Windows - Aug 20 2014, 16:38:09)]LOG]!><time="17:30:01.651-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[Will log to X:\WINDOWS\TEMP\biossetup.log]LOG]!><time="17:30:01.651-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[egin BIOS configuration ....]LOG]!><time="17:30:01.651-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[onfiguration file: E5440.ini found.]LOG]!><time="17:30:01.651-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[Bios Configuration Complete.]LOG]!><time="17:30:02.680-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[ios password change: ...Changed]LOG]!><time="17:30:03.713-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[rogram exit]LOG]!><time="17:30:03.713-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:29">
    <![LOG[Process completed with exit code 0]LOG]!><time="17:30:04.088-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="commandline.cpp:1123">
    <![LOG[Command line returned 0]LOG]!><time="17:30:04.088-180" date="10-21-2014" component="RunPowerShellScript" context="" type="1" thread="1952" file="main.cpp:258">
    <![LOG[Process completed with exit code 0]LOG]!><time="17:30:04.088-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="commandline.cpp:1123">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:30:04.088-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:804">
    <![LOG[Successfully completed the action (Run PowerShell Script: COnfigure E5440 BIOS) with the exit win32 code 0]LOG]!><time="17:30:04.104-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:830">
    <![LOG[Set authenticator in transport]LOG]!><time="17:30:04.119-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="libsmsmessaging.cpp:7734">
    <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="17:30:04.197-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="17:30:04.197-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Expand a string: %_SMSTSMDataPath%\Logs]LOG]!><time="17:30:04.197-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:782">
    <![LOG[Clear local default environment]LOG]!><time="17:30:04.213-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:807">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:30:04.213-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="utils.cpp:1704">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=8]LOG]!><time="17:30:04.213-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=8]LOG]!><time="17:30:04.213-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 5 6]LOG]!><time="17:30:04.229-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 5 6]LOG]!><time="17:30:04.229-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="17:30:04.229-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:833">
    <![LOG[Start executing an instruction. Instruction name: Dell. Instruction pointer: 8]LOG]!><time="17:30:04.525-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="engine.cxx:116">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=Dell]LOG]!><time="17:30:04.525-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=8]LOG]!><time="17:30:04.525-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[The group (Dell) has been successfully completed]LOG]!><time="17:30:04.525-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:344">
    <![LOG[Set authenticator in transport]LOG]!><time="17:30:04.557-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="libsmsmessaging.cpp:7734">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:30:04.604-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="utils.cpp:1704">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=9]LOG]!><time="17:30:04.604-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=9]LOG]!><time="17:30:04.604-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 5]LOG]!><time="17:30:04.604-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 5]LOG]!><time="17:30:04.604-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="17:30:04.604-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:833">
    <![LOG[Start executing an instruction. Instruction name: HP. Instruction pointer: 9]LOG]!><time="17:30:04.854-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="engine.cxx:116">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=HP]LOG]!><time="17:30:04.870-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=9]LOG]!><time="17:30:04.870-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Evaluating an AND expression]LOG]!><time="17:30:04.870-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="tsexpreval.cpp:600">
    <![LOG[Evaluating a WMI condition expression]LOG]!><time="17:30:04.870-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="tsexpreval.cpp:1879">
    <![LOG[Expand a string: root\cimv2]LOG]!><time="17:30:04.870-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="utility.cpp:805">
    <![LOG[Expand a string: select * from Win32_ComputerSystem WHERE Manufacturer LIKE "%Hewlett-Packard%"]LOG]!><time="17:30:04.870-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="utility.cpp:805">
    <![LOG[The group (HP) has been skipped because the condition is evaluated to be false]LOG]!><time="17:30:04.885-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:118">
    <![LOG[Set authenticator in transport]LOG]!><time="17:30:04.916-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="libsmsmessaging.cpp:7734">
    <![LOG[Execution of the instruction (HP) has been skipped]LOG]!><time="17:30:04.963-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="engine.cxx:192">
    <![LOG[Start executing an instruction. Instruction name: Restart Computer. Instruction pointer: 12]LOG]!><time="17:30:04.963-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="engine.cxx:116">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=Restart Computer]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=12]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Set a local default variable SMSRebootMessage]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:700">
    <![LOG[Set a local default variable SMSRebootTimeout]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:700">
    <![LOG[Set a global environment variable _SMSTSLogPath=X:\WINDOWS\TEMP\SMSTSLog]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:668">
    <![LOG[Expand a string: smsboot.exe /target:WinPE]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:782">
    <![LOG[Expand a string: ]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="0" thread="1564" file="executionenv.cxx:782">
    <![LOG[Start executing the command line: smsboot.exe /target:WinPE]LOG]!><time="17:30:04.979-180" date="10-21-2014" component="TSManager" context="" type="1" thread="1564" file="instruction.cxx:722">
    Donloading about 16 Mb package takes about 25...30 minutes.
    Drivers for this model: 750mb, 1 - 1½ hours.
    11 applications (in 2 phases, depending manufacturer/model), less than 5 mb, ¨~ 500 Mb.
    ~T

  • Could not find version number data in TF_BUILD_BUILDNUMBER

    Hi,
    I'm using the default build process template TfvcTemplate.12.xaml that came with TFS2013. I'm trying to call ApplyVersionToAssemblies.ps1 (from the Community TFS Build Extensions) in the pre-build script to version
    assemblies. In lieu, I got this error below.
    ApplyVersionToAssemblies.ps1 : Could not find version number data in TF_BUILD_BUILDNUMBER.
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
    tion
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
    n,ApplyVersionToAssemblies.ps1
    I've read that
    TF_BUILD environment variables are automatically created, but I do not see them in the build machine. Do I need to manually create those variables?
    TDN

    Thank you so much EvgeniyBaryShev VI! I was able to see the available TF_BUILD environment variables. The PowerShell script was looking for a 0.0.0.0 pattern in the build number stores in TF_BUILD_BUILDNUMBER. Once I changed the build number format,
    I was able to version my assemblies. Thanks again for the pointer!
    TDN
    Hi,
    I am getting the same error of TF_BUILD_BUILDNUMBER.
    Can you please help me out regarding the changes carried out by you in details.
    Thank you.

Maybe you are looking for