Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Help with Functions!!!

I am learning about functions. For some reason the scripts work as individual pieces but when placed in a function and run nothing happens. Any help would be greatly appreciated. Here is what I have so...

View Article


Deleting and and moving machines lastlogontimestamp older than 90 days

Hi, I'm looking for some assistance,  I'm having some difficulty with one aspect of my script and would like to do the following. 1) Find computers with last logontimestamp older than 90 days within...

View Article


sending a message to network computer

Hello everyone I'm trying to create a script that will send a message to a network computer LAN . I 'm trying to find a way to be able to write many message in the same powershell session example a...

View Article

Reading text file with -context

Hi,I am reading file with select-string and capturing lines which I need using -context. I am stuck how to remove file name and line number in the outputPS E:\> Get-Content...

View Article

Splitting the header & value which is in same cell & retain only values

In a .csv file i have column header& value in the same cell  I want to split & retain only values in the cell no header with it this is the sample datafor example tec_class=dynamic1_tecclass I...

View Article


How to handle an onClick event of an HTML element in a...

Can anyone provide a simple example of how to capture the return value of a click event on an element inside a System.Windows.Forms.WebBrowser control using Powershell 2.0?

View Article

checking command line arguments passed to PS script are present...

Hi,I am very new to using Power Shell and I am stumped...I need to pass 4 arguments to my PS script and I am not sure of the most efficient way of checking that they have all be specified on the...

View Article

Want to add more fields

Hi ,the below scripts is working fine now i want to add some more fields in it like Host Name , Model Number , Drivers (like c,d with there space and how much is used ) plz help me with this  $servers...

View Article


want to add more field in output

By Harvinder in PowerShell for Windows Hi ,the below scripts is working fine now i want to add some more fields in it like Host Name , Model Number , Drivers (like c,d with there space and how much is...

View Article


Getting Started with PowerShell 3.0

Register today for this one-day, hands-on Jump Start designed to teach the busy IT Professionals about this powerful management tool. You’ll learn how PowerShell works and how to make PowerShell work...

View Article

IIS SSL: How To Powershell Script Client Cert Required

I recently was asked how to script the IIS SSL setting to require client certificates (see figure below) using Powershell.  We needed to automate the setting since it was part of an Azure deployment....

View Article

SCVMM – Round 2 – How to create a Private Cloud using PowerShell

Have you ever seen "A Bridge too far" movie? To not to wake up a click too far, it is good to script some tasks. Yes of course we can follow wizards, but some of us want to be warriorsJ. A small tip,...

View Article

Delete a whole lot of files from a SharePoint site with PowerShell

Here’s a little PowerShell script that you can use to delete all the files in every document library in a site:Read More

View Article


Windows PowerShell Desired State Configuration Overview

This topic describes the Windows PowerShell Desired State Configuration (DSC) feature.Read More

View Article

Windows Installer PowerShell Module 2.2.1 Released

Yesterday I released servicing update 2.2.1, which updates 2.2.0 to fix a few bugs and add a few cool new features:Read More

View Article


Microsoft Scripting Windows PowerShell

Windows Powershell ScriptsUsing scripts vs. using the shell interactively; reviewing script security procedures and requirements; writing a basic script; adding parameters to a script.Read More

View Article

Core Server 2012 Powershell Script Hyper-v Manager

This is powershell script and batch file driven Hyper-v Manager for free Core server 2012, that is meant to be run on the server console.Read More

View Article


PowerShell The SQL Server Way

The July issue of the online subscription magazine SQL Server provides an 18-page introduction to the capabilities of PowerShell from a SQL Server viewpoint, inviting you to learn how to use the...

View Article

MAP Toolkit 8.5 Assesses Windows 8 and Windows Server 2012 Readiness

The Microsoft Assessment and Planning (MAP) Toolkit 8.5 was released late last week.Read More

View Article

PowerShell script: Check that hotfix levels are equal across Hyper-V Cluster...

Sure, you can use VMM baselines for this, but just in case you haven’t integrated WSUS with VMM yet:Read More

View Article
Browsing all 6937 articles
Browse latest View live