The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
39 views

How to execute PowerShell script as local admin, but show results on logged-in users desktop?

Here is my scenario: I have several computers all on the same domain. Users authenticate against the domain to log into their workstations. All the local Administrator passwords on the workstations ...
0
votes
1answer
28 views

Zip files remotly using the Powershell extension PSCX

basically I want to do this: foreach ($SERVER_NAME in $SERVER_NAME_LIST) { $SESSION = New-PSSession -ComputerName $SERVER_NAME -Credential $CRED Invoke-Command -Session $SESSION -ScriptBlock { ...
1
vote
1answer
491 views

Run Linux terminal commands in Android program

I am developing a small app that would synchronize a directory present in my android phone with that of my laptop. I rooted my phone and also installed rsync in that so as to synchronize the ...
1
vote
4answers
4k views

Invoking a Java Method in JSP

Setup Mac OSX 10.6.8, Apache Tomcat 6.0.16, Java1.6.0_29, Eclipse IDE Indigo. I asked a similar question to this before at How to execute and include a Java API from a WebAp project but the set up ...
2
votes
2answers
4k views

powershell: script to start a program with parameters?

When i run the Powershell script below i receive the error below. How do i run programs through powershell with parameters? The script will be a group policy logon. Invoke-Expression : A ...
0
votes
1answer
37 views

Unable to get required information from remote machines using powershell invoke-command

I am developing a tool which uses powershell script to search for new windows updates for the machine. Currently by using the 'invoke-command' i am remotely accessing the various build ...
0
votes
0answers
88 views

Powershell Test-Path with Invoke-Command and Second-Hop Remote file access

Environment: Powershell V3.0, WinRM 3.0 on Server 2008 R2 domain network I've noticed failures in Test-Path in our application that may be related to double-hop but they are strangely random and ...
1
vote
2answers
194 views

powershell invoke-command does not work if I use -computerName

I want to execute below code in the either local or remote machine whith current user. $BackUpSqlAgentAndRemoveOldbackup = { ...
0
votes
1answer
136 views

Powershell invoking remote script to get farmload (XenApp 4.5)

qfarm /loadI have a problem with remote executing a script. The script invokes a command for cmd qfarm /load and converts the result to PSObjects. function New-qLast() { param ([String] $qName, ...
0
votes
1answer
173 views

powershell invoke command

I am trying to run the following script on a DC from a server and i keep getting the error Cannot bind parameter 'Identity'. Cannot convert value "1" to type ...
2
votes
2answers
108 views

invoke-command doesn't work as expected

I'm trying to use invoke-command to find a specific process using this code Invoke-Command -ComputerName $selected_server.ServerName -ArgumentList $selected_server.ProcessId -ScriptBlock {Get-Process ...
2
votes
1answer
181 views

Powershell Start-Process ignored in remote session

I am starting a new process using: $removeArguments = "-Command `"&{import-module .\deploy-utility.psm1; RemoveSolutions -solutionNames $solutionNames -url $url;}`"" start-process powershell ...
0
votes
1answer
97 views

powershell remote

I am trying to run this from my local machine (Win7 & PS v2.0) cls $sess = Enter-PSSession -ComputerName blmcrmpoc Invoke-Command -Session $sess -Scriptblock { $path = ...
0
votes
1answer
777 views

Pass variables to the remotely imported powershell module

I am trying to create new PSSession, import ActiveDirectory module on the remote machine and then import-pssession to my local workstation - this works fine. The code looks like: $rs = New-PSSession ...
0
votes
1answer
153 views

powershell - difference between executing locally and remotely

I have a very simple powershell script that has a different behaviour depending on if I execute the script locally or remotely through a Invoke-Command / Enter-PSSession . Other scripts work fine. I'm ...

1 2 3
15 30 50 per page