Invoke msiexec on remote machine and get 0x80070005 error
Hi everyone,I'm trying to do a script in powershell that install msi files on remote machines in the same domain. When i use Invoke-Command to run simple cmdlets on remote machine everything works...
View ArticleCreating TextBox objects with a Loop (Inside a function)
Hello All,So recently I've been doing some PS'ing and I've finished los of scripts with GUI's.I've encountered a problem in this script though, I've asked my Company's Senior Developer and He's...
View Articlerole
PS> Import-Module ServerManager PS> Get-WindowsFeature *file*PS> Get-WindowsFeature *powershell*PS> get-WindowsFeature Web* i need server role i tried above commands its working but i need...
View ArticleManage Lync Online with Windows PowerShell
Here's further proof that anything can be managed using Windows PowerShell. Microsoft has released a PowerShell module that allows for management of Lync Online deployments and user accounts.Read More
View ArticlePowerShell Start-Process without taking focus
Earlier this week I had a need to start a process from PowerShell and ensure that it did not take focus. This doesn’t seem to be supported by the Start-Process cmdlet or any other mechanism built into...
View ArticleOpscode Chef™ Delivers Robust Open Source Automation Platform for Windows...
Opscode Announces New Collaboration with Microsoft to Enable Opscode Chef Cookbooks to Take Advantage of Windows PowerShell Desired State Configuration Capabilities, New Version of Opscode Chef Adds to...
View ArticleExecuting (calling) powershell commands through Control-M
Hello,I am new to usage of powershell. I am trying to execute (call) a powershell script through the BMC Control-M batch processing program via a Command Line.The command I am using is: powershell...
View ArticleConneting to Exchange 2010 from win7(different domain)
Hello All,Client: Win 7 EnterpriseClient Domain:ds.swin.edu.auHost server: Windows 2008 R2 EnterpriseSever domain: ex.swin.edu.auExchange: 2010How do I connect to Exchange 2010 with powershell...
View Articlegwmi win32_product error ONLY in win xp
Hi All,I am creating a script to collect some system information for multiple servers. As a part of it, I am collecting softwares installed in group of machines. I am taking the list of softwares...
View ArticleImport from CSV, set Dial in Tab and ad to user
Hi AllI'm going to aplogise in advance for this - its been many years since I've done any coding so am doing a crash-course in Powershell - it will be evident in what I post!I am struggling with...
View ArticleMicrosoft brings Remote PowerShell to Lync Online for commercial Office 365...
Microsoft today released Remote PowerShell for Lync Online. The new features are available for all commercial Office 365 customers.Read More
View ArticleMastering everyday XML tasks in PowerShell
PowerShell has awesome XML support. It is not obvious at first, but with a little help from your friends here at PowerShellMagazine.com, you’ll soon solve every-day XML tasks – even pretty complex ones...
View ArticleManaging Printers Gets Easier in Windows 8
No matter how fervently I wish printers would just go away, it seems they're here to stay—with all their attendant jams, empty trays, and constant hunger for toner and ink. (Wouldn’t a Print to...
View Articlesql query to mysql
I have queried a database on the network and get the following into my variablePS C:\scripts> $aspent_on...
View ArticleLogging user/machine and session information
Hi all,Firstly, I just wanted to say I'm an absolute Powershell newbie, and secondly that this site is a great repository of knowledge by those way smarter than me! Anyway, I am a Network Admin at a...
View ArticleVerifying .NET usage
As part of a security audit, we need to:1. Identify versions of .NET installd.2. Document any application which is using .NETThe guidelines provided to us for (1.) is to get the version of...
View ArticleLooking for a script to pull Storage INQ info from multiple Windows servers
Hi,I am looking for a script that will let me pull the INQ info from multiple Windows servers. The reason being that I need to identify which arrays various Virtual Machines are attached to without...
View ArticleInvoke msiexec on remote machine and get 0x80070005 error
Hi everyone,I'm trying to do a script in powershell that install msi files on remote machines in the same domain. When i use Invoke-Command to run simple cmdlets on remote machine everything works...
View ArticleImport multiple PST files to archive database
I need to create some script for import pst users archives to EXCHANGE 2010 sp1 database.Mail archives stored on single file server \\FILE-SERVER\PST\%Username%\An amount and name of files is different...
View ArticleReport of members of local Administrators group
I found this here: (http://powershell.com/cs/media/p/376.aspx)cls $ErrorActionPreference="SilentlyContinue" Get-Content (ENTER PATH TO YOUR INPUT FILE HERE) | foreach {...
View Article