Loops ForEach and For speed difference and results difference Questions
Hey all, Working with PowerShell and Outlook for a folder that's getting rather unruly. I created a script that used a foreach loop to delete all emails in a folder, When ever i run it though it only...
View ArticlePrint line
Hello!When I search a string in several .txt datas I get the output of the files the string was found. Let's say I find 10 files with the string I was looking for.Now I want to use the output files...
View ArticleMVP top tips: Columns in Remote Access Management, SCOM 2012 Health Script,...
MVP top tips: Columns in Remote Access Management, SCOM 2012 Health Script, PowerShell V5, Associations in SharePoint and Office 365, Sharing Images Phone 8.1 appsRead More
View ArticleMore New Stuff in PowerShell V5: A NEW Way to Construct Things
Usually we can build out a new instance of a .Net object we have to use New-Object and pass the required parameters to accomplish this. Or at least that is the most common approach to the subject. We...
View ArticleLocal User Accounts
Hello Everyone,I am very new to Powershell or even scripting for that matter. We are trying to change the password for a local user account that is disabled for 2000 computers on our domain. When the...
View ArticleArrays and stings and foreach, trying to understand?
It took me over two hours to get this foreach loop to work because there was something about the array that I was over looking. I am not even sure exactly what I did, or more importantly why I had to...
View ArticleSearch Files efficiently
Hi,I am trying to write a powershell script to search and find if the files exist in a given directory or Drive. and then find the fullpath of the file location.In the Filestoscan.txt I have some 700...
View Articlequestion about New-WebServiceProxy over https in powershell 3.x
Good Day!Can someone please help me find an answer on 'How to get the response from the Remedy ARS webservice over https in powershell 3.x' ?One of the ways I've tried is to have the webservice object...
View ArticleUpdating AD users information from a CSV file.
Hi, I have this Excel file with a list of telephones, names, departments and titles which is distributed and updated by the HR department. I want to use import-csv to update the Telephone, Department...
View ArticleUnable to create self assigned certificate for powershell file
I am trying to make a self assigned certificate for my powershell script. Getting below Error:Export-certificate : The term 'Export-certificate' is not recognized as the name of a cmdlet, function,...
View ArticleCopying and inserting text from one file into another into a specific place...
Hi All,I am trying to copy the contents of a file and then paste this content into a specific location within another file. I can copy the contents no problem using get-content and then paste the...
View Article.log file to richtextbox
Hello,i'm searching for the best way to show a microsoft .log file to a richtextbox. if u just do a get-content, i have somthing like that in richtextbox : <![LOG[Raised Program Started Event for...
View ArticleIncorrect Total Folder Size Calculation - Please assist
Guys,I use the below script to calculate a folder size and size of immidiate child folders.My output will be like below. Folder Sizes for "C:\temp"Run on 09/09/2014 12:02:01 PMFolder NameOwnerCreated...
View ArticleWriting a whois for multipel ips
Hi I have started to write some small thingy to run whois with some proxy parameters.Try to use the webservicex.net and the whois function. param([String]$domain)if ($domain -eq "") { $domain =...
View ArticlePowerShell Web Access eliminates location restrictions
IT professionals no longer need to be glued to their laptop to manage their virtual environments. PowerShell Web Access allows professionals to handle anything from a phone or a tablet.Read More
View ArticleChef Brings DevOps Platform and Practices to Windows and Microsoft Azure
Chef, the leader in web-scale IT automation, today announced new integration with Windows PowerShell Desired State Configuration (DSC), enabling developers and operations teams to best implement DevOps...
View ArticleBook: Announcing Windows PowerShell Desired State Configuration Revealed
If you have followed my posts here and/or heard me speaking in the last 6 to 8 months, I have been mostly focusing on Desired State Configuration. At the same time, I was busy writing a book for Apress...
View ArticlePowershell Script - change folder owner based on username from a csv file
HiI've got a Powershell script which allows me to change the owner of a users home drive from it's current owner (administrators) to the user, but it only allows me to do one user at a time.I've...
View ArticleWin32_printer and cross check with csv file and delete printer Zero clients
I am getting the mac address of the zero client and then importing a csv. from there i filter out all records from the printers list that don't match with the mac address. After the printers are found...
View Article