Reply To: Question of Clarification: Folder structure for event 3
Not so simple In a doc. Folder structure look like Department_name Department_Open folder Department_team1 Department_team2i.e. team1 on level1 and team2 on level2. this is definitely look like error....
View ArticleCmdlet listing services' "manufacturer"
Is there a way to list the services’ manufacturer in powershell in a similar format ? I could come this far. However, this doesn’t work for all the services foreach ($item in get-wmiobject...
View ArticlePairs Judging
Because it touch our command honor, I ask here: Can we get any clarifications from someone about judging our Pairs entry: We got -1 for Verbose (agree) -1 for odd peoples handling (disagree) and -1...
View ArticleReply To: Cmdlet listing services' "manufacturer"
First off never use Write-Host like this – you should be outputting objetcs Secondly you never use a backtick after a pipe symbol – the pipe is a line continuation character in its own right Thirdly...
View ArticleReply To: Question of Clarification: Folder structure for event 3
I’m treating the folder structure as what looks intuitively correct: “Department_Name” on level 1, “Department_Open” and team folders on level 2, and team-specific folders on level 3. That said, I...
View ArticleReply To: Pairs Judging
As far as I know, the judges’ decisions are final. I can look over your scripts and offer my opinion, if you’d like, but I’d need to know your team name. Keep in mind that the judges have a lot of...
View ArticleReply To: Cmdlet listing services' "manufacturer"
For shared services that run under svchost.exe, there will be a path to a DLL file under Parameters\ServiceDll in the registry. I’m not sure if you’ll be able to get useful data from...
View ArticleReply To: Pairs Judging
Sorry, forget to include our signature team Schnipersons It will be fine key points about odds: parameter -TwoPalsPerson – everywhere… specifically: line 603 – desision – it is even/odd people count...
View ArticleReply To: Pairs Judging
I suspect that the “code sharing between solutions” judging point basically amounts to “put the shared code in a psm1 file.” for maximum points. Because all of your code is in a single ps1 file (for...
View ArticleReply To: Pairs Judging
Thanks, you confirmed what we suspected This is our first SG entry and we read rule “Make sure your team has one, and only one entry, in the system” too literally. Our Security Investigation event...
View ArticleReply To: Pairs Judging
Max Kozlov wrote: btw, about ? and % aliases rule says “Avoid aliases, except for –Object cmdlets”. True; I interpreted that to mean that it was acceptable to drop the “-Object” part and just use...
View ArticleReply To: Pairs Judging
Advanced event do not state anything about odd peoples handling and this is a place to guesswork. Anyway this could be corrected in one line of code just need replace “while” to “if” …anyway, it’s...
View ArticleReply To: Pairs Judging
Yep, tackling long paths was the first thing I took on for event 3. I figured that once that part was done, the rest would be fairly straightforward by comparison.
View ArticleChange forwarding address using csv file
Function set-ForwardAddresses { <# .Synopsis Changes Forward addresses of mailboxes using detailed from .csv file .Description The cmdlet uses set-mailbox -ForwardingAdrress to process to modify...
View ArticleReply To: Change forwarding address using csv file
Function set-ForwardAddresses { <# .Synopsis Changes Forward addresses of mailboxes using detailed from .csv file .Description The cmdlet uses set-mailbox -ForwardingAdrress to process to modify...
View ArticleFunction from cmd line – specify diff creds?
I am trying to use a function and I’m running it from a command line. I want to have the option to enter different credentials as I have to run it against domain and non-domain systems, as well as...
View ArticleReply To: Using credential param as optional..
I am trying to do this for a function that also collects inventory from systems. I’ve tried adding the code above but I am not doing something right as the function won’t run once I add this in. I did...
View ArticleReply To: Using credential param as optional..
I am trying to do this for a function that also collects inventory from systems. I’ve tried adding the code above but I am not doing something right as the function won’t run once I add this in. I did...
View ArticleReply To: Script – PARAM – prompt for credentials?
Hi Dave, I started back on this and I’m stuck. So I added this to my function: [System.Management.Automation.PSCredential]$Credential So now the function start looks like this, but I’m lost on where...
View ArticleReply To: Script – PARAM – prompt for credentials?
I gave an example of that in the Process block of the code in my original reply. The only difference between that and what you’re doing now is the addition of the foreach ($computer in $ComputerName)...
View Article