#PSTip Dynamically hiding a function from the debugger in PowerShell ISE
In this tip, I want to show a dynamic way of doing the same, a way that doesn’t require access to the function code if for any reason you cannot decorate a function with the mentioned attribute. Here...
View ArticlePowerShell v4 Desired State Configuration Cheat Sheet
If you are interested in the new PowerShell v4 feature Desired State Configuration you can download a Cheat Sheet at the Microsoft Download Center.Read More
View ArticleCreate PS script for PS 2.0 on computer with PS 3.0
Hi, I have Win7 and Windows PowerShell 3.0 on my computer.I wonder, can I choose PS version when I create script, like in Visual Studio when i create new project and I choose .Net Framework version on...
View ArticleSQL Servers Service status
Hello everyone.Can anyone offer me some advice on how to check thru a list of servers to check their SQL server service status , started , stopped etc.I need to do this using SQL authentication as I...
View ArticleConnect to SQL Compact Edition (CE) using PowerShell
Hello,I support an application that deploys an .sdf file. I would like to query/edit the contents of the file using PowerShell.I'll assume I'll need at least CE and the SQLPS module installed. I'm OK...
View ArticleProcessor
i want to check processor of all servers but i want remotly for all server . i tired this below script but it show processor of local system every time .i tired with this also -ComputerName parameter...
View ArticleAccessing Oracle Database 11g with Powershell
Hi there Has anyone any experience with accessing a oracle 11g database in powershell? Is there a module which can be downloaded in order to access a oracle database. I want to extract data from a...
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 ArticleParsing column in csv file
I haver a csv file with a column containing host names. Occasionally the host name is shown as a FQDN and I need to remove the domain part ie '.me.co.uk' for those entries. The data comes from...
View Articleworking with csv files
I am having trouble working with a csv file. I was hoping someone might know how to help me. The problem is the first column in my file is all text so when I use get-unique it works on that column....
View ArticleRunning PowerShell in Windows Server 2012
Hello allI have an issue when I run a script on a Server 2012 box with PowerShell v3.0. I have scripts that I developed in PSv2/2008R2 that run just fine when I call to my PS1 from a batch file that...
View ArticleCreating a shortcut as a PIF
Hello,I am trying to create a shortcut however I need the shortcut to be created as a .PIF.Currently I am using the following which will create a shortcut however I cannot get it to work as a .pif as...
View ArticleProxyaddresses
Powershell v3.0 Currently having an issue when trying to replace proxyaddresses.1st I get the proxys$proxys = (get-aduser $username -properties proxyaddresses).proxyaddressesThen I change the users...
View ArticleQuery AD for User Properties from Email Addresses in Text File
I'm new at Powershell and have some code that I've started that is not working. I think I have something out of place. I can pull a list of users from my entire Active Directory. But I need this script...
View ArticleYet another AD bulk script problem
Seems to be a common topic in these parts, but forgive me as I went way over my head with this. I haven't done much powershell scripting in the past and I'd appreciate any help I could get with...
View ArticleProblems consuming parameters by propertyName from ADObjects using Alias
Hi!I have a parameter named "signature" which I want to be able to pipe data to from ADObjects (from the module ActiveDirectory). Adding an alias named "samaccountname" to the parameter "signature"...
View ArticleRunning a Perl program from within PowerShell
I want results from a Perl 'print' command that is in a Perl program that is invoked from within a PowerShell script to appear in the PowerShell window through which I invoke the Perl program.I do see...
View ArticleWant to add more fields
Hi ,the below scripts is working fine now i want to add some more fields in it like Host Name , Model Number , Drivers (like c,d with there space and how much is used ) plz help me with this $servers...
View ArticleTrying to use a conditional statement inside a gwmi win32_usbcontroller...
I am using the below script to see if a particular usb device is connectedthat equals the mfg name. I want to return 2 lists that will show which computers have that mfg name, and which do not. FOr...
View Articlestart a program and run it
hi all,i would like to start a program and run it...for example i would like to run Ccleaner...so i got:& 'C:\CCleaner.exe'this opens the program.. but how do i actually run it?theres a big shiny...
View Article