Prompt for location - Task Sequence Variable

I am wondering if it is possible to have a task sequence pop up asking for user input on their current location.
I am trying to create a task sequence that will prompt the user where the computer is going to be deployed to, so it will put the computer in the correct OU and such by using seperate Network Settings based on the users input. I would like it to have a list
of options the user can choose from.
I am not running MDT.

I've not used UDI that much myself, but why not take a look at it. It's really worth while to start learning MDT, it will only benefit you in the long run, trust me!
But creating your own PowerShell front end isn't really that hard (assuming you've worked a little bit with PowerShell before).
Here's a great guide on UDI:
http://osdblog.com/2014/01/23/integrate-udi-with-your-sccm-task-sequence-for-optional-software-deployment-and-other-features/
Regards,
Nickolaj Andersen | www.scconfigmgr.com | @Nickolaja

Similar Messages

  • Reset Task Sequence Variables cached in WinPE - Possible ?

    Hi All,
    We are currently receiving prestaged computers from vendor, the image on the disk is out of date. I have added logic to detect old prestaged images, upon detection it will download latest wim from DP and deploy. This automatically wipes the disk before applying
    the wim. 
    During the os build an error occurs when installing the sccm client, this is because in the prestaged build i specified that the SCCM Client should be cached onto the disk. Because the contents of the disk is wiped due to the latest wim being downloaded
    and applied the task sequence still looks for the cached package which has been deleted... i imagine this is due to the information being cached in a TS Variable...
    Is there any way i can remove this variable, or perhaps all variables relating to the prestaged build if an old prestaged image is detected...?
    "note: going forward i will not be caching any packages into a prestaged build"
    Many thanks.. 

    I don't work with pre-staged media much so don't know if what you want is actually stored in a variable that can be overwritten or not; however, you can overwrite the value of any (non-read only) variable at run-time by using the standard methods
    including the set task sequence variable task or a script that uses the Microsoft.sms.ysenvironment com object.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • OSD HTA and Task Sequence Variable

    Have a unusual issue that I cannot seem to find a answer anywhere or if it's even possible. I'm am very aware on how to setup a HTA to pass variables to the Task Sequence but there is a point where I want the HTA to display the current value of a TS Variable(s).
    It's a custom variable that is set on a prior step via a VB script. Anyone know of a simple way to call and display the value in HTML/HTA.

    The variables are available using the same COM Object that you use to set them: Microsoft.SMS.TSEnvironment. The below VBScript will dump every variable to the screen. You can take this and just add it something you've displayed in your HTA like a static
    control or text box.
    Set env = CreateObject("Microsoft.SMS.TSEnvironment")
    Wscript.echo "Dump of All Task Sequence Variables"
    For Each TSvar In env.GetVariables
    Wscript.echo "Variable " & TSvar & " = " & env(TSvar)
    Next
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • SCCM OSD Task sequence variables via Powershell.

    Hi,
    I am trying to come up with a genernic function to read
    SCCM 2012 OSD task sequence variables where
    I can pass a varibale name:
    Is this the correct way of doing it below?
    Thanks,
    Ward
    # fnRead_SCCM_Variable
    function fnRead_SCCM_Variable($sccm_variable)
                $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
                $data =  $tsenv.Value($sccm_variable)
                return $data
    $log_path = fnRead_SCCM_Variable "_SMSTSLogPath"

    That should do the trick. For a nice blog post about the usage of task sequence variables in PowerShell, see:
    http://blogs.technet.com/b/mniehaus/archive/2009/09/22/running-powershell-scripts-as-part-of-a-task-sequence.aspx
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • AD Search plus access to task sequence variables via powershell.

    Hi,
    I would like to an Active Directory search in a SCCM task sequence.
    Now there are two ways I can do this run the powershell script
    as a domain user - in the task sequence step.
    Or do something fancy in the script itself so the task sequence step
    runs as system then does a kind of connect as to do the AD search.
    The reason I am asking this is I want to know if the task sequence
    variables are available of I run the powershell script as user
    account from the task sequence UI.
    Or can I only get at them if I am running them as the system context.
    Thanks,
    Ward

    First, answer to your question: if you run an action as a different user in a task sequence (which can only be done after you leave WinPE), you lose the ability to read the task sequence variables. You'll get empty strings for every variable you query.
    Now there are several ways of getting this accomplished and it all depends on what stage of the task sequence you want to invoke something like this/what you want to do in AD.
    If just want to query AD then, by default, you don't need any special rights as any domain user can do it.
    If you want to modify something in AD then you need to be a bit more creative.
      1. If you want to run this script after the computer has joined the domain, you don't need to mess around with permissions, as any network actions will be run using the computer object on the network. As far as AD is concerned it will use ComputerName$
    account. Though obviously you'll only have read rights.
      2. Use the network access account credentials, the username/password for the account are saved onto task sequence variables so you can easily read it. The script itself would still run under the system context, but when you establish a connection
    to AD you pass the username/password of the user to connect as. Again, you'd only have read rights.
      3. If you want to modify something in AD and the task sequence has already left WinPE, then you can use the 'run as a different user' option in the 'run command' action in the SCCM task sequence. This will force the whole script to run under the context
    of the user you specified, which obviously gives you whatever rights you want, including ability to modify something in AD, but you completely lose access to task sequence variables. If you try to query any of them you just get an empty string. A way around
    this is to make the variables you know you will need as part of your script in parameters. So for example you call your script as: MyScript.ps1 -MP %_SMSTSMP% to pass the variable _SMSTSMP to your script as a parameter. You can only specify 'run as a different
    user' if the task sequence is not in WinPE though.
      4. You could use a slight variation of option 2 if you need to modify AD. Instead of using the NAA account use the username/password of an account you specify. The action still runs under system context, but the connection to AD runs with the account
    you specify. As a result, this also works in WinPE, and you have no problems accessing task sequence variables. The only problem with this one though... is how to safely pass the credentials over, and that's a big tricky problem.
    As you can see, there's several ways of getting things done, but they all have caveats :)
    Hope this helps.

  • OSD - USB insert media #1 for the task sequence

    Hi
    I'm creating a standalone media for USB
    Step that I did
    1. Create a Standalone media to .iso files
    2. Diskpart - I prepared the USB using the diskpart command
    3. Extract the standalone.iso files in the USB  (copy the contents)
    everything is work fine, exempt the packages that I included in the stanadlone TS is NOT installed and asking for "insert media #1 for the task sequence"
    This issue arise only when I used the USB
    Content of T.S  (stand alone task sequence)
    a. Windows 7 and company standard application
    b. Packages 1 : Install the 7Zip
    c. Packages 2 : Install the update for the acrobat reader
    I don't want to recreate the images due to minor changes and it will consume time also, that's why I added in the T.S place in USB
     Please advise , what is wrong
    Robert

    Hi,
    We also get the same problem, and at the time it occurs the USB stick does not show up in notepad, or in diskpart list disk.  
    It happens after the windows 7 image is apply just as it's trying to install the applications.

  • Unable to create game center account.  Keeps prompting for location and birthdate

    Whenever I try to create a game center account, it loops always asking for location and birthdate.  The phone says the Apple ID has not yet been used in Game Center, tap continue to setup your account, then it prompt for location and birthdate again.  Any ideas how to get account setup?

    I'm gettng this same message.  I have been using the same Apple ID for all my iOS device, but I ended up creating a new Apple ID for my wife's iPhone.  After I verified the new Apple ID, I logged out of Game Center, and entered my newly created Apple ID.  Now I'm stuck in the same loop as you.  Were you able to get out of it?

  • UDI Wizard - Task Sequence Variables.

    Quick question :-)
    How are the variables defined in UDI applied during an OS installation ?
    And does it take precedence over Collection variables ?
    Thx
    Rgds

    Not sure what you about "how they are applied"? Variables, aren't "applied", they are set. Variables simply contain a value and typically "something" uses the value of the variable. Now, what that "something" is depends
    upon the variable itself (if anything -- just because a variable has a value doesn't mean anything actually uses that value). And what that "something" does with the value is up to that "something".
    Many -- not all task sequence variables -- are used by the various processes/exes that correspond to the various steps in the task sequence. In fact, all the task sequence editor does is set a bunch of variables that are in turn used by the steps in your
    task sequence (the task itself is represented by a variable).
    Thus, any values you set in the TS editor are set at "design" time and passed to the TS engine when it starts on a target client. Any values set during the execution of the TS are "run" time variables and will over write the value of
    any like named variables created before they are set including design time variables since they were set at the beginning of the TS.
    Collection variables, like design time variables, are set at the start of the TS execution and thus are over-written by any subsequent setting of the same variable within the execution of the TS.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Maximum allowed run time for a task sequence

    I found if i left the maximum allowed run time for a task sequence with a defualt value of "0" in configuration manager 2012 r2 cu2,the required task sequence would never run without a maintenance window larger than
    12H.
    At client side,the servicewindowmanager.log always said this required task sequence had a maximum runtime of 43200 seconds(12h).
    servicewindowmanager.log:
    OnIsServiceWindowAvailable called with: Runtime:43200, Type:5
    Program cannot Run! Setting *canProgramRun to FALSE
    There does not exist a Service Window of this Type, for this duration. The Program will not run.
    If i set maximum allowed run time to 120 minutes,task sequence would run under a 3h mainenance window.
    So if you leave the maximum allowed run time for a task sequence with a value of "0" then client agent will evaluate it as 43200(12h) for a required deployment,is it true? have i missed something?

    Hi,
    That is correct it will default to the same value as a program with a "Unknown" maximum runtime value, Unknown is also evaluated to 0 = 12h so that is correct behaviour.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • SCCM 2012 SP1 - Task Sequence Variables

    Hi All,
    I have edited the task sequence with variables (OSDComputerName) which has popped fine when I do PXE boot.
    But when I do standalone media image, it doesn't ask for computer name during task sequence process. Can I make it work standalone image also? please help
    Regards, Pratap

    Let us know the result. :)
    Juke Chou
    TechNet Community Support

  • Can Saveas prompt for location, but still use a system generated filename

    I have a client that's wanting to save a pdf file of a datawindow.
    But, they want the program to prompt them for the location to save the file.
    It looks like you can do a saveas and leave the filename blank.
    and, it will prompt the user for the path/filename
    is there a way, that I can prompt them.... but, put the filename that was generated by
    the program, on the filename line
    I thought I had done something like this, for import of a file
    but, I don't think I've done a saveas
    does this make sense?
    basically.... I want the user to be able to chose the path
    but, not necessarily the filename... maybe just put, the generated one
    can this be done on the screen, that's prompted for... in the saveas routine?
    i guess I could have them specify both... if I had to

    Ask for the destination path with GetFolder() and then add the file name to the value returned by
    GetFolder()
    Best regards,
    AUS Julián Tagarro
    NeoSistemas SRL

  • Application support for OSD Task sequence

    Hi
    An Application with Priority 2 deployment type as “Only when a used is logged in” and Priority 1 deployment type as “whether or not a  user logged in”.In this case ,We are not able to include the applications in task sequence.
    These circumstance makes OSD related applications needs to be duplicated for Task sequence support.
    Please guide to make an  application to support Task sequence and as well user interacion(software center) with diffrent deployment type..
    Thanks

    Hi 
    I am not able to include application in Task Sequence on below condition.
    Priority 2 deployment type as “Only when a used is logged in” and Priority 1 deployment type as “whether or not a  user
    logged in.
    Thanks for support
    Regards
    Karthick V

  • Send to OneNote from Outlook does not prompt for location

    Hello
    Since the most recent update, the Send To OneNote feature in Outlook does not prompt for a location but seems to be defaulting to the same notebook each time - even if it is not the active notebook. I've tried repairing Office 365 but it did not work. Is
    this a known issue?
    Thank you
    Simon

    Hi,
    Just checking in to see if the information was helpful. Please let us know if you would like further assistance. 
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Version 4.0.0.12 - On cold start in windows, I keep being prompted for location of JDK

    I have 2 versions of JDK installed on my W7 server (64bit).
    When I start the SQLDEVELOPER application it comes up with a pop-up saying what I already know :
    "Java version 1.6.0_11 not supported. The minimum version required is 1.6.0_35"
    It then prompts me for a path to a newer release :
    "Please specify the path to the Java JDK home (e.g. c:\Program Files\Java\jdk):"
    I enter the valid path for my laptop thus :
    C:\Program Files\Java\jdk1.7.0_40
    And all is well. SQLDeveloper gets on with the business
    However, when I close and restart the application, it appears to have forgotten what I last told it and I have to go through the process all over again !
    How can it retain the path to the JDK please ?

    Sounds like you don't have write file permissions to where SQL Developer is installed.
    Find the sqldeveloper/bin directory and edit the sqldeveloper.conf file to have this line:
    SetJavaHome C:\Program Files\Java\jdk1.7.0_40

  • Adding Multiple Task Sequence Variables to Devices using C#

    Hello,
    I am hoping someone can help me with a small program I am writing for our company.  We are writing a small program in C# to import computers to a particular imaging collection and we need 2 variables set.  We have been able to create a single variable
    using this guide: http://msdn.microsoft.com/en-us/library/jj218235.aspx
    The problem is that when we write the 2nd variable, the first one is overwritten.  It looks like that property is an array.  I've been trying to find a way, either using the SCCM 2012 R2 SDK or just adding it via the standard System.Management
    functionality.
    I'm sure there is a way to do it, the Powershell CMDLets will add variables rather than overwrite.  We are trying to avoid that due to some PowerShell restrictions.
    Any help would be much appreciate, I'm sure the answer is not as difficult as I'm making it but I'm stuck as I am not really a programmer, but, like many of us, have to function as one at times.
    Thanks!

    Certainly, here you are (I've removed some company-specific info and replaced it with generic info). I'll note - this code does work to add a variable to a device in SCCM. When adding multiple variables though, the first one is replaced. This code only seems
    to work for adding 1 variable which is what is causing me the headache.
    privatevoidAddVariable()
    SmsNamedValuesDictionarynamedValues
    =newSmsNamedValuesDictionary();
    WqlConnectionManagerconnection
    =newWqlConnectionManager(namedValues);
    connection.Connect("SCCMSITESERVER");
    try
    // Get the computer settings.
    // strResourceID is obtained via separate method “GETRESOURCEID()”
    IResultObjectcomputerSettings
    =null;
    IResultObjectcomputerSettingsQuery
    = connection.QueryProcessor.ExecuteQuery(
    "Select * from SMS_MachineSettings where ResourceId = '"+strResourceID
    +"'");
    foreach(IResultObjectsettings
    incomputerSettingsQuery)
    computerSettings = settings;
    if(computerSettings
    == null) // It doesn't exist, so create it.
    computerSettings = connection.CreateInstance(@"SMS_MachineSettings");
    computerSettings["ResourceID"].StringValue
    = strResourceID;
    computerSettings["SourceSite"].StringValue
    = "SITECODE";
          computerSettings["LocaleID"].IntegerValue
    = 1033;
    computerSettings.Put();
    computerSettings.Get();
    // Create the computer variable.
    List<IResultObject>computerVariables
    = computerSettings.GetArrayItems("MachineVariables");
    IResultObjectcomputerVariable
    =  connection.CreateEmbeddedObjectInstance("SMS_MachineVariable");
    computerVariable["Name"].StringValue
    = strVariableName;
    computerVariable["Value"].StringValue
    = strVariableValue;
    computerVariable["IsMasked"].BooleanValue
    = false;
    // Add the computer variable to the computer settings.
            computerVariables.Add(computerVariable);
    computerSettings.SetArrayItems("MachineVariables",
    computerVariables);
    computerSettings.Put();
    catch(SmsExceptione)
    MessageBox.Show("Failed
    to create computer variable: "+ e.Message);
    connection.Close();
    Thank you for your help

Maybe you are looking for

  • ECC6.0 WM creation of one TO per Storage Type

    Hello, I'm currently implementing WM at my customer using various Storage Types. During testing we created GR in IM for 2 materials (in one document), one of them is relevant to quality inspection but the other one is not. TO creation has been done a

  • Connecting to an external SSAS cube in SSDT 2012 on Windows Server 2008 R2 Core

    Good Evening, We are experiencing issues when executing an SSIS package from a SQL Server job. However, when we execute the package locally, it is successful. The package connects to an external SSAS cube using MDX. I have attached the error message

  • RMAed 4890 making high pitch sound in game

    MSI P55-GD80 I5 750 Cosair dominator 2x2gb MSI 4890 cyclone win7 64bit ocz 700w just got RMAed 4890 back it's making high pitch sound whever I start gaming did have this before RMA, when it was working I remember this sound from back in the nvidia 7x

  • Can't Un-pin an Object

    I have a tabbed panel on my master page and unclicking the little black  circle has no effect. No matter what I do, it stays pinned in the same  place. Can anyone tell me how I can un-pin it?

  • Can I uninstall & then reinstall ff without losing bookmarks and passwords? If so, how?

    I made the mistake of changing permissions within page info on my fantasy football site. Was trying to get rid of an advertisement that covered areas of the page and prevented me from setting my weekly starting lineup. Rather than doing that, it has