Questions tagged as 'powershell'

2
answers

How to import into MySQL database from command line?

I'm trying to import a more or less large database ( 1Gb ) using PHPMyAdmin . The process is too slow and always cuts. Is there a way to import a database MySQL from the command line?     
asked by 27.12.2018 / 15:35
5
answers

Windows 10 timer to turn off the PC

I want to make a small timer for my pc that does the following: You must pick up and save the current time in a variable and if, for example The time is between 00:00:00 and 02:00:00 that the equipment turns off in 2 hours shutdown -s...
asked by 01.11.2016 / 03:03
1
answer

block / unlock powershell

I have this bat script to block / unlock powershell but it does not work on x64 (and sometimes not on x86) and sometimes I manage to block it but not unlock it (Could not start CLR, HRESULT: 80070005.) and doing a Get-ExecutionPolicy - List Ma...
asked by 11.10.2016 / 21:08
1
answer

Error filling an input in powershell with ie?

It seems that the data of the page does not arrive to me, this one opens to me, but it says to me that the value is null. I've tried with id and neither, I'm in version 5.1 of power shell. This is the code: clear-host $ie = n...
asked by 10.04.2018 / 20:53
1
answer

Know the name of the directory where I run a powershell script?

How to know the name of the directory in which I run a powershell script ?, my code is as follows: $usuario = $env:USERPROFILE [Reflection.Assembly]::LoadFile("$usuario\Desktop\"nombre de la carpeta"\lib.dll") I want to put a variable in t...
asked by 21.06.2018 / 19:34
1
answer

Read gmail emails from powershell

Good Day I have been developing a script in Powershell that signs in gmail with the module Gmail.ps and reads the message of a specific email. Of the emails that I have in the tray I have only been able to capture the subject that I ne...
asked by 12.01.2018 / 19:36
0
answers

Download, Upload and Move FTP Files PowerShell

I'm new with PowerShell and I'm working on a Script that has to download files from different routes on a Linux machine by FTP in other routes of a Windows machine and also move them to another destination within Linux, basically like this:...
asked by 09.10.2017 / 12:36
0
answers

Batch or Powershell to align partitions of a hard disk?

Good morning. I was wondering if it would be possible to align the partitions using a batch or powershell script in Windows 7 and up. I know there is third party software that does it but it would be possible to do it by means of a script? I...
asked by 26.08.2017 / 21:52
2
answers

Disable USB ports from CMD or Powershell

I'm doing a project in which, from Java, I execute commands from the CMD or Powershell to carry out certain tasks (like, in this case, disable the USB ports of a computer). I've been looking for information and what really fits what I want to...
asked by 27.02.2017 / 10:17
0
answers

Get title of word document with OLEOBJECT PB12.5

No tag for PB 12.5 I have a function that checks the spelling of reports generated in PowerBuilder 12.5, using external windows functions. my problem is on the line: ll_Hwnd = FindWindowA ( ls_Null, "Documento1 - Microsoft Word" )....
asked by 21.04.2016 / 21:05