Questions tagged as 'powershell'

1
answer

Working with directory with special characters

I have the following script: $ExistPath = Test-Path -PathType container C:\Publicação\SQL-Release\Services if ($ExistPath) { Write-Host "Removendo diretorio!" Remove-Item -Path C:\Publicação\SQL-Release\Services -Recurse -Force...
asked by 31.05.2017 / 13:43
1
answer

Apropos for PowerShell

On Windows there is a PowerShell solution that can display some semicolon search results for apropos Unix?     
asked by 05.05.2016 / 20:47
2
answers

How to hide sharepoint 2013 user list fields?

How to hide sharepoint 2013 user list fields? I need to hide fields in view mode on the userdisp.aspx page     
asked by 20.02.2014 / 20:41
2
answers

How to do an input redirect (equivalent to "" in Linux) with PowerShell?

In Linux, when we want to do an exit redirection, we use the symbol > . echo "Olá mundo" > Hello.txt I did the above test in PowerShell and got the same result. It turns out that when I needed to import a SQL via the command...
asked by 28.05.2018 / 16:39
1
answer

Azure Login Error for windows PowerShell

Data: azure sdk downloaded Windows: 10 Error logging into azure by powershell: How to fix this error?     
asked by 30.11.2017 / 18:40
1
answer

Automating deploy using MSBuild

I'm creating a batch to compile and publish a Visual Studio project using MSBuild . However, I need to enter a username and password for MSBuild . What I'm doing, is solitaire in bat the user and password. However, I would not lik...
asked by 29.11.2017 / 18:28
1
answer

Get-ChildItem -Recurse does not return recursively

I am trying to create a script in powershell to manipulate the files of a directory, however when using the parameter -Recurse I have not got the items of the subfolders # onde $source = C:\Files # e dentro de Files tem mais dua...
asked by 29.10.2015 / 19:28
1
answer

Replace file name strings with Windows PowerShell

How to replace batch file name strings using Windows PowerShell ? Ex: Replace the "" character with "_" of all files in a folder.     
asked by 17.12.2015 / 17:29
1
answer

Removing files by time period

I have a script to remove a file leaving only the last defined ones in the day Script: $Now = Get-Date $Days = 30 $TargetFolder = "C:\LOG" $Extension = "*.*" $LastWrite = $Now.AddDays(-$Days) $Files = Get-Childitem $TargetFolder -Include $E...
asked by 11.11.2014 / 14:50
0
answers

Adapt Script that copies specific files and renames them (VBS)

Well I already have a script that does the reading and copying of the files, however, I need to refine it a bit more, for example: CURRENTLY: I get the list of file names: AAAAA1.jpg AAAAA2.jpg AAAAA3.jpg I need it to be:...
asked by 27.11.2018 / 23:55