Need a PowerShell Consultant
We are working on a special HP infrastructure project and are in need of a great PowerShell developer for 6-8 weeks.
View ArticlegetElementsByClassName???
This is the strangest problem I've ever encountered. The following is the code in question:$ie = New-Object -ComObject InternetExplorer.Application$ie.Visible =...
View ArticleLearning PS - this is what I want to do and below that is what I have- any...
List the last 50 entries in the System log using Get-WinEventOutput 2 blank linesList the last 50 entries in the Application log using Get-EventLog, sorting by IndexOutput 2 blank linesUsing pipes,...
View ArticleconvertFrom-Json is not recognized as the name of a cmdlet
I'm trying to use the convertfrom-json cmdlet and when I attempt to use it on windows 7 in powershell, i get that it is not recognized. I have read:The Microsoft.PowerShell.Utility module is installed...
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 ArticleConvertFrom-Json cannot read my Json
I have posted the attached json on two validation sites and it was validated but if I pass it on the pipeline to convertfrom-json I get an error. Other json files I have tried work. { "Cars": [...
View ArticleBest way to install roles and features in server 2008 r2
Hi All,I want to install below roles in server 2008 r2. I use import-module servermanager, add-windows feature myroles_and_features. Here are the roles and...
View ArticleCopy sections from a text file out to another text file
I'm new to powershell, but I need to read a text file and copy sections out to another text file. Is this possible? I need to read the first text file line by line until I come to a specific word,...
View ArticleMy Options for Invoke-Command
I'm running into a real road block. I need to execute a method on a .NET COM object remotely. The only way I know to do this on a remote computer is through invoke-command. The problem is security My...
View ArticleOut-Gridview to Excel with column headers
I am running an external application that creates a Powershell Out-Gridview, perfoms sendkeys for ^a and ^c then pastes the values into a new instance of Excel.Works fine, but would like to include the...
View Articlestart-CMPackageDeployment is broken, how to bypass?
I am looking for some help or ideas. We used Greg Ramsey's script as the base to handle the scenario in the subject, unfortunately the Cmdlet to do the same for legacy packages seem to be broken by...
View ArticleExtracting Cisco hardware data from Rancid
Hi all,I have extracted data from RANCID using egrep across the CVS to provide information on the device FDQN, Chassis Type, Serial No and the part number and serial numbers of any cards or slots...
View ArticleClearing only Variables if they are not null
So, either i'm missing something or it's just not possible in the fashion i'm doing it. So I take all the variables I have and put them in an array like $vararray = @("A","B","C","D")Then I tried...
View Article$PrinterList = IMPORT-CSV C:\printersL.csv
Need to include a csv file command belowLocation.ps1$printer = Get-WmiObject win32_printer -Comp PPR235QFLS01| Where-Object { $_.name -eq "OTT235Q-354A-X7535" }$printer.Location =...
View ArticleSpeed up powershell script with PrimalForms
Hi,i wrote a script that requires user interaction, the gui was designed with Primalforms. The user can run the script with a simple desktop link.The first time i run the script the start takes ca....
View ArticleOutput to SQL
Hi,I have a script that will query WMI on my servers and return key metrics (disk space, memory use etc) to a SQL database. I have the basics and can successfully write to the SQL database but I've...
View ArticleNeed help putting a Log file and Error codes
Hi there guys. I am a rookie in PS and i need some help of you.I have this script below to copy files/folder from one location to a list of servers, and i have 2 problems. The firts is to put some...
View ArticleHashtable export-csv format output
Hi, I have a Hashtable that looks like this:NAME;VALUELibraryA;345LibraryB;867LibraryC;858RegionalLibraryT;156RegionalLibraryY;99LibraryG;689 This is not the order in which I created the Hashtable,...
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 Article