What Are You Doing Right Now
-
running up 2019 VMs everywhere. why do I always feel that I need to create new servers on fridays??
-
@dafyre said in What Are You Doing Right Now:
@EddieJennings said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
@dafyre said in What Are You Doing Right Now:
@EddieJennings said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
@EddieJennings said in What Are You Doing Right Now:
This will sound super-n00bish, but oh well.
$args
in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.How so?
I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the
$args.count
is higher than it should be, for example.What are you using it for?
I'm working on a script right now that will make use of
start-job
and using$args
lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into thestart-job
scriptblock.Man, it took me forever to figure out how to do something similar!
You could just set the
-scope
of the variable to global...I've never used
-scope
when defining a variable. I'll have to try that out.Me either, lol. Time to research that tip.
That's if you use the
Set-Variable
cmdlet, where you would use-Scope
.You can also use
$<scope>:variable
. For example:$script:userName = "john.smith"
$global:userName = "john.smith"
-
@scottalanmiller said in What Are You Doing Right Now:
Cooking second dinner for the kids.
Is that like Hobbits? What about 3rd breakfast, 2nd lunch, and tea?
-
Goodm orning.
-
@travisdh1 said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
Cooking second dinner for the kids.
Is that like Hobbits? What about 3rd breakfast, 2nd lunch, and tea?
My kids eat three full meals after 7PM!
-
Thinking through an improvement on a script.
-
Was just connected into a site and the display settings changed.
That was fun . getting those to revert back . -
@scottalanmiller said in What Are You Doing Right Now:
@travisdh1 said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
Cooking second dinner for the kids.
Is that like Hobbits? What about 3rd breakfast, 2nd lunch, and tea?
My kids eat three full meals after 7PM!
I knewsss ittss, @scottalanmiller is raisings hobbitsies!
-
/sigh.
This entire day/week/year has been the best and worse i've seen.
i have to make some changes though. -
@hobbit666 said in What Are You Doing Right Now:
@hobbit666 said in What Are You Doing Right Now:
Just bought a Refurb Dell T7500, 2x Hex Core, 64GB RAM, for a test Lab
Just got the shipping email. Should be with me tomorrow.
It's arrived........... Should of checked the size. It's a little big
-
AT&T just skipped their appointment yesterday. Just didn't show up.
-
well.. Calls aren't really coming in quite yet.
No projects have came in yet.
Drinking coffee number 3 waiting for something to do to come rolling in, Been here since 730 this morning.
Ready to go home - Like for reals -
Busy morning here.
-
AT&T land lines down for days, not even bothering to service them!
NEVER USE LAND LINES, THERE IS NO FAILOVER.
-
@scottalanmiller said in What Are You Doing Right Now:
AT&T just skipped their appointment yesterday. Just didn't show up.
Guess they really don't care, and aren't afraid to let everyone know they don't.
-
@scottalanmiller said in What Are You Doing Right Now:
AT&T land lines down for days, not even bothering to service them!
NEVER USE LAND LINES, THERE IS NO FAILOVER.
So.... Never use AT & T?
-
@dafyre said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
AT&T land lines down for days, not even bothering to service them!
NEVER USE LAND LINES, THERE IS NO FAILOVER.
So.... Never use AT & T?
like never ever
-
@hobbit666 Oh fun!
-
@WrCombs i hear you. Good luck
-
@jmoore said in What Are You Doing Right Now:
@WrCombs i hear you. Good luck
Thanks, It's a rough day.
Coffee number 3 went down . Think i might take an early lunch today and just run with it.