Looking for some help with a foreach loop script.
I’m looking to get a list of the names of all available modules, and then print them to a text or csv file. After that, I want to take that file, and run a foreach loop that will go through each name...
View ArticleVMWare vCheck log parser
submitted by /u/omrsafetyo [link] [comments] The post VMWare vCheck log parser appeared first on How to Code .NET.
View ArticleAppVolumes 2.x Powershell Module
submitted by /u/tjb627 [link] [comments] The post AppVolumes 2.x Powershell Module appeared first on How to Code .NET.
View ArticlePeopleAlreadyKnow: Powershell outputting utf8 files without bom, and...
Many threads were open about this problem (since posh likes utf8 with bom) on stackoverflow. Anyway i found out, knowing what is the bom (the first 3 byte of a file), another possible solution that...
View ArticleExport two exchange IP lists to a CSV
Hi, I am trying to export to csv two IP lists that I imported from the Exchange client access servers. Here is what I have: $cas01 = Get-ReceiveConnector server1securerelay | select RemoteIPRanges...
View ArticleScript for copying folders from multiple user directories on a computer.
Hello /r/powershell. Long story short, I’ve just been told to do some hardware upgrades to users in the next 2 days (some of which are being swapped from XP machines to Win7). I was ordered to only...
View Articleforeach variable Assistance
Hi, I’m trying to optimize my script a little to pull from an array. so I don’t have to copy and paste the same script all the time. See below – the two variables that need to be pulled from the array...
View ArticleFree PowerShell Cookbooks from ISESteroids, Idera, and powershell.com
Free PowerShell Cookbooks I found these today while browsing the ISESteroids website and I had never seen them before. I read through one and it was a great source for template functions. Looking...
View ArticleWindows Anniversary –‘Loading personal and system profiles took ###ms.’
Has anyone figured out where the text line of ‘Loading personal and system profiles took ####ms.’ line is loading from after Windows Anniversary update? I am personally finding it annoying. It does...
View ArticleActive Directory – username change automation?
Hi there! I come to you perplexed about how to handle a situation with AD accounts. I work for a school district and have been making a script to automate the creation of AD accounts and movement...
View ArticlePowershell Script to remove custom contact form
We are using a custom contact form in Outlook, and realized when we moved to Office365, or as we slowly are moving to it, that in Online mode in Outlook, the Contacts section of outlook is slow. Long...
View ArticleHelp Parsing a crazy XML file
I downloaded an XML file from sharepoint. I try to import it so I can access all the elements, with no luck. I’m trying to use the “item” elements. $content = Get-Content sharepoint.xml Gives 3...
View ArticlePowershell Noob, WinRM trust issues
This may not be the best place to ask this, but I’m trying to psremote into some VM-s I’ve made on AWS. I got so far as installing ADDC on my first Vm today, but then messed it up. Made the second...
View ArticleHow can I edit Word documents without Office installed on the target machine?
I have a script to run our monthly maintenance checklist, and it returns a lovely HTML page. Manglement, of course, wants it in a specially formatted Word doc. Since this is run on DCs at several...
View ArticleLooping with arrays
I’m writing a script to help with terminations. I have it working properly (by doing separate Get-ADUser calls and creating new $variables) but I think I can condense the script by using the existing...
View ArticlePost install MDT, Join Domain, Search AD, Change Machine name
Hello Folks, I am slowly getting better with PS but not a kung fu master yet. My current environment, much to my protest, names the workstations; WKS####. I am trying to build a script that will join...
View ArticleI Think I Killed DISM…
So, possible issue that’s been causing me a few headaches. I was working with DISM in Powershell to put some drivers into a boot image for our WDS Server. In the middle of mounting an image, Kaspersky...
View ArticleDSC Resource Kit August Release
submitted by /u/PowerShellChallenge [link] [comments] The post DSC Resource Kit August Release appeared first on How to Code .NET.
View ArticleF7 History no longer in Windows 10 AU?
As per the title, I’ve just noticed what in the new Windows 10 release, I’m not getting the gui history when hitting F7. Anyone else experiencing the same and any ideas on where to look to resolve...
View ArticleCritique my PowerShell tool!
My company has grown to a point that manually managing and creating “on call” schedules has become a major task. This is one part to the ‘bigger picture’ I am building – thought I would share/ask for...
View Article