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

Forcing PowerShell to Wait for a Process to Complete

Use the power of the Out-null cmdlet to simulate the old Start/Wait command used for batch files.Read More

View Article


Need help with a script

I have a PS script that is menu driven. The functionality of the menu is perfect for what I want. The problem is I cant seem to figure out where to put the cmdlets for proper execution. I have all the...

View Article


Invoke command GCI

Hallo,  i have the following script, everything works until the invoke command, if i replace the $profilepath with the actual path "c:\..." then it works. does somebody know where i go wrong ?...

View Article

Powershell Script for RDP sessions.

So I have a very specific need for a powershell script using Microsofts "quser" command to list the current RDP sessions of 5 different servers.  I need it to evaluate all 5 servers, then give me a...

View Article

Replace numbers in stings with another number by adding fixed amount to it

I am a beginner, sorry.I think I can replace numbers in a file called "Test.txt" like this (correct me if wrong)(Get-Content C:\Scripts\Test.txt) | Foreach-Object {$_ -replace "start=\"20\"",...

View Article


select lines which contains date & copy them to a new .csv file

I want to filter csv file on the basis of the lines which starts with date copy them to new .csv file...

View Article

Grab unique values count from hastable

Hello,I'm using hashtable to collect some data. I would like to get at the end count of unique values.Let's say I've got:$hashTb which contain:GROUP1GROUP1GROUP2GROUP3etc...And at the end I would like...

View Article

Fanfare for the Common Parameter Part 1

When you look at help for a PowerShell cmdlet you probably noticed something labeled CommonParameters. If you don't know what I'm talking about see Figure 1.Read More

View Article


How to Add “Open PowerShell here” to the Context Menu in Windows

For as long as we can remember, Windows has had a hidden “Open command window here” option on the context menu, but who uses the command prompt these days?Read More

View Article


Coretech WMI & PowerShell Explorer–Using the WMI feature

Earlier today Coretech released a brand new tool that we call Coretech WMI and PowerShell Explorer. For information about downloading and installing the tool checkout this blog post from Kaido...

View Article

SQL Server 2012 Integration Services - Leveraging PowerShell in Package...

SQL Server 2012 Integration Services introduces an innovative approach to deploying SSIS projects, known as Project Deployment Model. This is the currently recommended (and the default) deployment...

View Article

Can't load a script

I have just finished Learn Windows Powershell 2 in a month of lunches....I am using this...

View Article

Running script using 'proxy' servers

Hello,i'm facing with an issue that i'm not able to scan (WMI inforomation) many servers from one due to firewall for example. Generally, i have about 50 servers per site. In each site, there's one...

View Article


Powershell Export to CSV does not match information on screen

Hi, I have created the attached PowerShell script, it runs correctly on screen but the information for the "AlternativeSMTP" details is not exporting correctly to the CSV File, it will export for some...

View Article

An example when using Write-Host makes sense

In the PowerShell community, there is some debate about the usage of the Write-Host cmdlet.  The debate stems from the fact that the output of the Write-Host cmdlet places strings of text on the...

View Article


PowerShell Great Debate: Error Trapping

In the aftermath of The Scripting Games, it’s clear we need to have several community discussions – thus, I present to you, The Great Debates. These will be a series of posts wherein I’ll outline the...

View Article

Coretech WMI & PowerShell Explorer Part II

As mentioned in my previous post (using the WMI feature of the tool) we have recently released a new tool – the Coretech WMI and PowerShell Explorer. For information about downloading and installing...

View Article


Managing Hive Job Submissions With PowerShell

In my previous post, I talked about “Managing Your HDInsight Cluster with PowerShell”. In this post I made no mention of using Hive. I hope to re-address this balance by specifically talking about how...

View Article

how to call ssis package installation wizard

I have to call SSIS deployment wizard on clicking on manifest file but instead execute SSIS wizard is opening , how to change wizard in below code of powershell#call SSIS  package installation wizard...

View Article

Exchange 2007 Get-mailbox

Hi,Get-mailbox have a parameter "UseDatabaseQuotaDefaults" True if it's use the default values, false if not.I need to check by IF statement if it's True or...

View Article
Browsing all 8583 articles
Browse latest View live