Running a query against large numbers of computers
I've been using the following query to check on whether a service is running on a small number of servers -Get-Service ov* -ComputerName joeserver01I've just been asked to run this on over 100 servers....
View Articleread a bunch of file and folders and copy them to a new target
I'm very new to programing and have only done small script where i query AD for information and email results. This script is something I've never done.I have to take some code out of SVN via Jenkins...
View Articlemap drive in workgroup error
enviroment: pc1(xp,pc1,192.168.10.1) pc2(xp,pc2,192.168.10.130) pc1,share 1 "c:\ps\ps2test" no need username/password, pc1,share 2 "c:\ps\ps3" need...
View ArticleImport-PSSession, bug or bug-like feature?
Good Morning,I've come across a strange error with the import-pssession cmdlet, and wanted to run it by the experts. I'm using it in a larger account creation script the import the exchange cmdlets...
View ArticleVery Old FTP, Need Password Encripted
We have a very very very old mainframe here and the FTP that can pull from it is also old and I need to pull a couple of files from it on a daily basis using PowerShell (PS.) This is not a problem,...
View ArticleCompare XML values?
I want to apologize if I'm not using the right terminology... please correct me. I have an XML file that I need to parse through to get some data. One of the first things I need to do is get the...
View Articleadding new values to a psobject?
Hi,maybe I'm too stupid but I looked through the web for two days now and I can't find a solution.I created a PSobject and added some properties and values. it looks like this: $script:resultall =...
View Article4 Essential PowerShell Provider Commands for SQL Server
Windows PowerShell commands can be a valuable addition to your SQL Server management tools. Although I don’t think PowerShell is going to replace SQL Server Management Studio (SSMS) anytime soon, it...
View ArticleHow PowerShell Differs From the Windows Command Prompt
You may have noticed a new command-line environment in Windows since Windows 7 — PowerShell. PowerShell is a much more powerful command-line shell and scripting language than the Command Prompt is,...
View ArticleSqlDev PowerShell 101: Getting Started with PowerShell
This is the first in a new series focused on PowerShell for SQL developers. That means using PowerShell to create and/or modify table schema, stored procedures, and indexes. In other words, automating...
View ArticleRun the Access Control App to Configure Windows Remote Management with...
If you need to adjust the Access Control List for utilizing PowerShell commands on remote computers, you'll first need to know how to open the UI for managing and modifying the ACLs.Read More
View ArticleLearn More about PowerShell and Modular Inputs
Recently, we caught up with Joel Bennett, a Windows PowerShell MVP awardee, who also happens to be my teammate on Splunk’s BD Labs team. Joel is the lead developer for the Splunk Add-on for Microsoft...
View Article#PSTip List SQL database mirroring partner using SMO
In an earlier tip, we looked at how to verify if a SQL database is mirrored. Continuing this series on SQL SMO tips series, let us look at how we can list the SQL database mirroring partner...
View ArticleWrite-Host with formated number called from cmd
Hi all,I'm new in PowerShell and I try to display formated number from cmd.Into PowerShell the following command works fine:PS E:\> Write-Host ("{0:N0}" -f 123456789 )123 456 789but when I try the...
View ArticleDownload files from Codeplex with start-bitstransfer
Hello, I'm quite new to Powershell. I want to download some files from the internet. In some cases there is no problem:Getting Windows6.1-KB974405-x64.msu from Microsoft: Start-BitsTransfer...
View ArticleCall a 2nd PS, as another user and bring back paramters
Hi I'm new to PS, but not scripting in general and am trying to create a script to automate our Win7 build process.For various reasons, the machine will be built off the domain, then join itself to an...
View Articlereboot a list of servers and output results to file.
I am new to powershell and i am trying to write a simple script that will reboot a list of machines (XP, and 7) and input the results of the reboots to a text file. I created the below script that...
View ArticleOffice 365 Script binding problem
I am working on a script that doing auto licensing for Office 365 Users, here is the script $password = ConvertTo-SecureString "password" -AsPlainText –Force $credential = New-Object...
View ArticleOdd param behaviour
Hello AllCan anyone explain the following odd behaviourExample 1Param...
View ArticleCreating a Powershell script to add a key to multiple web.config files.
I am attempting to create a script that will update multiple web config files (120) with a new add key value. So far the script is what I have so far, however when I run it. It adds it as a hole new...
View Article