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 ArticleCreate 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 ArticleCreating 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 ArticleRemote 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 Articleworking 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 ArticleCreating 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 ArticleSend-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 ArticleRestart 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 ArticleImport 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 ArticleQuestion 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 ArticleWindows 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 ArticlePowerShell 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 ArticlePowerShell 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 ArticleHow 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 ArticlePowerShell 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 ArticleWindows 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 ArticleConversion 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 ArticleGeek 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 ArticleThe 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