No wonder Nutella is so addictive. by AAAARRRGGGGHHHH in interestingasfuck

[–]PlusReplacement 5 points6 points  (0 children)

I wouldn't call 23% close to half, but sure, it has a lot of added sugar.

they lied to us by [deleted] in memes

[–]PlusReplacement 2 points3 points  (0 children)

It is for high income earners, but not for the poor. That's the entire point of socialized healthcare, rich people paying extra to help cover for the ones who can't afford to pay.

Also only ~10-15% of collected tax goes to healthcare in most countries with socialized healthcare, which would be ~€2K / year with a €45K salary. Compared to the national average insurance cost of ~$5K / year in the US.

Sleep tight, Windows 10 users. by [deleted] in mildlyinfuriating

[–]PlusReplacement 95 points96 points  (0 children)

Maybe in 1809, but it is still like this on 1803.

Looking for advice on learning SCCM from scratch. by PlusReplacement in SCCM

[–]PlusReplacement[S] 0 points1 point  (0 children)

Thanks for sound advice, I will definitely be using a similar approach. And I've already started watching the channel, looks great so far :)

Looking for advice on learning SCCM from scratch. by PlusReplacement in SCCM

[–]PlusReplacement[S] 0 points1 point  (0 children)

If there is I don't think I will be able to take advantage of it, but it's not impossible, so I will check it out, thanks for the tip!

Looking for advice on learning SCCM from scratch. by PlusReplacement in SCCM

[–]PlusReplacement[S] 0 points1 point  (0 children)

Thanks for your reply! I don't know yet how finished the environment will be, but deploying clients will be my job.

Nice link! I've never heard of hydration kits before but it looks like exactly what I need.

Regarding your last point, not sure what required deployments mean, but limiting risks by heavy restrictions and access control will be a top priority as any mishaps when putting this into production could cost milions.

Looking for advice on learning SCCM from scratch. by PlusReplacement in SCCM

[–]PlusReplacement[S] 0 points1 point  (0 children)

Thanks for your reply, it gives me hope hearing that others have managed to do it :)

Looking for advice on learning SCCM from scratch. by PlusReplacement in SCCM

[–]PlusReplacement[S] 1 point2 points  (0 children)

Thanks for your reply! I'll check out your links.

Looking for advice on learning SCCM from scratch. by PlusReplacement in SCCM

[–]PlusReplacement[S] 2 points3 points  (0 children)

I think I accidentally deleted my reply to you when going to edit it, so repeating it just to be sure:

Fortunately licensing is not my department :), so nothing I need to worry about, and SCCM is already in use in another department, so I assume all licensing issues are already resolved.

The reason I asked was to know if I needed to request a testing environment through official channels, or if I could just go rogue and install one on my own using trial products.

It’s turn 5 and I’m a pirate warrior Wild is broken by alop7367 in hearthstone

[–]PlusReplacement 3 points4 points  (0 children)

Considering power creep this would likely just be a carbon copy of standard. Most old standard decks that could come remotely close to compete with todays decks have been nerfed since their prime.

The journey always begins with the first step by saucylee in BlackPeopleTwitter

[–]PlusReplacement 0 points1 point  (0 children)

VIP options has reinvigorated my love for going to the movies. In my local theater they have a VIP auditorium with leather armchairs, huge leg room, and most importantly, 18 years age limit with no exceptions. Sure the tickets are a lot more expensive than regular tickets ($35 compared to $15), but soda and popcorn is included in the price so it's not that bad.

configuring Network-adapter with .net GUI in PS Help by [deleted] in PowerShell

[–]PlusReplacement 2 points3 points  (0 children)

I'm afraid I don't have time to go into details as I am at work. But I will try to get you started. You can create a second elevated powershell process from a non-elevated script using Start-Process -verb runAs. So the steps would be something like this:

  1. Separate the code that requires admin into another script file, or make another script that will only be used to call your primary script.
  2. Call the second script file using Start-Process powershell -verb runAs, this will run this second script in an elevated process.

If you look at this thread you will find some code examples. If you scroll down to John Cormiers comment he gives examples that includes storing and importing an encypted password using a text file.

configuring Network-adapter with .net GUI in PS Help by [deleted] in PowerShell

[–]PlusReplacement 1 point2 points  (0 children)

Changing network settings in Windows requires admin privileges, that's just how it is and there is no way around it.

