Tags » PowerShell
Simple one-liner, very helpful though!
Import-Module OperationsManager; Get-SCOMGroup -DisplayName “All Windows Computers” | Get-SCOMClassInstance | sort DisplayName | FT DisplayName
This will output just the names of all machines in the “All Windows Computers” group, you can change that name to output the machine names of any other group as well.
#Enter a URL in the function at the bottom of this script Example: Report-SharePointDatabase -ReportURL "http://team/sites/reports"
#The first time you run the script, the script will create a custom list with the report fields in a datasheet view… 337 more words
So this regular expression thing has it’s advantages. Like many things practice makes perfect…
In the past whenever I saw regex I’d flat line… There wasn’t really a need to use it, select-string with a dash of -like, -contains, -split here and there, got me pretty far so why bother eh? 391 more words
We recently had to assist a user who lost a manually added drive mapping after her machine was reloaded. I found this useful command to tell me who the owner/creator of the files are on the server she claimed the files were stored on: 28 more words
Recently I notices on my Windows 10 desktop that I have been using to test all the Windows 10 Insider Preview releases the Windows 10 Universal Mail and Calendar… 412 more words