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 ArticleGames 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 ArticleAllowing 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 ArticleReply 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 ArticleShould 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 ArticleReply 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 ArticleReply 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 ArticleInstall 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 ArticleReply 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 ArticleHTML 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 ArticleReply 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 ArticleReplace 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 ArticleReply 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 ArticleReply 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 ArticleReply To: Install MS Hotfix (not regular update) script
What error messages are you getting?
View ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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