I was working with Windows Powershell for last few months. Here I would like to share with you some of the tips and techniques I have done through my project.
If you want to unzip a file to a location,
If you want to unzip a file to a location,
$shell=New-Object -com shell.application
$zip=$shell.NameSpace("D:\dev\shell\myfile.zip")
foreach($item in $zip.Items())
{
$shell.NameSpace("D:\dev\shell\").copyhere($item)
}
Execute following command in destination machine to enable
accepting remote connections
Enable-PSRemoting
If you want to see your Powershell Version
Get-PSSessionConfiguration
-Name Microsoft.PowerShell
Comments
Post a Comment