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

How to prevent PS from saving a single command?

I want to run a command in PS, however I do not want PS to record it in the history. This is possible in bash by using  a space before the command. 

View Article


Create a zip archive then move a file to it

I've just started using Powershell and I want to create z zip archive then move a file to itCreating the zip works fine but I am having no joy moving the file to it I'm using:$zipfilename =...

View Article


Creating a shortcut as a PIF

Hello,I am trying to create a shortcut however I need the shortcut to be created as a .PIF.Currently I am using the following which will create a shortcut however I cannot get it to work as a .pif as...

View Article

Image may be NSFW.
Clik here to view.

Remote powershell script fails to execute

ExecuteCommand(Directory.GetCurrentDirectory & "\psexec \\myservername -u username-p passsword %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe") Public Sub ExecuteCommand(ByVal Command...

View Article

working with csv files

I am having trouble working with a csv file.  I was hoping someone might know how to help me.  The problem is the first column in my file is all text so when I use get-unique it works on that column....

View Article


Creating Windows Task Schedule

Hi all, How can I create an windows task shceduler with powershell script (2.0) at XP sp3 and W2K3 ?This task will call a .ps1Thanks a lot !!!   

View Article

Send-MailMessage Issue

Hi,I want to use Send-MailMessage in my script to send emails.When I test the command I am getting this error.Command : Send-MailMessage -From user1@xxxx.comuser1@xxxx.com -Subject "Tesdt" -Body "test...

View Article

Restart server & then email

I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command:  Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...

View Article


Import AD module

Hi,I have Exchange 2007 hub server (2003 64 R2), in PS exchange management shell I'm trying to run:Import-Module activedirectoryI get an error :Import-Module : The specified module 'activedirectory'...

View Article


Question Reg HTML Output

Hi Experts.My actual question was answered in the below post and very well explained.http://powershell.com/cs/forums/t/12627.aspxBut the requirement what i have is bit different.$Style =...

View Article

" ForEach" loop problem

I wrote a script that read all users in specific group in AD and get there SamAccountName and put them in txt file, and then get there mail box to anther txt file here is the script:...

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