Questions tagged as 'powershell'

1
answer

PowerShell failed, it can not be initialized, file locked by software restriction policies, how to fix?

I was using the package manager console in Visual Studio 2015, when I opened the powershell appeared a message if I wanted to run it in an unreliable source file, I clicked yes on this message showed more a 3 times, I clicked on the three times...
asked by 13.06.2016 / 00:28
1
answer

AWS script to delete snapshot greater than 7 days

I need to make a script to delete my snapshots in my AWS greater than 7 days. To make the creation use this script, I hope it helps. AWS ec2 create-image --no-reboot --instance-id i-131e8e06 --name "SITELINK-BKP-DIARIO-%date:~7,2%-%d...
asked by 09.12.2015 / 13:04
2
answers

I can not display the modification date of a directory with powershell

Hello, I'm trying to display the date of creation and modification of a directory using powershell, I'm using the command: Get-WmiObject Win32_Directory -filter 'Drive="C:" and Path="\"' -ComputerName MyPC | select FileName,LastModified -First...
asked by 18.11.2015 / 14:21
1
answer

Logging a batch file

I have the following problem: We receive a daily backup of the 4AM database at 5AM, and we have a batch job running at 6 AM to get the database running on a VM. In Task Scheduler, everything is ok, and it runs every day, however we want to...
asked by 04.01.2019 / 18:04