Quantcast
Channel: PowerShell General
Viewing all 10624 articles
Browse latest View live

Fun with PowerShell's Out-GridView

$
0
0

Even though Windows PowerShell is primarily a console-based management engine, there are a few GUI bits you might want to take advantage of. One of them, which we've had since PowerShell 2 is Out-Gridview. As the name implies, this is a cmdlet that you pipe objects "out" to:

Read More


Windows PowerShell 3.0 language specification available for download

$
0
0

Microsoft released Windows PowerShell 3.0 Language specification to the public. This is a 334 pages of documentation and has tons of information on how the language is implemented. This specification is made available as part of the Microsoft Open Specifications program.

Read More

PowerShell 3's PSDrive Persistence

$
0
0

One of the frustrations for many PowerShell beginners is how PSDrives correlate to drives that are visible in Windows Explorer. In PowerShell 2, you could add a new PSDrive, say to a network share, but it wouldn't be seen outside of your new PowerShell session. In addition, when your PowerShell session ended, so did the drive "mapping." If you wanted it in another a PowerShell session you needed to re-create it. Fortunately, there are some nice enhancements around PSDrives in PowerShell 3.

Read More

PowerShell 3 Web of Wow, Part 1

$
0
0

When PowerShell 3 came out along with Windows Server 2012 and Windows 8, you probably heard a lot of talk about the cloud and how to manage within it. In this week's lesson we'll start a short series on some new PowerShell 3 cmdlets that make it very easy to work with services and data delivered from the Internet. Actually, even though I'm going to use publicly available Internet resources, the cmdlets show work with any Web-like data, even if it comes from within your intranet.

Read More

How to Export and Import PowerShell Scheduled Jobs

$
0
0

In previous articles I’ve written about how to export scheduled tasks and import scheduled tasks in PowerShell. In those articles, I made mention about the potential downside to exporting and importing PowerShell scheduled jobs. A scheduled job is a new feature in PowerShell 3.0 that allows you to set up a background job but register it with the task scheduler. Because this is a PowerShell feature, it is available on any computer running PowerShell 3.0.

Read More

PowerShell v3 New Features

$
0
0

Sharpen your PowerShell skills and get a jumpstart on the features of version 3.0 in this advanced PowerShell training by MVP Jeff Hicks. This course will give you a thorough overview of shell, command, and remoting enhancements, as well as hands-on demos and sample commands for using PowerShell ISE. Automate more tasks and become even more efficient by learning all the impressive features in PowerShell v3.

Read More

Windows PowerShell 3.0 SDK Sample Pack

$
0
0

We're pleased to announce the availability of the Windows PowerShell 3.0 SDK Sample Pack. For Windows PowerShell 3.0, the SDK samples work a little differently than in previous releases of Windows PowerShell. For Windows PowerShell 2.0, we released a separate standalone SDK to the Download Center...

Read More 

Conversion Issues Upgrading to PowerShell 3.0

$
0
0

This post probably has a small audience, but there were a handful of conversion issues I ran into when I upgraded to PowerShell 3.0. It was difficult finding posts related to the errors I encountered, so I’m posting my experiences in the hopes that it helps someone else down the road.

Read More


Geek School: Learn How to Automate Windows with PowerShell

$
0
0

In this edition of Geek School, we will be helping you understand the powerful PowerShell scripting language that is built right into Windows, and is extremely useful to know in an IT environment.

Read More

The Windows PowerShell 3.0 SDK Sample Pack

$
0
0

Microsoft has released the Windows PowerShell 3.0 SDK Sample Pack. The pack contains code samples that show how to build applications based on Windows PowerShell 3.0.

Read More

Master class: PowerShell v3 cmdlets

$
0
0

 

The Microsoft PowerShell updates that rolled out with Windows Server 2012 clearly indicate the vendor intends to use the scripting language as an operational framework for most of its products. With PowerShell v3 cmdlets, for example, you can install and configure Hyper-V from the command line, and eventually you'll be able to perform all Hyper-V management from the Systems Center family, which runs PowerShell under its graphical user interface.

 

Unleash the Automation Force with Windows PowerShell

$
0
0

Businesses everywhere are looking to save money, and technology can help spend resources wisely. By automating the configuration, management and monitoring of Windows Servers, companies can decrease the time IT workers spend on manual maintenance.

Read More

Introduction to PowerShell 3.0

$
0
0

Today, I’m going to give you a brief introduction to PowerShell 3.0, the newest version of the PowerShell family that comes built in with Windows Server 2012.

Read More

Geek School: Learn How to Use Jobs in PowerShell

$
0
0

PowerShell has four types of jobs – Background Jobs, Remote Jobs,WMI Jobs and Scheduled Jobs. Join us as we find out what they are and how we can use them.

Read More

Creating Add-ons, Plugins, and Tools for the PowerShell ISE

$
0
0

We frequently get questions asking if the PowerShell ISE supports a feature that it doesn’t. For example, variable watch windows, function browsers, or “find all matches in the current document”.

Read More 


Geek School: Learn How to Extend PowerShell

$
0
0

PowerShell offers two ways for you to extend the shell. You can either use snapins, which are binary only and developed in a fully-fledged programming language like C#, or you can use modules, which can be binary as well as script based.

Read More

Geek School: Learning PowerShell Variables, Input and Output

$
0
0

As we move away from simply running commands and move into writing full blown scripts, you will need a temporary place to store data. This is where variables come in.

Read More

Working with the new $PSItem automatic variable in Windows PowerShell 3.0

$
0
0

Windows PowerShell has become a key skillset for IT Professionals, as we can see based on the massive amount of PowerShell support in the latest release of the Windows operating system. In this article, we are going to look at a new feature in the latest version of Windows PowerShell that shipped with Windows 8 and Windows Server 2012. There are many new enhancements in PowerShell 3.0. The purpose of this article is to show one of them, which will make it easier to get started with PowerShell.

Read More

My First Experience w/ PowerShell 3.0

$
0
0

You are all lucky enough to read about my first experiences with PowerShell! For those of you that do not know, PowerShell is a scripting language; which is used for creating temporary fixes and to automate repetitive tasks. I am going to start with the implementation and getting PowerShell working, then onto some basic terminology towards the end of the post.

Read More

How to create a list of files Zipped

$
0
0

I have a couple of huge zip files I need to report on. This was an extraction from a legacy db. There are multiple sub directories and the names are longer than 256 characters so winzip truncated the names. (don't ask why ). I need to report on which names were truncated and the directories. I am using windows 7.

The report should have the full path and file name of truncated files and a second report of all file names.

I was thinking of finding the truncated names either by length or a file that does not have an extension.

I was able to get this much done in PowerShell ISE:
cd "C:\BI"
$name="test";dir -r|%{File name:{0} - Extension:{1} };$name
$len=0;dir -r|%{if ($_.FullName.Length -gt $len) {$len=$_.FullName.Length}};$len


$folders = "C:\BI"
foreach($folder in $folders){

foreach($file in (dir -Recurse $folder)){

$file
$length += $file.length

}
Write-Host ($length)
$length = 0
}

Results:
Directory: C:\BI


Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 10/23/2012 1:12 PM 1064723 deploy.pptx
-a--- 5/14/2013 3:46 PM 686 DirLoop.ps1
-a--- 5/14/2013 3:45 PM 1282 FileManipulation.ps1
-a--- 5/14/2013 2:28 PM 448 lengthcheck.ps1
-a--- 10/19/2012 2:28 PM 187392 Request Form.doc

but I want the length of directory and filename and list only if it is over 256...... arg

Thanks for any help!

Viewing all 10624 articles
Browse latest View live