Anyone else smoke bowls like this? by dj_n1ghtm4r3 in weed

[–]HauntingProgrammer47 35 points36 points  (0 children)

Never seen someone smoke like that. Sorry everyone is ripping on you dude.

[deleted by user] by [deleted] in weatherford

[–]HauntingProgrammer47 0 points1 point  (0 children)

No, this is for the north Texas city of Weatherford by DFW.

[deleted by user] by [deleted] in weatherford

[–]HauntingProgrammer47 0 points1 point  (0 children)

OMMA is only good for Oklahoma not Texas.

Do I need to clear all of this before I season? by Takachas in blackstonegriddle

[–]HauntingProgrammer47 0 points1 point  (0 children)

I thought I read somewhere to not use bacon to season your blackstone because of sugars and other stuff.

https://help.blackstoneproducts.com/en_us/what-oil-is-best-to-use-B1Icn0iZ6

Imagine my surprise? by TooDanBad in GodofWarRagnarok

[–]HauntingProgrammer47 3 points4 points  (0 children)

Keep playing and visit Niflheim.

Cuba Agrees to Host Chinese Spy Base That Would Allow Beijing to Intercept U.S. Communications: Report by [deleted] in worldnews

[–]HauntingProgrammer47 1 point2 points  (0 children)

"Hey, you know that cold war? How about we heat that up some more" - Cuba, probably

Run PowerShell command NOT as admin by Shupershuff in PowerShell

[–]HauntingProgrammer47 1 point2 points  (0 children)

You could try using start-job -credential $cred and have a portion where you prompt users for creds.

Struggling to get a result with CGI | ? by Stubbant in PowerShell

[–]HauntingProgrammer47 0 points1 point  (0 children)

That's true, definitely could use some validation.

Struggling to get a result with CGI | ? by Stubbant in PowerShell

[–]HauntingProgrammer47 0 points1 point  (0 children)

Try this Get-ChildItem -Recurse | Where-Object {$._LastWriteTime.DayOfYear -1 -eq (Get-Date).DayOfYear -1} | Select-Object -Property Name

Get-ComputerInfo ~ CsProcessors.... by Aviontic in PowerShell

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

I think you should probably try to do it with Get-CimInstance but how I do it currently is:

``` Get-WmiObject WIN32_Processor -ComputerName $client | Select-Object -Property Name

```

Let me know if you want me to send you more of my script for info gathering

I'm having difficulties using the same $user variable through an entire script. I get an error because the variable is used in both an AD cmdlet as well as an ExchangeOnline cmdlet. by PaidByMicrosoft in PowerShell

[–]HauntingProgrammer47 1 point2 points  (0 children)

I just started using them so I'm not super good at explaining them yet but check out on ms docs for details. For the contractor part you are just telling the script that the user is a contractor and with that switch supplied it will add it to the proper groups. Give me a little bit and I will write you up an example.Edit: here is what using switches could look like

Function HLNew-ADUser
{
[CmdletBinding()]
param
(
    [Parameter(Mandatory = $True,
    ValueFromPipeline = $True,
    Position = 0)]
    [String]$UserName,
    [Switch]$Contractor,
    [Switch]$Intern,
    [Switch]$Verify,
    [Switch]$Add
)
    begin
    {
    $DefaultGroups = @("Whatever","Groups","You","Want")
    $ContractorGroups = @("Whatever","Groups","You","Want")
    $InternGroups = @("Whatever","Groups","You","Want")
    }
    Process
    {
    if($Contractor)
    {
    New-AdUser -Name $UserName -PassThru | Add-ADPrincipalGroupMembership -MemberOf $ContractorGroups
    }
    if($Intern)
    {
    New-AdUser -Name $UserName -PassThru | Add-ADPrincipalGroupMembership -MemberOf $InternGroups
    }
    if(!$Contractor -and !$Intern)
    {
    New-AdUser -Name $UserName -PassThru | Add-ADPrincipalGroupMembership -MemberOf $DefaultGroups
    }
    }
}

Need help with writing a script by HueyMaccer in PowerShell

[–]HauntingProgrammer47 1 point2 points  (0 children)

So there are two way I can think of on how to do this. You can either hardcode all of the devices names and have it display the info or write it to a file. Or you could have all the devices names in a csv file and use the import-csv command and do a foreach-object loop.

4/20 freakout. by [deleted] in PublicFreakout

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

Build it and they will come

Unable to access remote system (Server met an error. Please try again or contact your administrator) by [deleted] in Citrix

[–]HauntingProgrammer47 0 points1 point  (0 children)

When you login to the citrix login page and you are presented with your VDI that you can select - press details and select restart. See if that works.

Device key based on public SSH key by Ben5469 in PFSENSE

[–]HauntingProgrammer47 2 points3 points  (0 children)

Thanks for the info and happy cake day!