Top "Powershell-3.0" questions

For topics and problems related specifically to Windows PowerShell 3.0. PowerShell 3.0 shipped with the releases of Windows 8 and Windows Server 2012.

Delete files older than 15 days using PowerShell

I would like to delete only the files that were created more than 15 days ago in a particular folder. How …

powershell powershell-2.0 powershell-3.0
Check if a file exists or not in Windows PowerShell?

I have this script which compares files in two areas of the disk and copies the latest file over the …

powershell powershell-3.0
How to upgrade PowerShell version from 2.0 to 3.0

The OS that I am using is Windows 7, and the PowerShell version that is installed here is 2.0. Is it possible …

powershell powershell-2.0 upgrade powershell-3.0
How to load assemblies in PowerShell?

The following PowerShell code #Get a server object which corresponds to the default instance $srv = New-Object -TypeName Microsoft.SqlServer.Management.…

powershell powershell-3.0
PowerShell To Set Folder Permissions

I am trying to use the "default" options in applying folder permissions; by that, I mean that using the "Full …

file-permissions powershell-3.0
PowerShell : retrieve JSON object by field value

Consider JSON in this format : "Stuffs": [ { "Name": "Darts", "Type": "Fun Stuff" }, { "Name": "Clean Toilet", "Type": "Boring Stuff" } ] In PowerShell 3, we …

json powershell powershell-3.0
Copy-item Files in Folders and subfolders in the same directory structure of source server using PowerShell

I am struggling really hard to get this below script worked to copy the files in folders and sub folders …

powershell powershell-2.0 powershell-3.0
Install NuGet via PowerShell script

As far as I can tell, NuGet is meant to be installed as a Visual Studio extension: http://docs.nuget.…

powershell nuget powershell-3.0
Powershell get ipv4 address into a variable

Is there an easy way in powershell 3.0 Windows 7 to get the local computer's ipv4 address into a variable?

windows powershell-3.0