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

installing msi on remote machines with parameters

Hi, Below is the script i am using for installing the msi on remote computers, the msi is already on those computers, the script does not work when i substitute the values with variables  but when i...

View Article


Setting a maximum depth level on -recurse

Hello All,Is there a simply way to set a maximum number of levels -resurse will go to down a directory structure i.e. say 5 levels when doing something like thisget-childitem c:\ -filter "*.exe"...

View Article


SQL Server 2012 with PowerShell V3 Cookbook

PowerShell is Microsoft’s new command-line shell and scripting language that promises to simplify automation and integration across different Microsoft applications and components. Database...

View Article

Managing DNS servers using PowerShell

An excerpt from my upcoming book Installing and Configuring Windows Server 2012 Training Guide about how to manage Windows Server 2012 DNS servers using PowerShell.Read More 

View Article

How does Windows Azure PowerShell import publishsettings using...

As you already know you can use Windows Azure Powershell to manage your Windows Azure Service. To get it started, you need to setup your development machine to be ready to use Windows Azure PowerShell...

View Article


script for database patching using powershell

hi,I am new to powershell and i don't know how to patch database using powershell, can anyone post a script please?

View Article

Image may be NSFW.
Clik here to view.

generate sql server all databases script

Hi,     We need generate sql serve all databases script using powershell. Because every day we have changed database procedures,tables we will change. Now we manually taken databases scripts. We want...

View Article

My First Projekt to Backup some Files

Hello everybody,It´s not my profession to write Powershell scripts by myself but I try it the last days.For you, I think is very horrible to see my script. But maybe it´s possible that you can help me...

View Article


tools and permissions

Hi,I'm currently reading a Powershell Toolmaking book, and was wondering about tools and security... What would be a 'best practice' to accomplish the following:I want to write a tool to add a printer...

View Article


Powershell 3 on Windows 7: New ADDS cmdlets not available

Hello,I have installed the MSU file KB2506143 on my Windows 7 x86 client to get Posh v3. $PSVersionTable.PSVersion says I'm running Posh v3.I am interested in the new ADDS cmdlets around replication,...

View Article

Getting the systray \ toolbar count and selecting an item on the toolbar

Any help on getting the systray \ toolbar count and selecting an item on the toolbar

View Article

Using Get-SPWeb with UAG

I'm trying to use PowerShell to upload some local files to a SharePoint document library that's behind a UAG (MS's Unified Access Gateway).  I've got code that I've used before to do this with non-UAG...

View Article

Getting Exception Types that PowerShell might handle

In the traditional try/catch block, you might have something that looks like this:Try {#  some dodgy code}Catch [<exception 1>] {"exception 2"}Catch [<exception 1>] {"exception 2"}Two...

View Article


Software Installation with Powershell???

Hi all, Currently within my org., we use SCCM and VBscripts to install software packages. I am in the process of developping my own skills for various MS exams, but would like to take this (as in some...

View Article

Image may be NSFW.
Clik here to view.

No error on local session error on remote session

I open up PowerShell and type "Java -version" and get the correct output. I already edited my environment variables on the local machine to include java. Now when I enter a remote session and do a the...

View Article


Issue with array length property

Hello. I am new to PS but a novice programmer, mainly in Java. I am modding a script I found on this site to collect the relevant data that I need and am confused by an array length. The code returns...

View Article

Convert PowerShell script as EXE and execute from SharePoint portal

Convert PowerShell script as EXE and execute from SharePoint portal.Read More

View Article


Windows PowerShell Command Builder 2.0 is here !!

This is an updated version of the Windows PowerShell Command Builder. Read More

View Article

Powershell to read a different SYSLOC registry values of machines

Hi ,I require a script which can read a different  sysloc value of registry in different machines  using like switch cases .Once the value of sysloc is fetched i need to run installer. based on...

View Article

Set-Location : Illegal characters in path

Hello,I'm terribly new with powershell and I'm used to PHP Coding.I'm stuck at the following: $path = $env:appdata + "\Thunderbird\Profiles\"cd $pathGet-ChildItem This steps work, but the following...

View Article
Browsing all 8583 articles
Browse latest View live