Questions tagged as 'powershell'

2
answers

What is the equivalent of the grep command in Windows?

In Linux, when I want to filter by a term when a command will generate a giant list, I use the command grep . For example: ls | grep "termo" However, in Windows there is no command grep . What would be the equivalent of...
asked by 27.06.2017 / 15:07
3
answers

What does the error "Scripting have been disabled on this system"?

I was testing some things from PowerShell ISE to be able to mount scripts. I realized that while I was running the script without saving the file, the commands were executed normally. However, shortly after saving the file on the deskt...
asked by 13.07.2017 / 14:09
3
answers

How to list the results of a regex search in a directory?

I have a directory with some C # files. In these files there are several SQL query codes. I need to list all SELECT statements in these files using PowerShell. Commands start with SELECT and end with ; and can have more than one...
asked by 15.01.2014 / 15:04
1
answer

CMD, PowerShell, Bash - What's the difference?

There are differences between them, which ones? I speak Ubuntu Bash. I'm curious because to me they seem to do the same thing!     
asked by 07.08.2016 / 21:08
3
answers

How to handle accent in .bat files?

Good morning! I'm having a hard time copying a file from one folder to another with the copy command. I'm using UTF-8 Encoding, but cmd can not handle the accent to line below: copy "C:\SVN\Makro\Templates e Orientações operacionais - Te...
asked by 03.12.2015 / 13:41
2
answers

How to delete files from a folder recursively based on an expression?

I'm using a project where there are several temporary files that for some reason have not been deleted over time and are taking up a lot of space. I need to delete all images from that directory, recursively, when those files begin with the l...
asked by 03.07.2017 / 14:01
3
answers

Rename batch files using Windows Power Shell

How to rename all files in a folder whose name is an (integer) number followed by a certain extension (my choice) using the Windows Power Shell ?    Example: The folder as is: 1.txt 2.txt 7.txt arquivo.html    How to stay after renamin...
asked by 05.11.2015 / 18:39
1
answer

Check the integrity of batch video files

How to check automatically and customizable via Shell / Programming Language integrity (Incomplete / Corrupted ) of video files ( .avi , .mp4 , .mkv among others)?    OBS: Having as a limiting factor the lack of a prev...
asked by 15.02.2016 / 21:02
3
answers

PowerShell - How to create a subsite in Sharepoint Online

I have a website and I need to create sub-sites dynamically because they are many clients and I tried using powershell for this, but I can only create a site collection. Example: new-SPOSite -url httl://url.sharepoint.com/douglas -owner dougla...
asked by 03.06.2014 / 20:00
1
answer

Manipulate services with powershell

I've created a script to start and stop a service. My intention is to be able to start or stop a service through a simple mouse click on a desktop shortcut. I created a shortcut to the script and in the target field in the shortcut properties I...
asked by 24.01.2016 / 13:02