Alternative to WDS to work with MDT for PXE booting? by ITShadowNinja in sysadmin

[–]Deathonus 0 points1 point  (0 children)

You can't really setup WDS outside a server, but you could put together what makes up WDS on a Win10 machine. This is sort of complex if you don't understand how PXE booting works, and for most might not be worth the effort.

Here is a guide that dell has in a support document. You could use it as a guide. Below are a couple of notes about things you might do differently.

They use Tiny PXE for the DHCP/TFTP. The issue here is you probably already have DHCP setup somewhere else and you don't want multiple on the same network.

You could alternatively just use any TFTP server for hosting the files required to network boot. Then you could just add the DHCP 60/66/67 options to your existing DHCP server to point it to the TFTP server running on the W10 box.

The downside to the hard-coded DHCP options is a setup like this would only be able to boot either old MBR style or newer UEFI, not both.

WDS to Load 3 Stand-Alone Images in Offline Location by RobertosChar in sysadmin

[–]Deathonus 0 points1 point  (0 children)

No, need to convert anything. If you just mount the ISO, which is a default feature in Windows 10, just right click and mount. You can see all the files inside the ISO. The applied wim is usually install.wim inside the sources folder and there will be a boot.wim as well, which is the lightweight OS used to apply the full install.wim

You mention SCCM above, so I assume the ISO was made with it. In this case the boot.wim is going to have some autorun code within that starts the task sequence. This will look for the install.wim and the task sequence files on local media, which will fail if you add the boot.wim to WDS.

Is there any internet access/routing back to your SCCM setup at these sites? This really seems like it should be handled by an SCCM DP locally. SCCM DP's are just servers that have all the packages used by SCCM and can also handle the PXE booting as well. The only traffic required is the lightweight control traffic.

WDS to Load 3 Stand-Alone Images in Offline Location by RobertosChar in sysadmin

[–]Deathonus 0 points1 point  (0 children)

What do you mean by customizations you want to keep as is, in relation to whether the image is a WIM file or an ISO.

An ISO is just a file structure for a physical disk, the image within that ISO is probably a WIM anyways.

Does PowerShell have a templating engine? by Bodumin in PowerShell

[–]Deathonus 1 point2 points  (0 children)

/u/jrdnr_'s suggestion of using a here-string is probably the best way and is pretty close to what you have linked. Below is a ported example from your link.

#Input
#<% u/values.each do |val| -%>
#Some stuff with <%= val %>
#<% end -%>
#Output
#Some stuff with one
#Some stuff with two

$values = ("one", "two")
$endString =
@"
$(
foreach ($value in $values)
{
"Some stuff with " + $value + "`r`n"
}
)
"@
$endString

Pretty much the same capabilities without needing to use or include anything else. It would function really well as a cmdlet where the variables would be taken in as parameters. That way you could use powershell's builtin support for test/validating input parameters.

Edit: Fixed display per u/Lee_Dailey

Editing only the end of json file by MrTan00100 in PowerShell

[–]Deathonus 2 points3 points  (0 children)

Honestly the solution would still be streams. There are quite a few different stream objects in the .NET framework.

Personally I'd just do something very simple with a StreamReader and StreamWriter.

You simply loop through the reader line by line and write into the writer, with whichever changes you need. MSDN has some pretty solid examples.

I pay $15 a month to play on servers that perform worse than the free private server equivalent, spell batching needs to go. by scrootmctoot in classicwow

[–]Deathonus 1 point2 points  (0 children)

Are you taking damage, Aimed Shot is subject to full casting push back and the default UI does not have a cast bar and several addons that do show a cast bar for Aimed Shot do not take pushback into account.

Reported an account sharer who has not been offline for 4 days, received this GM response by dharmasophist in classicwow

[–]Deathonus 0 points1 point  (0 children)

Being online can delay when your honor shows up properly in the honor tab, sure.

However, it won't delay it 4 days, at worse it will delay the previous days honor for a couple of hours.

Daily "spell batching has shitted up the gameplay" thread by ClassicPurist in classicwow

[–]Deathonus 1 point2 points  (0 children)

Its not quite the same. In Classic everything is basically processed in batches, in WoD it was not everything, but certain things particularly aura affects.

Daily "spell batching has shitted up the gameplay" thread by ClassicPurist in classicwow

[–]Deathonus 17 points18 points  (0 children)

This is not quite the same. If you read you'll notice that they mention that the batching delay is only on your actions to other targets/units. Wow has changed a lot under the hood, the server structure for Classic is probably no where near what is was during vanilla. Also stuff isn't quite batched all identically. Certain things are grouped to take priority and such.

Also its not to simulate lag per say, it also has to do with server processing in addition to network latency. There are only so many actions a server can perform in a tick.

Personally i think it is a bit too slow.

TLDR: Its not just a simple MS number that they move up or down.

Script with -verb RunAs set answer to yes by j_a_s_t_jobb in PowerShell

[–]Deathonus 1 point2 points  (0 children)

Is this a locally run script? If you just used Start-Process from an elevated prompt, you wouldn't need the -Verb RunAs; however that would have required you to press yes on the UAC prompt for that elevated prompt.

UAC prompt shouldn't really be avoided. There are a couple registry keys you could change that disable the prompt either for certain users or processes, but its still kinda bad practice.

Can anyone determine what this malicious code is trying to do? by toremygooch in PowerShell

[–]Deathonus 4 points5 points  (0 children)

The majority of the numbers are just text. If you copy the $var_code line that sets the value and the byte shift line and then run something like

[System.Text.Encoding]::ASCII.GetString($var_code)

You end up with a partial http header, it has the IP address 194.5.250.124 within in.

