You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whys it got write-host and write-output? Whats the template to achieve? If its for someone to build scripts from then worth having it checking the event viewer and some other bits and pieces
I've got so many little scripts with missing check-bits everywhere I'm really trying to have a "start with this" so it'll be a pattern to use for all scripts (and I'll be slowly updating the library to follow the standards)
Not all the sections are needed for all scripts, but want a copy/paste for "standard" check stuff...where you can delete un-needed stuff. I keep forgetting which scripts have a good "do it this way for xyz task"
RunAsUser...not always needed...but you need to make sure it's init'd if you're going to use it (can't use the native TRMM one when you have HKLM and HKCU registry entries to work with...for example)
Making sure registry keys are there....setting reg keys with ps are a PITA, because if the keys don't exist, you're going to get an error, this simplifies. You have a function...just set all the key path and desired value and off she goes.
etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@NiceGuyIT Whatcha think about this for a template starter for PS...what other things might be missing?