Questions tagged as 'powershell'

1
answer

How to put space before the SET / P variable in Batch? [closed]

I want to set the variable in the middle of the screen, but I can not put it! |____não_funciona____|set /p variável=um |____funciona____|%variável% Thanks in advance!     
asked by 25.04.2018 / 23:36
0
answers

How to execute a powershell function by calling the .ps1 file?

How well with you? I request an aid created a function that makes backups of virtual machines this function receives two parameters the name of the server and the name of the VM. I need to call function by executing the .ps1 file, I have alre...
asked by 12.04.2018 / 17:07
0
answers

Certify an executable file so that Windows does not shut it down? [duplicate]

I converted a bat into an executable (.exe), but windows defender does not recognize it and gives as a false positive > Trojan ! Question: Is it possible to certify the executable? Thanks in advance!     
asked by 05.04.2018 / 01:40
0
answers

Scripts in powershell to rename / special characters

I have a call to change to remove all special characters (#, $, ', ç, etc.) Can you search the folders and change these characters by typing without characters? this way. In case, I wanted to put all the characters. Dir -R | Rename-Item...
asked by 26.01.2018 / 19:20
1
answer

How to create a PowerShell Script to start an EC2 instance and capture public IP?

I would like to create a PowerShell Script that performs the following steps: 1 - Start an EC2 Instance in AWS (Windows); 2 - Wait for it to be available for remote connection. While waiting, display a message waiting for the user; 3 -...
asked by 24.11.2017 / 15:45
1
answer

Quit remote script as failure

I want the remote script in a given condition to terminate with error and exit as failure. if (($siteExists -eq $null) -and ($siteExistsInRecycleBin -eq $null)) { write-output "info: Creating $($SiteCompleto)" New-SPOSite -Url $SiteCompleto -...
asked by 30.05.2017 / 16:19
0
answers

Powershell command Get-ADUser -LDAPFilter to search all users outside a group

What is the command to search all domain users who do not belong to a certain GG? I have already tried using: Get-ADUser -ldapfilter {(&(name*)(!memberof=*GG_DI-ADM))} -properties * | select name, samaccountname, enabled The bu...
asked by 26.05.2017 / 16:59
1
answer

Git merge on windows conflict occurs and the line in the file is not marked

When trying to perform a git merge on Windows in a file that has been modified on the same line, the message: warning: Cannot merge binary files: g.txt (HEAD vs. feature3) Auto-merging g.txt CONFLICT (content): Merge conflict in g.txt Automati...
asked by 23.04.2017 / 00:00
1
answer

Deleting rows from a csv file with bat or shell

I have a file with 150k lines, in these lines I contain information that goes to a label printer. But at the time of printing, the program checks the 150k lines to see if there is any duplicity, it greatly disrupts the printing process. How c...
asked by 07.04.2017 / 23:03
1
answer

Error executing .jar in Windows PowerShell with Maven

Good afternoon everyone. I'm trying to run this tool (CPA - link ). Through the link available, I download the classes. After that, I run Maven, which generates a .jar. The configuration file (pom.xml) used in Maven is this: link After...
asked by 13.07.2016 / 17:27