Start-Process : This command cannot be run due to the error: The system cannot find the file specified.

Hi, 
I need some help with my script. It copies the file to the remote laptops but when it needs to install the .exe it fails.
If I run 1 line at the time in Powershell ISE, then it works. Somebody has an idea why it doesn't work or can help me on the right way?
Script: 
$laptops = Get-Content -Path "C:\Users\bruyld01\Documents\STEPSTONE\Powershell\SAP\LaptopList.txt"
foreach ($laptop in $laptops)
    Copy-Item "C:\Users\bruyld01\Desktop\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V5.exe" -Destination \\$laptop\C$\
    Enter-PSSession $laptop
    $version = Get-WmiObject -Class Win32_Product | where {$_.Name -like "*SAP Business*"} | Select-Object Version
    if ($version -ne "135.0.2071.1047")
        Start-Process -Filepath "C:\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V5.exe" -ArgumentList "/quiet"
    else
        Write-Host "SAP outlook add-in is up to date!" -ForegroundColor Green
    Exit-PSSession
Error message:
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At line:2 char:1
+ Start-Process -Filepath "C:\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
Thanks, 
Dimitri

Hi,
Enter-PSSession is used for interactive remote sessions. Look into Invoke-Command instead.
http://ss64.com/ps/invoke-command.html
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)