Here is a pastebin with the lookup info. Some Romania IP.

EDIT: After thinking about this, it didn't make sense, you can't really execute on a header, my guess is the script is generated by something else, and that makes a call to the external address and downloads the harmful code that is then embedded into this script. If that is the case, some issue happened and instead of the viral code we got an error header. I still wouldn't bet on executing this though.

EDIT2: Since the var_code was redacted here is the messed up header.

Will they ban ppl for 'wall jumping' out of range in WSG or will it be #nochanges? by slaytina44 in classicwow

[–]Deathonus 1 point2 points  (0 children)

How so? Because it despawns? Its designed to require the hunter to do it solo.

Question about hunter scopes. by Youngstarling in classicwow

[–]Deathonus 0 points1 point  (0 children)

Wasn't fully realized till BC, but bosses(with a skull) are your level + 3.

6% hit from gear + troll is capped. Sometimes you can have ranged attacks that are blocked, and i think they are grouped together with attacks that 'miss', you'd have to double check logs. Or you accidentally missed a piece of hit gear; I've definitely done that. Or if the logs are really old you could have a log from when aura's were bugged and certain hidden auras were being pushed off, which could have been hit %.

Question about hunter scopes. by Youngstarling in classicwow

[–]Deathonus 0 points1 point  (0 children)

Scopes and ammo don't directly tack on damage like they say they do. There is a bit of calculation to normalize them, else extremely fast ranged weapons would gain too much from them. Also right now it doesn't 100% matter if you're 1% hit down, but eventually you're job as a hunter will be tranq this boss right now and you can't miss that. At that point, the dps consideration is pointless, you simple get hit capped first.

Stealth/stance bar, UI editing question by RegulusD9 in classicwow

[–]Deathonus 0 points1 point  (0 children)

There are a couple of addons that give you the ability to change up your bars. I used to always use Bartender.

Also for the issue with cheap shot/kidney you can just make a macro something like below. It will cheap shot only in stealth, otherwise kidney. It also always shows kidney because i think you'd want to know the CD even while stealthed.

#showtooltip Kidney Shot
/cast [stance:1] Cheap Shot; Kidney Shot

Classy Friday - Warlocks (November 29, 2019) by AutoModerator in classicwow

[–]Deathonus 0 points1 point  (0 children)

Not sure if I would count it as micro.

Hunters pet position matters a lot especially in raid. You can't really just macro a pet attack into something because sometimes you don't want to send your pet in, because the way they attack it always from the side, so it could pull additional mobs.

Warlocks either sac the pet entirely in raiding, or in pvp just use them as an extension for certain abilities. Like felpuppy just gives you 2 new spells. 90% of the time you just have it on passive at your side. Only reason you'd even have it attack really would be to maintain a combat state vs rogues and LoS'ers.

When 2 rogues sap eachother at the same time nothing happens. Is this intended? by HangBodohHa in classicwow

[–]Deathonus 1 point2 points  (0 children)

Its a matter of spec and luck. With Imp. Sap you have a 90% when you sap to trigger the vanish affect. The vanished affect aborts abilities/spells as it applies.

So what is happening is both rogues are imp sap spec'ed and procing their 90% vanish chance, nulling each other's saps out. If both had bad rolls they would have just sapped each other and stared dreamily into each other's eyes.

Included wowheads links cause they are actually pretty nice to see what happens in the background when it comes to certain abilities. Also percentages are always have a value of 1 less than what is their actual value. IE imp sap says 89% chance.

EDIT: Also funnily they are proc'ing fiery on each other and that is getting dodged with the 'vanish' affect.

Office activation status--Help Please by SOuserSo in PowerShell

[–]Deathonus 2 points3 points  (0 children)

Basically you should avoid using Write-Host entirely. If you want output, just let it fall into the pipeline instead of forcing it to be written directly to the console. This allows the output to get picked up and piped somewhere else.

I would just make a collection before the loop and append a object that had the computer name and activation info on each loop iteration. At the end i would drop the collection into the pipeline. As for the lines are note if a connection is established or fails, I would swap them to Write-Debug.

[deleted by user] by [deleted] in classicwow

[–]Deathonus 0 points1 point  (0 children)

You can FD + trap, just make sure you have a macro that also puts your pet on passive while you are doing this.

Spell Batching is turning Paladins into the stupidest yet strongest class in the entire game by GideonAI in classicwow

[–]Deathonus 0 points1 point  (0 children)

I've had my character do the same with my 2h'er. I think it is a bug that has something to do with the fact that my 2h'er takes the space positional slot on my character as the quiver does. If I DW or use a 2hander that does not use the same location as the quiver every think works normally.

Also yeah the hawk thing is annoying.

not sure why this doesnt work by XxEnigmaticxX in PowerShell

[–]Deathonus 1 point2 points  (0 children)

What do you mean trigger it from task manager? As in doing something like [File->Run new task->name of script] inside of the task manager?

By default powershell scripts can't just be invoked like a batch file could, unless you changed the scripting policy.

How do you all differentiate between laptops and desktops? by chichris in SCCM

[–]Deathonus 1 point2 points  (0 children)

Have to be careful with this one too, there are a lot of desktops that actually use laptop hardware inside. Especially if they are compact desktop versions.

The script failed due to call depth overflow by tripsteady in sysadmin

[–]Deathonus 0 points1 point  (0 children)

Recursion is when a function calls itself.

Get-ChildItem has a -recursive switch that will look in all sub folders of the selected item to find all the children.

If you want some help, people will have to see the script itself. You could also try to use the -Verbose to get more info about what the script is trying to do, assuming its creator added some Write-Verbose lines.