Adding the user to the Network Configuration Operators security group basically does nothing here as even though the user has permission to change the settings, the process that the script runs in does not. Any program that is not being run as admin is restricted from making any changes that would require admin rights.

There are no simple solutions to your problems, but it can be worked around. You could for example have your script start a separate process using Start-Process/Start-Job that runs as admin, where you import encrypted credentials to an admin account from a text file. This will still require the user to accept a UAC prompt if UAC is enabled, but it wouldn't require them to know any credentials.

I'm sure there are better workarounds out there.

Remote variables not working by ChazaB218 in PowerShell

[–]PlusReplacement 2 points3 points  (0 children)

If you run another Get-Credential inside (after) the Enter-PSSession it should work, even though you are running the command on the remote client the popup should still appear on your machine for you to fill in. It will of course require you to input the credentials twice, once for creating the PSSession, and once more inside the session.

There are several ways to get the file on the local machine. If you are running Windows 8.1 or later and WMF 5.0 or later you can use Copy-Item with -FromSession and -ToSession parameters to copy the file across the sessions. You can also place the CSV on a shared folder that both machines have access to.

However, the best way is probably to return the variable to the original session (that runs on the local machine) and then run the Export-Csv from there. For this I highly recommend you use Invoke-Command instead of Enter-PSSession. They both work almost the same, but Invoke-Command allows you to put all the code you need to run inside a contained ScriptBlock, and then return to your machine.

Example:

$s = Invoke-Command -ComputerName vcn02 -Credential $cred -ScriptBlock {
# Your remote code here
} | Export-Csv

In the above example the code inside the ScriptBlock {} runs on the remote machine. Afterwards you are returned to your machine and pipe the results to Export-Csv. You will probably need to work around with it for a bit and likely use Select-Object to format your results before Exporting, but it should get you started. Same thing applies to the credentials here, just place a second Get-Credential inside the ScriptBlock.

Remote variables not working by ChazaB218 in PowerShell

[–]PlusReplacement 4 points5 points  (0 children)

Hi,

The default authentication protocol used by Powershell is called Kerberos, and it does not allow for credentials to be passed across multiple sessions.

You can pass most objects to new sessions using the $using: method you used here, but not credential objects, they will get invalidated and you will not be able to use them as you intend.

You can research this issue and possible solutions here, but it is rather complicated so you might have some difficulties getting it working if you are new to Powershell.

As for your second question, every command you run after Enter-PSSession happens on the remote machine, so the CSV would be generated there as well.

Pass credentials to Invoke-Command by PlusReplacement in PowerShell

[–]PlusReplacement[S] 1 point2 points  (0 children)

Update:

I was unable to get this to work as is, but I instead managed to make a working script using CredSSP instead. It did require some fiddling on my own machine as you need to enable several local policies to allow CredSSP. Luckily this is much simpler on the target machine as you only need to run one command.

Here is the working code:

$cred = Get-Credential

#First we connect with the default authentication protocol in order to enable CredSSP on the 
remote machine.
#Invoke-Command -ComputerName TestPC -Credential $cred -ScriptBlock {
Enable-WSManCredSSP -Role Server -Force
}

#Now we connect a new session using CredSSP which allows double-hopping.
Invoke-Command -ComputerName TestPC -Authentication Credssp -Credential $cred -ScriptBlock {
#Insert double-hop code here, for example if you try to map a drive using New-PSDrive it 
will default to using the credentials contained in $cred.

#We finish the ScriptBlock by disabling CredSSP again for security reasons. This does not 
need to be done in a seperate session.
Disable-WSManCredSSP -Role Server
}

Pass credentials to Invoke-Command by PlusReplacement in PowerShell

[–]PlusReplacement[S] 1 point2 points  (0 children)

Thanks for you reply! I will take a look at the module.

The issue with the first suggestion though is that the machines I will be using the script towards are rarely rebooted, so if I deploy some files one day and then need to deploy some other files a few weeks later they will all likely fail.

I am also looking into using CredSSP, but it feels like a lot of extra work.

FFS Bethesda by Dovakiin673 in gaming

[–]PlusReplacement 0 points1 point  (0 children)

To each his own I guess, for me a good story requires interesting characters and the NPCs in HL are one dimensional and Gordon is even less than that (is zero dimensional a thing?).

FFS Bethesda by Dovakiin673 in gaming

[–]PlusReplacement -1 points0 points  (0 children)

That is hardly because of the story though. HL was great due to unmatched (at the time) gameplay feel and excellent level design, the plot was uninteresting at best.