exception occurred while initializing the installation...
Hi All ,while installing bellow commands i am getting "exception occurred while initializing the installation system.badimageformatexception" exception. i saw solution from google but not understand.I...
View ArticleGoing Crazy, Need help with Powershell script
Here's the relevant section. The problem I'm having is the calculated property for Manager Name and Manager Email is inconsistent.For some users the below is returning empty values. Check the...
View ArticleCalling a PowerShell code from Access 2010
I had a program written in VBA which called a PowerShell script to create Exch2010 mailbox accounts for new users. Worked fabulous with Access 2003.We moved our Databases to a newer server with Access...
View ArticlePowerShell Script - Recursively Set / Replace Owner on all Files and Folders...
I just finished my first Powershell Script and thought I'd share for peer review and / or to help others out there trying to do the same thing. Let me know if you have any comments or suggestions on...
View ArticleFind available computer names in domain
Hi all,Where i work we are constantly joining new computers to the domain and sometimes it gets quite tricky trying to find an available name by using AD users and computers to find one.I wanted to...
View ArticleList combobox items based of higher tiered combobox selection
I'm trying to base combobox arrays of previously selected combobox .text.So I have combo box 1 with an array of Building 1, Building 2, Building 3, Building 4 with a button next to it.When the button...
View ArticlePowershell Script for moving 3 part file name according to year and month.
hello, I am not powershell genius I have one folder full of PDF files, something like this, CC_F123486_20100617104742.pdf;last part is 2010 year, 06 is month, I would like to move all files like this...
View Articleregex question with removing 0 infront if it exists
Hi,i was looking at something here recently and wondering if someone knows a way to look for 0 and take next number, but if 0 doesnt exist take next 2 numbers...so say for date you would have201308 and...
View ArticleGet Printer File Version - unable to put syntax together
Good AfternoonI have bits of a script i want to put into a one liner of some sort, the aim is for the script to tell me the version of the print drivers we have on our serversI have a list of servers i...
View ArticleIBM WMI
Hi,I am looking for class/namespace for querying IBM server Hardware information like....controller card...cache battery status...memory modules installed and their status....I was able pull the said...
View ArticleSet-Acl fails in V3
I have a script that was working in V2 but fails in V3 when calling Set-Acl:Set-Acl : Cannot set the ACL because the method that it needs to invoke, SetSecurityDescriptor, does not existIs there a...
View ArticleComparing two PSCustomObject objects
Hello everyone,I'm trying to find out if there is any simple method to compare two PsCustomObjects. Seems that Compare-Object doesn't support PsCustomObject and always reports that objects are the...
View ArticleUpload to SFTP
Hi, I have upload script that can upload file into a simple FTP. BUT now i need to upload file into an SFTP, where post number 22 has to be assigned. How to change the code to adapt this need? This is...
View ArticleLooking for help with PS script to insert into SQL.
The following PS script was written by somone at MS, to enable searching each database in a SQL server, from a list of servers, for SQL database roles that are nested. #*********************** # For...
View ArticleRunning a Do loop while running other code
My explanation may be lengthy, so sorry in advance.This is what I am trying to accomplish: I want to install a program while ensuring a service is turned off, and remains off for the duration of the...
View ArticleAdd Custom View to Event Viewer using powershell
Anyone know how to create or import custom view into the event viewer using powershell?
View ArticleRun WSMan command inside a C# dll
Hi!I'm trying to find out information about how to run powershell commands inside a c# dll, more specifically the WSMan commands, like Get-WSManInstance, and Cim commands like Get-CimInstance. I'm...
View ArticleLoss of popup "gui" after upgrading ti Powershell v3.0
Hi thereI've just upgrade my powershell to v3.0 and when I ran a script that uses parameters, I no longer get the popup box which displays the name of variable, with an input box and the helpmessage...
View ArticlePowerShell Word Table headings
HiI have a script that creates a word table whose data goes over 2 pages. I would like to have the header row at the top of each page. Can anyone help please?
View Articlethe PowerShell Vision in 2007 when PowerShell was one year old
An interesting interview with Jeffrey Snover is archived athttp://archive.org/details/Redmonk-PowerShellOverviewAndRemoteUpdateMicrosoftTechEdITForum307
View Article