Make unzip scrip run on another machine
H i all so I came up with this little script. It's very unoptimized and I want to make the unzip part into a function. My main question is I'm copying this zip folder to another machine. Will it actually use this machine to unzip or will the work load be
done on the host that I'm sending it from.
Here's the code:
$a = Get-Content C:\Users\cody-horton\Desktop\list.txt
function Expand-ZIPFile($file, $destination)
$shell = new-object -com shell.application
$zip = $shell.NameSpace($file)
foreach($item in $zip.items())
$shell.Namespace($destination).copyhere($item)
for($i=0;$i -lt $a.Length; $i++){
if(!(Test-Connection -Cn $a[$i] -BufferSize 16 -Count 1 -ea 0 -quiet)){
Write-Host $a[$i] -foregroundcolor red
else{
#Create directory
New-Item -ItemType directory -Path "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk\" -Force
#Move zip to directory
Copy-Item "\\nlcr2553218x4-1\C`$\Users\ttinker\Desktop\adt-bundle-windows-x86_64-20131030.7z" "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk" `
-Recurse -Force
#Unzip file
Expand-ZIPFile –File "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk\adt-bundle-windows-x86_64-20131030." `
–Destination "\\$($a[$i])\c$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk"
#Delete zip folder
Remove-Item "\\$($a[$i])\C`$\Users\Public\Documents\Android SDK\adt-bundle-windows-x86_64-20131030\sdk\adt-bundle-windows-x86_64-20131030.7z" -Recurse
Write-Host $a[$i] -foregroundcolor green
$b = new-object -comobject wscript.shell
$c = $b.popup("DONE!!",10,"Test Message Box",1)
Would I need to make a batch file and if so how would I do this. Thanks
You'd need to use either Invoke-Command (if you have PS Remoting enabled) or PSExec (if not) to launch the extraction script on the remote machine.
Similar Messages
-
Lightroom 5. I've reinstalled it on a macbook pro but when I click "Develop" it states the module is disabled and I need to purchase a licence but I've got a full licence and it's running on another machine. How do I fix it?
Lightroom doesn't launch or returns "Develop module is disabled" error after 5.5 update
-
I just upgraded to 10.10. On the mail program, one of my accounts is having an issue sending email. I am getting the following error message:
The certificate for this server is invalid.
Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent.
But on another machine running Mavericks, I can still continue to send email. The same is try from my iPhone 5S.
On that machine running Mavericks the SMTP is configured as SSL and for "Usual Ports" (25, 465, 587) but THIS OPTION IS MISSING ON THE NEW VERSION. On the new version I have tried configuring the port to 25 and then 465 and 587 with no success. I have used the Network Utility to see if my provider is blocking me -- it is not. I have no third-party software on this machine (anti virus). I can receive email fine. On the new Yosemitie Mail there are new checkbox options of Automatically check my settings and Allow unsecure connections. I tried to uncheck SSL for SMTP but then it says it cannot send securely my passowrd and i need to check the option "Allow to send unsecurely". I did that but the same error message keeps appearing. So I have tried nearly everything I have been able to, all to no avail. Please can somebody help?Thanks for your reply. Yes, it is a POP account. Incoming mail is fine. My port for incoming is also 110. But the outgoing port should be 587 (or 24, 465 and 587 as on Mavericks' "Usual Ports" option). I am using the same configuration across three different devices and only the machine running Yosemite is having issues. I notice in the new version of Mail there is no longer the "Usual Ports" option. I am not sure this is the culprit or not. But the fact is no matter how I configure it, it will not send mail for these particular servers. I have multiple clients and only one is affected, meaning I can send email from other email addresses (different hosting contracts) on Yosemite but on this one particular one I cannot.
-
ConnectException when running in another machine
Hi,
I am getting ConnectException when i am running the server in another machine which is linux server,and when i am calling it from my local system it throws ConnectException.
But i didn't get it when i am running both in my local system.Please tell what modifications have i to made with my programs.
regards,
j.mouliThe problem is with the command being used to start the RMI server. If you are starting it with the flag
-D:java.rmi.server.hostname=localhost
chang the flag to
-D:java.rmi.server.hostname=johnb -
"Security error accessing url" - Accessing HTTP service running on another machine
Flex app is hosted as web service and is trying t access data
from HTTP Service
running on different machine. It throws following error
[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]
at
mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/securityErrorHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
n()
at flash.events::EventDispatcher/dispatchEvent()
But when I run the HTTP Services (data provider) on same
machine application
works fine.
Already used crossdomain.xmlSorted the cross domain problem by using mx:Webservice rather
than an httpservice. -
ORA-12545 when running on another machine
Hi All,
I have developed an app in Visual C# 2008, which uses ODP.NET for connecting to Oracle.
It works perfectly, but when I pass the application binaries to my colleagues, they keep getting the [ORA-12545|http://ora-12545.ora-code.com/] error.
They have the same client version (11.1.0.6.0), but at a different location.
From the nature of the error, I assume that the application "finds" the oracle client (and thus the Oracle.DataAccess.dll) correctly.
What can I do to make the app run on their computer as well? They have the same tnsnames.ora and every setting is the same, other applications (like Toad) work for them using the same client and tnsnames.ora.
Thanks,
David.
Edited by: king4aday on 2010.05.11. 6:26Well, given that, I think getting a sqlnet trace would be a good idea. Have you done that before by chance? It's not terribly difficult, but maybe a bit messy to do through a forum posting (not impossible mind)... If you have a support contract you can open an SR to help with that.
As an example, here's my sqlnet.ora file from an 11.2 ODAC install with all the tracing enabled (need to change path as appropriate, of course):
SQLNET.AUTHENTICATION_SERVICES=(NTS)
NAMES.DIRECTORY_PATH=(TNSNAMES, EZCONNECT)
DIAG_ADR_ENABLED=OFF
TRACE_LEVEL_CLIENT=16
TRACE_DIRECTORY_CLIENT=C:\oracle\11.2\odac\Network\Admin\TraceWhen I deliberately place an invalid host name in my tnsnames.ora file as a simple test, the section of the resulting trace file of interest looks like this:
(5840) [11-MAY-2010 11:10:08:581] nttbnd2addr: entry
(5840) [11-MAY-2010 11:10:08:581] snlinGetAddrInfo: entry
(5840) [11-MAY-2010 11:10:08:581] snlinGetAddrInfo: getaddrinfo() failed with error 11001
(5840) [11-MAY-2010 11:10:08:581] snlinGetAddrInfo: exit
(5840) [11-MAY-2010 11:10:08:581] nttbnd2addr: looking up IP addr for host: bogus
(5840) [11-MAY-2010 11:10:08:581] snlinGetAddrInfo: entry
(5840) [11-MAY-2010 11:10:10:833] snlinGetAddrInfo: getaddrinfo() failed with error 11004
(5840) [11-MAY-2010 11:10:10:833] snlinGetAddrInfo: exit
(5840) [11-MAY-2010 11:10:10:833] nttbnd2addr: *** hostname lookup failure! ***
(5840) [11-MAY-2010 11:10:10:834] nttbnd2addr: exit
(5840) [11-MAY-2010 11:10:10:834] nserror: entry
(5840) [11-MAY-2010 11:10:10:834] nserror: nsres: id=0, op=77, ns=12545, ns2=12560; nt[0]=515, nt[1]=1004, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
(5840) [11-MAY-2010 11:10:10:834] nsc2addr: error exitSo, you can clearly see the 12545 in this trace and the file will have lots of other information such as the tnsnames.ora file used, etc.
Regards,
Mark -
Make a disater test on another machine
Good afternoon,
We would like to test our recovery procedures.
We are using sap on a Solaris server with Oracle 10.2.
We are going to restore our prod server (PS) on a new server (RS).
RS has a different ip address than PS.
RS has a different hostname that PS.
We are going to restore the files, on RS, from a networker backup of PS.
Our users are going to continue using PS during the test.
I would like to ensure that the sap server that I start on the RS is not going to have interaction with my other sap servers.
I have, for example, noticed that the restored tnsname (for COMMUNITY = SAP.WORLD) points to the PS server.
Therefore I should change that.
Could you please tell me which files should I modify to avoid interaction with my other servers?
If I do not adapt any files, which interaction are created between RS and PS and my DVM and QAS servers?
Thanks in advance for your answers.> Could you please tell me which files should I modify to avoid interaction with my other servers?
I would put (the correct hostnames)
127.0.0.2 PS
127.0.0.3 DVM
127.0.0.3 QAS
<other-servers-you-have-connections-to>
in our /etc/hosts files. So even if jobs are started or filetransfers are to be taken place the system only connects to itself and hence fails.
> If I do not adapt any files, which interaction are created between RS and PS and my DVM and QAS servers?
We can't tell you that because we don't know which (e. g.) RFCs you have configured, what other applications are running on those servers and how and with whom they interact.
Markus -
Hello, I have the usual issue to use AcroExch.PDDoc/AcroExch.App/AcroExch.AVDoc objects in Visual Basic (MS EXCEL). On my company's machine I have Acrobat X and everything works fine. I am looking for the cheapest solution to get the stuff running on another machine... is there any way to do that with the Acrobat SDK, or do I need to purchase a full version of Acrobat XI ($$) ?
The Acrobat SDK is nothing by itself. It is just information on how to automate Acrobat - just as the Office SDK doesn't include Office, but is for people who already have purchased Office but want to automate it.
These automation things are MARKETING TOOLS FOR ACROBAT. Consider this and the technical limitations make a lot more sense.
So, yes, you need to buy Acrobat. Standard is cheaper than Pro. -
Managed Servers on another machine
I'm having problems getting a managed server running on
another machine with NT. For simplicity, I'm using the
'mydomain' that comes in the install. From the
'mydomain' directory, I just:
startWebLogic.cmd
which starts up the weblogic server after adding my
system password. Then, from the console, I add a new
machine and a server on this machine. Then from the
other machine in the equivalent 'mydomain' directory, I
run:
startManagedWebLogic.cmd server-2 machine1:7001
And, it gives me this error:
D:\bea\wlserver6.0>"D:\bea\jdk130\bin\java" -hotspot
-ms64m -mx64m -classpath .;
.\lib\weblogic_sp.jar;.\lib\weblogic.jar
-Dweblogic.Domain=mydomain -Dweblogic.N
ame="server-2" "-Dbea.home=D:\bea"
-Dweblogic.management.server="machine1:7001"
"-Djava.security.policy==D:\bea\wlserver6.0/lib/weblogic.policy"
-Dweblogic.mana
gement.password= weblogic.Server
Enter password to boot weblogic server:system123
Starting WebLogic Server ....
Connecting to http://machine1:7001...
The WebLogic Server did not start up properly.
Exception raised:
weblogic.management.configuration.ConfigurationException:
serv
er-2 not found
weblogic.management.configuration.ConfigurationException:
server-2 not found
at
weblogic.management.Admin.getBootstrapLocalServer(Admin.java:831)
at
weblogic.management.Admin.initialize(Admin.java:274)
at
weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:317)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
D:\bea\wlserver6.0>goto finish
D:\bea\wlserver6.0>cd config\mydomain
D:\bea\wlserver6.0\config\mydomain>ENDLOCAL
I had a similar error when starting a managed server on
the same machine, but I got it to work by changing the
admin URL from "http://machine1:7001/" to just
"machine1:7001".
Any ideas?
--Kurt
I finally got this going, so I want to share it with others getting started in
managed servers/clusters.
Apparently, "weblogic.admin.host" and "weblogic.management.server" are equivalent
properties. After I got things working, it didn't seem to matter which one I
used.
Beware of adding a trailing slash on the end of the URL such as
"http://localhost:7001". I've been trained that this is not a well formed URL,
so I add it by habit; however, Weblogic will complain about not finding your
server. Just giving the "localhost:7001" will work as well.
Whenever changing machines, servers, etc with the console, it's best to reboot
all the servers. I realize that it should be dynamic, but it doesn't seem to
work out that way. I'm learning to edit the 'config.xml' which seems to be a
safer bet at the moment.
--Kurt
Prasad Peddada wrote:
> Kurt,
> Your command line arguments are incorrect.
>
> its actually -Dweblogic.admin.host=machine1:7701
>
> Make sure you have server named server-2 in your config file and admin server
> is not part of cluster.
>
> Cheers,
>
> -- Prasad
>
> Kurt Guenther wrote:
>
> > I'm having problems getting a managed server running on
> > another machine with NT. For simplicity, I'm using the
> > 'mydomain' that comes in the install. From the
> > 'mydomain' directory, I just:
> >
> > startWebLogic.cmd
> >
> > which starts up the weblogic server after adding my
> > system password. Then, from the console, I add a new
> > machine and a server on this machine. Then from the
> > other machine in the equivalent 'mydomain' directory, I
> > run:
> >
> > startManagedWebLogic.cmd server-2 machine1:7001
> >
> > And, it gives me this error:
> >
> > D:\bea\wlserver6.0>"D:\bea\jdk130\bin\java" -hotspot
> > -ms64m -mx64m -classpath .;
> > .\lib\weblogic_sp.jar;.\lib\weblogic.jar
> > -Dweblogic.Domain=mydomain -Dweblogic.N
> > ame="server-2" "-Dbea.home=D:\bea"
> > -Dweblogic.management.server="machine1:7001"
> > "-Djava.security.policy==D:\bea\wlserver6.0/lib/weblogic.policy"
> > -Dweblogic.mana
> > gement.password= weblogic.Server
> > Enter password to boot weblogic server:system123
> > Starting WebLogic Server ....
> > Connecting to http://machine1:7001...
> > ***************************************************************************
> >
> > The WebLogic Server did not start up properly.
> > Exception raised:
> > weblogic.management.configuration.ConfigurationException:
> > serv
> > er-2 not found
> > weblogic.management.configuration.ConfigurationException:
> > server-2 not found
> > at
> > weblogic.management.Admin.getBootstrapLocalServer(Admin.java:831)
> >
> > at
> > weblogic.management.Admin.initialize(Admin.java:274)
> > at
> > weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:317)
> > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
> >
> > at weblogic.Server.main(Server.java:35)
> > Reason: Fatal initialization exception
> > ***************************************************************************
> >
> > D:\bea\wlserver6.0>goto finish
> >
> > D:\bea\wlserver6.0>cd config\mydomain
> >
> > D:\bea\wlserver6.0\config\mydomain>ENDLOCAL
> >
> > I had a similar error when starting a managed server on
> > the same machine, but I got it to work by changing the
> > admin URL from "http://machine1:7001/" to just
> > "machine1:7001".
> >
> > Any ideas?
> >
> > --Kurt
-
Problem:
- What are the settings required to block a particular IP to make connection on particular port no running on another IP?
Environment:
Operating System : - Windows XP Service
Pack 1
System type : - 32 – bit Operating System
Description: - We
have requirement to block Port access from particular IP. It is specific requirement for a machine.
We have service which is running on
Server with IP: - 10.14.15.116 on
Port Number 3366 and we need to
block Client Machine IP: - 10.14.15.114 to make
any connections with server on this port. Not even client machine
should be able to telnet on server on port 3366.
I
will be really thankful.
For any kind of input which can assist us to complete the requirement.Does it allow in same way with firewall setting in Windows Server 2008?
I will read in details shared link, but as a matter of urgency; kindly let us know, if we can follow some concise instruction to do above activity.
I
will be really thankful -
Running my java program on another machine
Hi
I have built my program using the much maligned Borland JBuilder, so being quite proud of my new programe i want to run it on other machines, ie i want to put it on a cd and distribute it.!! So how do i do this, i understand that another machine will have JVM installed however is there somthing similar to .exe. Appreciate this may have been covered before but i think i may be confusing myself.. which aint hard
in anticipation many thanks
Nigeexes? What for? How do you run an exe under UNIX?Something you may very well have to do is grant execute permission on the executable file that was thus created. UNIX and Linux do not automatically grant execute privileges on files the way Winblows does.
PS. -
Moving oracle 8i db running in windows 2k3 srvr to another machine
hi everybody,
my scenario is very simple but i am not able to do that so plz give ur soln wth proper sql commands and steps.
i want to move oracle 8i db running in windows 2003 server to another machine running in same server how can i do this.
my database name is att.
path: c:\oracle\ora81\database
path: c:\oracle\oradata\att
inside this cntrl files, log files and trace files are there.
path: c;\oracle\admin\att
inside this pfile,udump,bdump,cdump are there.
so kindly provide me soln asap as i hav to do it by tmw.
plz oracle dba experts and professionals help me.
thanks
sureshWhy have you made a duplicate post?
moving 8i database\very urgent\plz
Questions and suggestions in that thread are unanswered from your side. -
And what do I do if I run 10.6.8 and iOS4? Do I need to borrow another machine just to accept conditions?
To run photostream on an AppleTV you need to sign up to their new terms and conditions but you can't do this from the Apple TV, you also can't do it from 10.6.8 or iOS4. So I need a machine running a later OS. Hence my comment about borrowing another machine . Once signed up it seems photostream will work with my iCloud account to which my older OS systems still seem to be able to access. I think I am in the right forum.
-
In the development center we use Labview 6.01, in the testcenter we use labview 5.
Additionally, in the development center we use a unix version of Labview and in the testcenter a Windows version.You can Save with Option to save VIs as version 5.
Unless your VIs deal with system files in UNIX or Windows (ie. Registry...)
then you have to develop your VI specificly on that OS, since UNIX and
Windows have different ways to deal with system files. Mostly, LabVIEW is OS
independent. I used to have VIs developed from LabVIEW v.3 on UNIX, I can
still open these files from LV v.4 on Windows. Now I can still work with
these VIs on LV 6 on Windows.
Good luck,
Nam.
roybra wrote in message
news:[email protected]..
> I created an application on a machine with Labview 6.01, can I run
> this application on another machine that has labview 5?
>
> In the development center we use Labview 6.01, in the testcenter we
> use l
abview 5.
>
> Additionally, in the development center we use a unix version of
> Labview and in the testcenter a Windows version. -
Can you run fcsvr_client from another machine?
has anyone tried running fcsvr_client from another machine:
eg: fcsvr_client --host 10.1.1.1 --user Username --pass Password search /projects
can't seem to figure out what they want for a user and pass. i keep getting the following error:
CODE = E_LOGIN, DESC = no valid user identified for this action, SRC_FILE = PmsTask_SearchEntity.C, SRC_LINE = 189
ideas?This post here will get were you want: http://discussions.apple.com/thread.jspa?threadID=1502389&tstart=200
In summary in can access the db only from localhost BUT you CAN use ssh tunneling to access the remote fcsvr computer and get access to the db (in your case fcsvr_client).
Good luck
Maybe you are looking for
-
Get the values from Day 1 of the Month
Hi Friends, I have a requirement in which I have to Get the values from Day 1 of the Month. Ex : If I enter 19 - 07 - 2007.......the report should display Values from 01 - 07 - 2007. How to Code ? Please provide the Code. Thank you.
-
So I bought an iphone 4 from ebay and when I got it it was already signed into an icloud account. When I contacted the seller he said he would try to get the password but i haven't heard from him. How can I sign out of her icloud w/out having to have
-
How is the Sales Amount in the Sales Analysis Report calculated.
Hi, I'm trying to develop a report similar to the sales analysis report of SAP. I want to know how does SAP calculate the the Sales Amount column. I was using LineTotal column of Invoices + A/R credit memos, but it's not correct. I know i'm getting a
-
I have an Apple Mac OS X Yosemite 10.10.3 with a 2.7 GHZ Intel Core 15 Processor. 8GB Memory. Just discovered that some emails I have sent with attachments have arrived with the attachments OK but my message has disappeared from the email. In the Sen
-
Calendar Sharing not available error message
Trying to share my calendar with staff at the office here. I get the error: Calendar sharing is not available with the following entries because of permission settings on your network. I am using Offiice 2007 SP1, Exchange Server 2007 SP1 I can howev