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

Ouput CSV format

I have a script with outputs data regarding Citrix Applications$header = "Application,Count"$outFile = "c:\CitrixCount\apps.csv"Set-Content -Path $outFile -Value $header -Encoding Ascii$applist =...

View Article


Time validation

 I have a log file where I get dates in following format in each line... I need to validate the date and see if they are between 5 PM to 9 AM. If it matches then I need to export the lines to another...

View Article


Problem displaying expirty date of SSL certificate and the work around I used.

Hello AllI came across the following today, so thought I would make a brief post. I created a script to check expiry dates of SSL certificates (nice an easy with PowerShell thanks the the cert:...

View Article

view remote and locatin 32bit performance counter

i have third party 32 application installed win 2008 R2 64bit.. when I run below command to see counters I get an error saying cann't find any performance counter sets..Get-Counter -ListSet es1* |...

View Article

import-csv custom object

Hi experts.I have csv file with more than 100 servers it contans the servername,servertype,platformServerServerTypePlatformtest1terminalserverterminaltest2ttsuse I want to pull out the servers which...

View Article


Moving filders with a hyphen in name to parent folder with similar name

I am looking to write a script that will move existing folders with a "-" hyphen in the name into a parent folder with part of the same name.Example:I would like to move c:\12345-01 into c:\12345\ to...

View Article

Powershell v3 + ODBC + PostgreSQL + INSERT query

Hi!I would like to send INSERT query to Postgre SQL. I've installed psqlODBC_x64 and configured System DSN ODBC Connection.My powershell v3 function for query like SELECT works...

View Article

How to make script run for anyone?

Hello, I have a working PS script.  It will prompt the user for a computer name and the computer named that gets entered will then be moved to an "inactive OU" in AD.   My issue is my script uses the...

View Article


Image may be NSFW.
Clik here to view.

ScriptBlock?

I am very new to PS:), but I think out of all the languages I have dabled with, this will be the one for me. I have decided to learn PS as best I can. So far, so good, I have little programming...

View Article


Bootable USB Drive Using Powershell

How to make a USB flash drive bootable and to copy an operating system ISO using Powershell v3 on Windows 8.Read More

View Article

Fun with PowerShell's Out-GridView

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...

View Article

Windows PowerShell 3.0 language specification available for download

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...

View Article

PowerShell 3's PSDrive Persistence

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...

View Article


PowerShell 3 Web of Wow, Part 1

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...

View Article

How to Export and Import PowerShell Scheduled Jobs

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...

View Article


PowerShell v3 New Features

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,...

View Article

Windows PowerShell 3.0 SDK Sample Pack

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...

View Article


Conversion Issues Upgrading to PowerShell 3.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,...

View Article

Geek School: Learn How to Automate Windows with PowerShell

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...

View Article

The Windows PowerShell 3.0 SDK Sample Pack

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

View Article
Browsing all 10624 articles
Browse latest View live