Running a non mandatory program from remote using powershell without a logged in user

Hi all,
is there a way to execute a non mandatory program (a task sequence in my case) from remote using powershell
without a logged in user on the target system?
I have the following code: 
$ProgramObject = Get-WmiObject -Class CCM_Program -Namespace "root\ccm\clientsdk" -ComputerName $ComputerItem | Where-Object { $_.Name -match "$ProgramName" }
Invoke-WmiMethod -class CCM_ProgramsManager -Namespace "root\ccm\clientsdk" -Name ExecutePrograms -argumentlist $ProgramObject -ComputerName $ComputerItem | Out-Null
Works like charm, but only with a user logged in on the target system what is not a good solution for me. 
I saw some other ways on the internet but these only work when the program is mandatory.
Is there a way to archive what I need ? 
thanks 

Hi,
If you deploy the program as a available deployment, there need a user to run the program. Otherwise, the program will never run. This is contradicted with your requirement(run the program at log off).
So I concur with Peter.
Best Regards,
Joyce
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.

Similar Messages

  • Problems realted to changing the language for non-Unicode programs from one into anther.

    Hi,
    Hi everyone!
    Product Name: HP Pavilion dv6-6093ex
    Product Number : LM610EA#A2N.
    My Windows 7(464Bit) Ultimate,  and its base language, and display language is English.
    The Languages(English, French and Arabic) built-in (came re-downloaded and re-installed by the person who made the Windows disc installation). Thus, while installing Windows 7, those three lanauge listed for me to choose one of them to be the base language
    and display language, I have chosen 'English'. In the End of installation, there are three pre-packaged languages(English and French and Arabic) can be used as a display language.
    I would like anyone kindly to confirm for me why I have been facing these problems when changing  language for non-Unicode programs from English into Arabic.
    First: After I have installed the  AMD High-Definition Graphics Driver (sp55092) 8.882.2.3000 on my laptop. The contents of the of Intel Graphics and Media Control Panel are partially shown in Arabic while language for non-Unicode programs
    is Arabic, however, they are completely shown in English while language for non-Unicode programs is English.
    A: I found that contents of the of Intel Graphics and Media Control Panel are partially shown in Arabic (second screen shot below, however,
    when click on any options, for example 'Graphics properties' shown in Arabic in, the second window is shown in English) while language for non-Unicode programs is
    Arabic, and it doesn't matter what format or location is.
    B- when I changed language for non-Unicode programs into 
    English.
    I found that contents of the Intel Graphics and Media Control Panel are completely shown in English .
    Second:
    A- Only All Arabic contents will be displayed encryptely while language for non-Unicode programs is English
    B-  All the Arabic contents are displayed properly   while language for non-Unicode programs is  Arabic.
    Third: an error extracting drivers and software downloaded from official HP website while language for non-Unicode programs is English.
    A-  I noticed an error extracting all kinds of comprised files(drivers and software) downloaded from HP website while language for non-Unicode programs is English and whatever location and format are:
    B- However  while language for non-Unicode programs is Arabic, there is no error extracting files.
    In conclusion, Is it normal
    for all of you the contents of the of Intel Graphics and Media Control Panel are partially shown in your native while  language  used
    for non-Unicode programs is your native lanague, however, they are completely shown in English while language for non-Unicode programs is English?.  IF so I would be saying that if I have wanted the  contents of documents written in my language
    Arabic to be shown properly, then then I
    must let the language for non-Unicode programs be Arabic.
    Is this happens with you as well?
    Also, if I need extracting all kinds of comprised files(drivers and software) downloaded from HP website, then language for non-Unicode programs
    must be in my Arabic lanague English and whatever location and format are.
    Is this happened with you as well?
    I would highly appreciate any clarification from you.
    A man should convert his anger and sadness into strength to continue living in this life.

    Hi,
    I am confused about your issue.
    when you changed language for non-Unicode programs into  English, it show English.
    while language for non-Unicode programs is Arabic, it show Arabic, If it's none-Unicode.
    This is correct. Why you think it's an issue?
    About your second scenario description, I was not clear what you said. Could you give us a explanation?
    Note: System display language is not the un-Unicode program language.
    You can just choose one language to display the system at same time.
    This article might be helpful to you:
    Install or change a display language
    http://windows.microsoft.com/en-in/windows7/install-or-change-a-display-language
    Change the system locale
    http://windows.microsoft.com/en-in/windows/change-system-locale#1TC=windows-7
    Karen Hu
    TechNet Community Support

  • Calling Non SAP programe from SAP program

    Hi Experts...
    Can we cal Non SAP programs Like Windows EXE programs from ABAP programs ?
    If yes Then How .....
    Regards ...
    ..Ashish

    Hi Ashish ,
    Ya we can call a non SAP program from SAP program.
    For example we can call a EXE program from the SAP program using the RFC connection created in SM59.
    In Sm 59 you can create a TCP/IP connection and give the path of the executable there.

  • I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found  Help!

    I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found 

    Then, talk to the person running the lab.

  • Can I run Mac App Store programs from an external drive?

    I have a 13" MacBook Air (128); but I have tons of programs that I have purchased from the Mac App Store, especially large training video programs. Even though I don't have a shortage of drive space yet, I certainly could find myself in that position if I keep ALL my programs and data on the flash drive. I really don't need to keep all these on my main drive; but I would like to be able to run one when I need it. Is there any problem with moving the program from APPLICATIONS to an external drive and running it from there? Should I leave the support files & folders (preference & application support) on the flash drive?
    THANKS.

    Thanks for your help on this.
    The MacBook Air is a joy; but the limited drive space is the only caveat. I really should have spent the extra money on the 256 gb flash drive; but at the time I was in the mood to go minimalist. Unfortunately that doesn't work well for me.
    I have already moved all my music to iTunes Match and moved the backups to the external drive. I also keep most of my archive data on the 3 tb external drive. It's mostly those training video programs which are about a gig each that I want to move to the external drive ... ones I would not use that often ... so it's nice to know I can do that.
    THANKS AGAIN.

  • Reading .txt file from remote using abap?

    Hi,
    I must read a .txt file from remote server automatically.
    I have path and name of .txt file. Remote system asks username and password.
    In abap is it possible to give username and password for reading .txt from remote server?
    Remote server and sap server are not in same domain.
    How can i do that?
    Thanks.

    Hi Cemil ,
      You can try using the FM RZL_READ_FILE_REMOTE_SH.
    This is an option i found ,  but i have really not tried it out .
    Regadrs
    Arun

  • Can I run another Small Basic program from a simple menu in another Small Basic program, (It does not need to return!)

    Hi
    Is there a way of calling another program from within a small basic program ?
    I dont mean run within it and then continue where it left off.
    I simply ideally I ideally want to create one program that only contains menu options and depending on the user choice, then to go off and run another program.
    If this is not possible..maybe I am getting over cautious, but does any one know the program size limit, if I need to put all teh features in one program ?
    Thanks in advance
    Dave

    You would need an extension that can start an external exe (may be any exe includng another pre-compiled Small Basic program, or even the SmallBasicComplier to compile source and then run it), such as LDProcess.Start in my extension.  There are also
    other extensions with this or similar commands.

  • Changing Computer Descriptions Remotely using Powershell

    Hello,
    I am the Network Admin for a small college that has a little over 300 computers. I want to be able to use PowerShell to change the computer descriptions on those machines from my desk. I have PowerShell 3.0 installed on my system. I am new to PowerShell
    so I could use some step by step instructions on what to do.
    For instance:
    I have a computer in my network that has a Computer Name of "19XP9175" and a description of "Optiplex 320 - Doreen Lane".
    I would like to change the description to read "O320-Doreen lane"  from my system using PowerShell 3.0.
    Can you give me some pointers on how to do this?
    Thanks
    Daryl

    This may not help with Powershell side of things, but we had a similar issue where we needed to change 100's of remote computer descriptions, so we created this tool:
    <snip>
    It allows you to local or remote connect to a computer on a network (run it with admin rights!) and gather and change the description immediately without requirement for reboot etc. 
    Hope it helps.
    <snip>
    So why are you bumping an old, answered thread in a PowerShell forum then? I get that you want to advertise your product, but at least keep on topic.
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Script out SSIS packages from SSISDB using powershell

    Hi,
    I was able to script out the packages that are on msdb but I was unable to script out that are in Integration services catalog. Does anyone has any idea on how to do this???? Is this possible at all???
    Thanks in advance....

    Can you send me the link in English??
    This is how you can get a single package from IS catalog
    http://social.technet.microsoft.com/wiki/contents/articles/25913.import-a-ssis-project-from-catalog-using-t-sql-script.aspx
    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

  • How to use Powershell to set delegate for user mailbox in Exchange 2010 and Office 365

    Hello,
    Can you please tell me if I can set delegate for user mailbox in Exchange 2010 or Office 365 using Powershell?
    If I can, then how can I do that? (which Powershell commands for setting the delegate?)
    Many thanks, and have a good day!

    Hi,
    If you wanted to add a delegate to possiblly a large number of users or you do this during mailbox provisioning. So the following script will use
    impersonation to access another users mailbox and add a delegate.
    $mbtoDelegate = "[email protected]"
    $delegatetoAdd = "[email protected]"
    $dllpath = "C:\Program Files\Microsoft\Exchange\Web Services\1.0\Microsoft.Exchange.WebServices.dll"
    [void][Reflection.Assembly]::LoadFile($dllpath)
    $service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1)
    $windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
    $sidbind = "LDAP://<SID=" + $windowsIdentity.user.Value.ToString() + ">"
    $aceuser = [ADSI]$sidbind
    $service.AutodiscoverUrl($aceuser.mail.ToString())
    $service.ImpersonatedUserId = new-object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress,
    $mbtoDelegate);
    $mbMailbox = new-object Microsoft.Exchange.WebServices.Data.Mailbox($mbtoDelegate)
    $dgUser = new-object Microsoft.Exchange.WebServices.Data.DelegateUser($delegatetoAdd)
    $dgUser.ViewPrivateItems = $false
    $dgUser.ReceiveCopiesOfMeetingMessages = $false
    $dgUser.Permissions.CalendarFolderPermissionLevel = [Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel]::Editor
    $dgUser.Permissions.InboxFolderPermissionLevel = [Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel]::Reviewer
    $dgArray = new-object Microsoft.Exchange.WebServices.Data.DelegateUser[] 1
    $dgArray[0] = $dgUser
    $service.AddDelegates($mbMailbox, [Microsoft.Exchange.WebServices.Data.MeetingRequestsDeliveryScope]::DelegatesAndMe, $dgArray);
    Hope this helps.

  • Send Message from Process Chain Step without Process Log

    We send a mail message, depending on the success or failure of the process chain step, to user list.
    When the message is sent not only custom message but also the status information and the process log are sent.
    Our users are only interested about the result of the chain and they don' t want to view all technical information.
    Is it possible to send message without process log?
    Regards

    Hi,
    Take 2 process(red and green line) from each of the process in the process Chain, one is for sucessfull and other is for failure and at the end of the proces chain,  just put all failure process to the OR and have add a ABAP Program (with Not Sucessfull) and then just put all sucessfull process to the AND and have add a ABAP Program (with Sucessfull) .
    This wil send the mail to the users, when ever there is failure in PC any where, or sends a mail ..if the process chain completes sucessfully.
    If you want only add the send of mail option at the end of the process chain, we can just add 2 process (red and green line) and have same flow as above. so that.. it will only sends mail..when there is failure or sucessfull of the process chian.
    Hope it helps ......

  • Using credentials of a logged in user with JMX (Admin console extension)

    Hello,
    I would appreciate any info regarding creation of a connection to the DomainRuntimeService MBean server in an administration console extension in BEA Weblogic 9.2.
    The problem is that if I provide no security credentials, I'm not able to invoke any operations on the MBean server. Also the possibility of providing "default" user credentials within the extension "configuration" used to authenticate is not an option.
    The most convenient way would be to use the same mechanisms used by the rest of the administration console, but there seems to be very little information around about where to retrieve the username/password used to log in to the console.
    Thank you very much in advance, If you didn't understand my question, please ask for more information since English is not my native tongue.

    Hi,
    Check the following wiki content submitted by Michael Nicholls:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/excel%252bspreadsheet%252bof%252bume%252bassignment%252bdata
    The code for getting groups for your case (current logged in user) should be like:-
    IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();
    IUser user1 = clientUser.getSAPUser();
    Iterator groups = user1.getParentGroups(false);
    while (groups.hasNext()) {
    IGroup group = groupFact.getGroup(groups.next().toString());
    String groupname = group.getDisplayName();
    Add this group name to a list
    I do not have NWDS access at the moment so haven't checked it myself... you may try it out.
    Also check out the following threads on the same issue:
    Re: Get all Groups for current user
    Re: Portal User and Role info

  • How do I run a non-server program on Windows Server 2008

    I currently run a synchronization software application on my desktop in order to backup and synchronize over 600GB of data.  I would like to install this on our server, which runs Windows Server 2008, but the software does not provide for installation
    on this operating system.  I continue to receive a message stating that the software may not run properly on Windows Server OS, but it does not allow me to bypass this message.  Is there any way to create a partition or trick the software into thinking
    that it is running on a different operating system or do I have to abandon Server 2008 and install a basic home operating system in order to run this software?  Any help would be tremendously appreciated.  
    Thanks!
     

    Hi,
    According to your description, my understanding is that you want to install an software which is not supported by Windows Server.
    Try to install this software in other compatibility mode:
    1. Right-click the installation program and select properties.
    2. Select Compatibility tab, select the checkbox Run this program in compatibility mode for.
    3. try to use different OS to install this program.
    Besides, you may right-click the installation program and select Run as administrator.
    Above are my personal suggestion and just for your reference. If the problem still exit, I suggest you to connect the software‘s support/form for better help.
    If you want to backup date, I suggest you to use Windows Server Backup, you may reference the link below for detailed information:
    http://technet.microsoft.com/en-us/library/cc770757.aspx
    Best Regards,           
    Eve Wang     

  • Running applet as RMI client from remote computer

    Hi,
    I am doing this project that requires that i run an applet (which is an RMI client) from a computer different than the one that has the RMI server running.
    Right now, i can run my server and applet on the same computer and it all works fine. But i don't know how to make the applet communicate with an RMI server that resides on another computer. Does this has anything to do with TOMCAT.
    I was wondering if this is possible.
    Thank you in advance.

    Do This
    RemoteInterfaceName server = (RemoteInterfaceName) Namin.lookup("rmi://yourserver/server/YourServerName");
    server.methodName(args);
    suppose you have your server in the dir path
    c:\prj\server
    then set your webserver's root dir to c:\prj\server how this is done will be in the web server's documentation
    Try It otherwise we'll see it again
    Bye !!!

  • Running Crystal report( with subreport)  from VB6 using CRAXDRT.Report

    The application (vb5 with CRAXDRT.Report version 11.5) works for more than 50 different reports.
    This special report has a subreport with 5 Link elements.
    Report works fine with Crystal XI. But when gets fired  from vb6 application, after 2 or 3 times
    (sometimes at the first time), application crashes with following error message pops up:
    vb6.exe-Application Error.
    Instruction at 0x0000000 referenced memory could not be "read"
    The link elements of subreports are:
    (MSP for Main report's stored proc, SSP for Subreport's stored proc)
    MSP . @Prior  -> SSP.@Prior
    MSP . @managerID -> SSP.@managerID
    MSP . @showall -> SSP.@showall
    MSP . officeid-> SSP.@officeid
    MSP . manager -> SSP.manager  (items with @ sign are Parameters)
    If I delete the last link element this error never happens !
    Any clue ?

    For starters, get the latest Service Pack for CR XI r2 from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    Make sure you also have the latest SP for VB 6.
    Ludek

Maybe you are looking for

  • Resetting of FI document number during the same year

    Hi, Our permit for a computerized books of accounts using SAP has been issued by our Tax agency effective March 01, 2009.  Relative to this, we need to reset FI document number effective March 01, 2009. Our problem is we already used up document numb

  • Is it Possible to Make an Object Dissappear in a Shot?

    Hey Everyone... I am finishing a short film and happened to notice one minor issue. In one of my master shots, I can see a light that should not be in the shot. Unfortunately, it cannot be wire framed out. I know this is a crazy question, but is ther

  • My photosmart c410 pauses ~ 1 minute before finishing the last page of a job - also on a single page

    I have a photosmart c410, set up as wireless.  On the last page of a print job, printing stops with about 1-2 inches to go on the page, then waits around 1 minute and finishes.  A single page job does the same thing.  During this time there are no er

  • DAQCard-6533 (PCMCIA) Doublebuffered performance

    I'm using my DaqCard-6533 (PCMCIA) under Win2k (service pack 1) in doublebuffered patterngeneration mode. Laptop specs: 750Mhz PIII with 192mb ram. The manual shows a performance of 120000 S/sec. I get error 10803 when i use the card at any frequency

  • Is it possible to attach image with specific size?

    Hi, My company is very interested in Adobe LiveCycle Reader Extensions, as it suits most of our requirements. However, we want to know more about it. When our users submit their forms, they need to attach an image for submission as well. The image we