Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Get Storage Drives Info for ALL VM's in a Given Cluster

Hello, I am trying to create a script that lists all the virtual machines in a given hyper-v cluster, and it also needs to list the maximum and the current size of the virtual disks that are attached...

View Article


Games Site assumes uploaded files are ASCII

If you save all of your files with Ascii encoding before uploading them to the Games site, they will look fine in the file browser. When you upload Unicode files (which are what PowerShell produces by...

View Article


Allowing all team members to submit code

I signed up our team but I’d like all team members to be able to submit code. Is this possible?

View Article

Reply To: Allowing all team members to submit code

Anyone who joined before the event opened can submit code. If they joined after that, then no, not until the next event. Review the Players Guide for details.

View Article

Should we be able to see other team's scorecards?

Just curious: I see the “#TEST TEAM JUDGE COACH ONLY” team on the leaderboard. When I view that team, or either of the two files listed, there is a Scorecard window that just says ‘Yellow is “off;”...

View Article


Reply To: Should we be able to see other team's scorecards?

I’m playing with the scoring system. Ignore. You’re seeing the window a judge would see only not populated. Move along. Nothing to see here.

View Article

Reply To: Not able to create HTTP listener in windows 7 pc

Thanks Dave

View Article

Reply To: Reuse or bad form?

I personally have no issue with it as long as the author is credited. A link to where you found the code would also be appreciated. With that said, I actually did this in event number 4 of the...

View Article


Install MS Hotfix (not regular update) script

Hello, I am trying to deploy a hotfix on multiple systems and it’s not a standard Windows Update. I’ve put together a script from pieces of others I found online and it works but not on Windows 2008R2...

View Article


Reply To: Should we be able to see other team's scorecards?

The intent, BTW, is for you to be able to see scorecards AFTER JUDGING HAS CONCLUDED. Right now I keep flipping the dates back and forth so I can test. But you won’t see scorecards on that screen;...

View Article

HTML Output

Hi, I am using ConvertTo-HTML | Out-File C:\Scripts\RebootReport.htm for HTML output & I have a server list call computers.txt(Input file). I need separate HTML output for each server.

View Article

Reply To: HTML Output

So how is that going for you? Have you succeeded? Have you tried but failed? What have you tried and in what ways did your attempts fail?

View Article

Replace child object permissions on existing folders/subfolders/files

Hi all, I’ve created a new folder structure for a customer of mine, however due to the customer forcing to go to production instead of test there were some small issues concerning permissions on...

View Article


Reply To: Replace child object permissions on existing folders/subfolders/files

http://vernanderson.wordpress.com/2012/03/29/toggle-folder-inheritance/ I made this a while back maybe it will be useful. But in my findings the PowerShell way of setting folder and file permissions...

View Article

Reply To: Replace child object permissions on existing folders/subfolders/files

Hey Vern, Thanks for the quick reply. The problem however isn’t with the Enable/Disable enheritance from parent folder as described , but the tick box below [when looking at the security settings for...

View Article


Reply To: Install MS Hotfix (not regular update) script

What error messages are you getting?

View Article

Reply To: Get Storage Drives Info for ALL VM's in a Given Cluster

Try this Get-VM | foreach { $VMname = $psitem.Name Get-VMHardDiskDrive -VMName $VMname | foreach { Get-VHD -Path $_.Path | select @{N='VMname'; e={$VMName}}, Path, Size, FileSize } }

View Article


Reply To: Input Box input a String

On a side note, I’ve recently been told that these sample scripts worked fine in PowerShell 2.0, which was probably current when they were posted.

View Article

Reply To: Replace child object permissions on existing folders/subfolders/files

Update: I think I have found the solution. While not completely using PowerShell, it seems to be the quickest solution. Tipped by Vern’s post above and searching, I found this article which does what...

View Article

Reply To: Replace child object permissions on existing folders/subfolders/files

Glad to hear it Robert! icacls is still very powerful and the PowerShell method requires first having a “good file” to grab ACLs from in order to set ACLs and that needs work in my opinion. However...

View Article
Browsing all 13067 articles
Browse latest View live


Latest Images