Similar Messages

  • TS1550 My time machine has stopped backing up.  I get a message that says it cannot complete backup due to an error that occurred while creating the folder.

    How do I get my time machine to complete a backup?

    Hello Dee,
    http://pondini.org/TM/C10.html

  • Skype keeps saying "not enough storage is available to process this command"

    skype keeps saying “not enough storage is available to process this command”I am running XP sp3 with iexplorer v8.  I have tried all the supposed fixes i can find here.  Including delete shared.xml and changing The IRPStackSize parameter.  I have reinstalled skype and iexplorer many times. I have used skype for many years but now it is broke.Very sad that I can't get it working again.  

    I was also in your situation, was unable to fix it until i found:http://windowspro.eu/skype-fix-not-enough-storage-is-available-to-process-this-command/ Hope it will help you too.

  • DHCP Split-Scope Configuration Wizard showing error "Not enough storage is available to process this command".

    Hi,
    I'm trying to split the DHCP scope between two Servers using the DHCP Split-Scope Configuration Wizard.
    Server one is a VM hosted on Hyper-V and is running Windows Small Business Server 2008 (I think this was previously SBS2003 and was upgraded at some point in time). The whole DHCP scope is currently configured on here.
    Server two is a VMware VM running Windows Server 2012 R2.
    I've installed the DHCP Server role on Server two (2012R2) and authorized the Server. When I launch DHCP Manager, add the SBS2008 Server in the MMC, right click the scope and choose "Advanced > Split-Scope", and then run through the wizard,
    I get as far as the "Percentage of Split" screen, and when I click next I get the error "Not enough storage is available to process this command".
    I've searched online for this particular error message and I've come across articles suggesting AV exclusions are not in place for the DHCP database and files, however in this case the exclusions are definitely in place and I've also tried completely disabling
    AV on both Servers and this made no difference to the outcome.
    I also came across articles suggesting the "IRPStackSize" registry DWORD needed to be added and set to a decimal value of 15 or larger. Again, I've tried adding this and rebooted both Servers but I get the same result.
    Anyway have any ideas?
    Thanks,
    Craig

    Hi Eve,
    No, there were no related events in the event logs. I've since tried splitting the DHCP scope manually but this did not work - the DHCP Server on the SBS would just stop and event: 1053 was displayed when trying to start the service again. I noticed
    that as soon as I de-activated DHCP Server on the 2012 Server then the DHCP Server on the SBS would start again.
    I then found the following in a TechNet article that would suggest I cannot have another DHCP Server on the network if using Small Business Server.
    Notes      
    A DHCP server running Microsoft Small Business Server will not operate if another DHCP server is active on its network.
    Detection of unauthorized DHCP servers requires the deployment of Active Directory Domain Services and the DHCP service. Other DHCP servers do not attempt to determine whether they are authorized by Active Directory Domain Services before offering IP address
    leases.

  • Win 7 Pro x64 Error 0x8007046a: Not enough server storage is available to process this command.

    I installed Win 7 Pro x64 on a reasonably decent  machine (Nvidia nForce 680i SLI, core 2 duo, 4 gig ram). It was a clean install on a freshly formatted partition. While copying a large bunch of files from another machine on the LAN, I get "Error 0x8007046a: Not enough server storage is available to process this command." It does give me the option to retry and continue, but the error inevitably pops up again later during the copy. Googling the error, I found a reference to it, suggesting I go to the registry and increase the IRPStackSize (but this article was not specific to Win 7). I tried increasing it as high as 32 hex. This reduces the frequency of the error, but does not eliminate it completely. Also, I now see a new error sometimes that says, "Too many files are currently in use. Quit one or more programs and then try again." That's odd, because I don't have anything else running. I haven't seen these errors when copying files to different partitions on the machine, so I assume it's something to do with network.

    Hi,
    To troubleshoot the issue, please try to do an In-Place Upgrade to repair the system.
    1. Start the computer by using the current Operating System.
    2. Insert the Windows 7 DVD in the computer's DVD drive.
    3. Use one of the following procedures, as appropriate:
    If Windows automatically detects the DVD, the Install now screen appears. Click Install now.
    If Windows does not automatically detect the DVD, follow these steps:
    a. Click the Start Button, type Drive:\setup.exe in the start search box and then click OK.
    Note: Drive is the drive letter of the computer's DVD drive.
    b. Click Install now.
    4. When you reach the "Which type of installation do you want?" screen, click Upgrade to upgrade the current operating system to Windows 7.
    Thanks,
    Novak

  • Regarding Not enough quota is available to process this command

    Hello,
    My java application is is multi-threaded & is supposed to run as a 24/7 service. the application does number of I/O operations.
    roughly 160,000+ read/write from/to flat files in the hard disk.
    I was doing some testing and found that the application crashed
    (it doesnt actually crash but rather freezes)
    at around 5-7 hours after starting the application.
    The exception thrown out was
    Not enough quota is available to process this command.
    ther are multiple instances of this exception thrown
    The JVM doesnt actually crash but I get this exception thrown
    during every read/write process.
    This doesnt seem to be a Java exception but rather is thrown by the OS.
    Also all the sockets that I have created in my application fails.
    and all windows allications cease to work. They start to work
    after I explicitly shut-down the JVM
    I did some googling and found that I may need to increas my paging size.
    My system has 1.5GB RAM and the default paging size was 3GB, I've
    increased it to an initial size of 4092MB and a Max of 6092GB.
    Now I find that the app runs a bit longer but still crashes.
    I checked the Mem usage via task manager and the Mem usgae remains constant varies around 190,000K to 270,000K
    I also checked using a profiler tool and it seems to be fairly constant.
    Has anyone had this problem or any suggestions will be great!

    I may have solved the problem, like I said I am making
    160,000+ read/write everyday in my application.
    i noticed that in my read and write methods - which is called 160,000 time, I open the file through a RandomAccessFile object but I dont explicitly close the file object at the end of the function!
    I assumed that it will be taken care by JVM during garbage collection
    Anyway after explicitly closing the RandomAccessFile object, the app doesnt seem to crash, anyway Ill let the app run for a whole week and see how it reacts performance wise.

  • Not enough storage is available to process this command on 32bit Windows

    Hello,
    After deployment of an application in production, we have started to experience the error:
    java.lang.Error: : Not enough storage is available to process this command.
         at java.lang.Thread.start0(Native Method)
         at java.lang.Thread.start(Thread.java:574)
    with the configuration:
    - JRockit27.6/
    - WebLogic 9.2.3 with a 1,4GB heap
    - 32-bit Windows2003 with /3GB.
    The problem is caused by threads created by JCIFS and other 3rd party libraries.
    The JVM process (java.exe) grows from 1,4GB to 1,96GB and the exception starts to occur.
    Is there any other solutions than:
    1) Move to 64-bit, http://cn.forums.oracle.com/forums/thread.jspa?threadID=1062107
    2) Decrease the heap
    3) Reconfigure Windows, http://stackoverflow.com/questions/507853/system-error-code-8-not-enough-storage-is-available-to-process-this-command
    Any help to stabilize this 32-bit setup is appreciated!
    Edited by: Allan Andersen on 2010-11-03 02:39

    Had the pleasure of this one myself, due to (excessive) thread creation by JCIFS during AD log ons. This is an Out Of Memory exception. Not in the heap, but in the native memory used by the JVM process. I solved the issue by enabling the /3GB switch on Windows. Alternatively profile the memory usage of your application to minimize its usage of native memory. Look at these links for more inspiration:
    http://cn.forums.oracle.com/forums/thread.jspa?threadID=1062107
    http://blogs.oracle.com/jrockit/2008/09/how_to_get_almost_3_gb_heap_on_windows.html
    http://forums.sun.com/thread.jspa?threadID=5343135
    http://stackoverflow.com/questions/2640239/java-lang-error-not-enough-storage-is-available-to-process-this-command-when-g
    http://stackoverflow.com/questions/507853/system-error-code-8-not-enough-storage-is-available-to-process-this-command
    http://www.microsoft.com/downloads/details.aspx?familyid=5cfc9b74-97aa-4510-b4b9-b2dc98c8ed8b&displaylang=en
    http://support.microsoft.com/kb/126962/
    Regards,
    Allan
    Edited by: Allan Andersen on 2011-01-03 03:27

  • Report Builder 3.0 - Not enough storage is available to process this command

    I have a customer who uses Report Builder to create adhoc reports against a SQL data warehouse.  However, users intermittently encounter the exception "Not enough storage is available to process this command", which appears to relate
    to creating/drawing the report.
    It would appear that a user can define the required Report SQL, run the report and export it to Excel.  However, on occasions, when the user reviews/amends the report SQL, or specify a new value for a existing report parameter, and then try to run the
    report, they get an exception, as per the snippet below:-
    System.ComponentModel.Win32Exception: Not enough storage is available to process this command
       at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
       at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height).
    The error can also occur after trying to re-export the report to excel. In this case the export works.
    In all cases, the user is given the option to continue or quit, but clicking continue just causes the error to be re-displayed so the user has to quit Report Builder and re-open it..
    We have monitored the user's resources (citrix session) and they are not using all their RAM or temporary folder space.

    Hi jocelyn,
    As per my understanding, you got the error on occasions when you change the parameters to run the report, export it to excel or preview the report, right?
    Did your report have large amount of rows or columns or did you have image or chart in the report? Did this issue happened on the other reports too?
    Your issue can be caused by many factors:
    If you have some image or chart in the report. Based on the callstack crashing at System.Drawing, it looks like GDI+ may be a problem. Make sure you have the latest updates installed for GDI+. The interaction of the content of the report with GDI+
    may also be something to investigate. If you have many images in the report, each image is a distinct GDI object and could potentially cause a problem.
    It also probably running out of space on your computer, so you may need to check the space on your c: drive. If you are running out space, you can try to reboot the computer or delete a few things or somehow getting a bigger hard drive to check the
    issue again.
    If the issue only happend on this report, I recommend you to recreate an same report to have a test.
    Similar thread below for your reference:
    SharePoint 2010 SSRS Integrated - Report Hangs and crashes
    System.ComponentModel.Win32Exception: Not enough storage
    is available to process this command
    Not enough storage is available to complete this operation
    If your issue still exists, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Not enough server storage is available to process this command

    Windows XP Pro x32 Connecting to Windows 8.1 Pro x64
    I am trying to map a share on a Windows 8.1 Pro x64 machine (Surface Pro 3 512GB) to a drive letter on a Windows XP Pro x32 machine.  I get an error saying:
    Not enough server storage is available to process this command
    I did a search and found:
    http://support.microsoft.com/en-us/kb/106167
    which says to increase (or set if it doesn't exist) the value of IRPStackSize in:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
    Since the item didn't exist I created it and set it to 0xC (the maximum recommended value).
    I then rebooted the Surface Pro 3 (Windows 8.1 Pro).
    When I tried to map the share again I got the same error message. 
    Is this a Windows XP problem or a Windows 8.1 problem?  In either case how do I get around it?
    Please do not respond with a suggestion to upgrad the Windows XP machine.  It is running software and accessing hardware that will not work with a later version of Windows.
    http://www.saberman.com
    Edit:
    It appears to only be a problem in access shares on USB attached drives.  There is no problem in access shares on the Surface Pro 3's C: drive.  Is this a known problem?

    >Have you tried to map the drive from the Windows 8.1 to the Windows 7 machine ?
    Yes and it worked before I created IRPStackSize in the Windows 8.1 registry.
    I increased IRPStackSize on the Windows 8.1 machine to decimal 50 and was able to map the Windows 8.1 share onto my Windows XP machine.
    I noticed that the article at the link:
    http://support.microsoft.com/en-us/kb/106167 said.
    Note Values may range from 0x1 to 0xC. These values are equivalent to 1 to 12 in decimal notation.
    There is an article at:
    http://support.microsoft.com/en-us/kb/285089 that said:
    The default value of the IRPStackSize parameter is 15. The range is from 11 (0xb  hexadecimal) through 50 (0x32 hexadecimal).
    Whereas the article at the external site said to keep making it larger until it works.
    BTW, my Windows 7 and Windows XP machines have MSE for proctection. Windows 8.1 has Windows Defender. No third party software.
    http://www.saberman.com

  • When I tried to open a fresh iTunes download my computer gave the error message : 'program cannot run in DOS mode'. Since both items are Apple, why might this be happening?

    When I tried to open a fresh iTunes download my computer gave the error message : 'program cannot run in DOS mode'. Since both items are Apple, why might this be happening?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99602)

  • Cant install acrobat XI on windows 8.1, error not enough storage to process this command

    can not install acrobat on windows 8.1 due to error message;  not enough storage to process this command.  what can I do?

    Hi,
    You might need to delete TEMP directory of your system and then check.
    Regards,
    Anubha

  • MapViewOfFile: Not enough storage is available to process this command.

    Hi,
    Was trying to insert the documents and querying it at the same time. This error didnt happen before.
    MapViewOfFile: Not enough storage is available to process this command.
    PANIC: Not enough space
    com.sleepycat.db.RunRecoveryException: DB_RUNRECOVERY: Fatal error, run database
    recovery: MapViewOfFile: Not enough storage is available to process this comman
    d.
    PANIC: Not enough space: DB_RUNRECOVERY: Fatal error, run database recoveryHere is how my environment is configured:
    public void setXmlEnvrionment()
              try
                   //File envHome = new File(properties.getProperty("DATABASE_LOCATION"));
                   File envHome = new File("");
                   EnvironmentConfig envConf = new EnvironmentConfig();
                   envConf.setAllowCreate(true); // If the environment does not exits,
                   // create it.
                   envConf.setInitializeCache(true); // Turn on the shared memory
                   // region.
                   envConf.setCacheSize(100* 1024 * 1024); // 100MB cache
                   envConf.setMutexIncrement(22);
                   envConf.setMaxMutexes(200000);
                   envConf.setMaxLocks(200000);
                   envConf.setMaxLockers(200000);
                   envConf.setMaxLockObjects(200000);
                   envConf.setInitializeLocking(true); // Turn on the locking
                   // subsystem.
                   envConf.setInitializeLogging(true); // Turn on the logging
                   // subsystem.
                   envConf.setTransactional(true); // Turn on the transactional
                   // subsystem.
                   // envConf.setTxnNoSync(true); // Cause BDB XML to not synchronously
                   // force any log data to disk upon transaction commit
                   envConf.setLogInMemory(true); // specify in-memory logging
                   envConf.setLogBufferSize(60 * 1024 * 1024); // set logging size.
                   envConf.setLockDetectMode(LockDetectMode.DEFAULT); // Reject a
                   // random lock
                   // request
                   myEnv = new Environment(envHome, envConf);
                   System.out.println("Environment created...");
              } catch (Exception ex)
                   ex.printStackTrace();
         }Any idea how to solve this problem?
    Many thanks! :)

    Hi rucong,
    What do you mean "write data in parallel with fine transaction protection"?
    It seems fine for now... when I run on a Tomcat Server... thanks
    There is another issue.. I tried to include snapshot isolation and tried running on the server
    java -Xms32m -Xmx512m  -cp Aggregator.jar:db.jar:dbxml.jar ag.SaveMessageinDBI increased the memory of the JVM to 512M. Tried inserting 200 documents and this error occurs
    com.sleepycat.dbxml.XmlException: Error: Unable to generated a document ID, errcode = INVALID_VALUE
            at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_4(Native Method)
            at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:893)
            at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:241)
            at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:229)
            at ag.SaveMessageinDB.addXMLDocument(SaveMessageinDB.java:231)
            at ag.SaveMessageinDB.saveMessage(SaveMessageinDB.java:84)
            at ag.SaveMessageinDB.main(SaveMessageinDB.java:324)Would require your help. Thanks!
    :)

  • Thread creation error: Not enough storage is available to process this command

    Two user in my company have this problem, I have already used the solution on the community but would come back after 2 to 3 weeks. They all have the message "Thread creation error: Not enough storage is available to process this command". I tried increase the virtual memory to 4Gb, update one client to the latest, reset IRPStackSize, delete temp folder.  one client is 7.5.XX with windows 7 and another is 6.20.0.104 with Windows XP,My machine is also 6.20 with windows 7 but I dont have this problem.   

    Version previous to 7.6 worked fine. After update I have got this message and mostly of Skype GUI turns black or vanishes. No possibility of making more than one call before crash, It is amazing that a thread started about two weeks ago has no technical answer, at least. What do I do with my credits and my appointments? Throw them away?

  • Not enough storage is available to process this command

    When I try to execute the start_management_server option with jrcmd I get the following error "Not enough storage is available to process this command". How much memory is required to execute this option? I am also interested in determing what would be required to enable SSL and authentication. The company I work for is under tight audit requirements and will want me to utilize SSL and authentication.
    Thanks in advance for any and all help provided.
    Michael

    Just thought I would provide a quick update...
    We are still trying to get this to work completely on our eFix systems before making the changes to production. We had to change ssl=true to ssl=false in order to connect. This may have to do with how the tech on the other side made the change. In other words, he may have been able to do something else but for now didn't care about the SSL since we are connecting over a COAM.
    I can start up the Console now and see current data but we are being blocked from recording. I had them download the license file as defined in one of the sticky posts regarding license files for previous versions of JRockit. I no longer get that I don't have a license but that the JRA section of the license.bea file does not exist. I have copied below the exact error that shows up in the console after trying to start a Recording.
    A license for JRA could not be found on the JRockit at Create JRA-recording on SERVERNAME:PORT
    Your license does not allow JRA to be started: Error: Can not find component JRA for JRockit * in the license file.
    Please che
    The error is cut off in the window. I am not sure if it would help to have the rest of that error or not. I will be searching for a solution outside of the forums but if anyone has a quick resolution that would be greatly appreciated.
    -Michael

  • Infopath has encountered an error. The operation failed. Not enough storage is available to process this command

    hello,
    Using INFO PATH 2013 on Windows 7 64 bit, user is getting the error "Infopath has encountered an error. The operation failed. Not enough storage is available to process this command"
    We added the registy IRPStackSize and set it to max 50. This works on my test machine but not this user.
    So when using infopath designer 2013, then blank form and data connection, we select Receieve Data-->Sharepoint Library or list and then enter the url to connect to and the user gets the error "Infopath has encountered an error. The operation failed.
    Not enough storage is available to process this command"
    We use office 365 of course with Sharepoint.
    I am able to run infopath 2013 as an admin and I am able to connect fine, but not with his standard profile.
    Any ideas, please let me know.
    Best regards,<br/> <br/> <strong>Joe C<br/> </strong>Partner Online Technical Community<br/> -----------------------------------------------------------------------------------------<br/> We hope you get value from
    our new forums platform! Tell us what you think:<br/> <a href="http://social.microsoft.com/Forums/en-US/partnerfdbk/threads"><span style="color:#0033cc">http://social.microsoft.com/Forums/en-US/partnerfdbk/threads<br/>
    </span></a>------------------------------------------------------------------------------------------<br/> This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights <hr>

    side note, i am able to connect on his pc with a standard user account so something with his windows profile that's corrupted, anyone know?
    Best regards,<br/> <br/> <strong>Joe C<br/> </strong>Partner Online Technical Community<br/> -----------------------------------------------------------------------------------------<br/> We hope you get value
    from our new forums platform! Tell us what you think:<br/> <a href="http://social.microsoft.com/Forums/en-US/partnerfdbk/threads"><span style="color:#0033cc">http://social.microsoft.com/Forums/en-US/partnerfdbk/threads<br/>
    </span></a>------------------------------------------------------------------------------------------<br/> This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights <hr>

Maybe you are looking for

  • Adobe After Effects CS6 cannot be opened because of a problem

    Hi, Sorry if I'm posting in the wrong place - I can't find sections navigation on these forums. Running Mac OSX 10.8.5 I tried uninstalling AE CS6 and then reinstalling AE CS6 - same issue happened. AE was working fine until I tried to open it today.

  • Design Mode black

    Hi, I have an application based on flash builder 3 with SDK 3.2. I try to import this application to Flash builder 4.6 with SDK 3.6, but in design mode, I have a black screen. Anyone have a solution for that ?

  • Windows XP mouse halted and screen blacked out!

    When I boot up with boot camp and dragging some windows size (like IE or Excel). The mouse pointer halted and after a few seconds the screen blacked out just like the machines is turned off. However, I discovered that the system is still running. I c

  • ISight cam and Mountain Lion

    I just updated to mountail lion. Now everytime I turn on internal iSight cam my display changes colour. It seems to switch to a different colour profile for displays and as soon as I stop using the cam the colour returns back to normal. I tried captu

  • Dynamic Select with different number of rows

    Hi all, I have a procedure who receives a table name and array of column names of that table. I need to create a specific select statement with this parameters. Of course, this could change because the number of column names may differ from each invo