Community discussions

 
Gabz
just joined
Topic Author
Posts: 2
Joined: Mon May 16, 2011 11:49 am

remote powershell script

Mon May 16, 2011 12:11 pm

Hello, I'm trying to execute a little script in order to know if a file has been correctly updated.
The script is the following
(get-item c:\test.txt).lastwritetime.date.CompareTo([DateTime]::Today)
and is at the root of the hdd: C:\validateBackup.ps1

At least, the script runs correctly on the server, and return -1 or 0 if it's ok.

My problem is now to run it from another server with the dude, I saw this topic but it is using VBS, so I tried this :

array_element(execute("powershell.exe","C:\\validateBackup.ps1","C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\"),1)

and others like this one but nothing is returned.

Could someone help me please ?
 
Gabz
just joined
Topic Author
Posts: 2
Joined: Mon May 16, 2011 11:49 am

Re: remote powershell script

Mon May 16, 2011 12:29 pm

Another idea would be to change the script from powershell to vbs, but I don't know how to do that...
 
User avatar
dazm
just joined
Posts: 21
Joined: Mon Oct 03, 2011 5:09 am
Location: Russia

Re: remote powershell script

Fri Oct 04, 2013 5:30 pm

Some one found solution of this problem ?
I'm execute PowerShell scripts in dude, but nothing returned.
 
devportal
just joined
Posts: 1
Joined: Tue Jul 15, 2014 8:55 pm

Re: remote powershell script

Tue Jul 15, 2014 8:57 pm

Who is online

Users browsing this forum: No registered users and 17 guests