Viewing 15 posts - 631 through 645 (of 2,694 total)
on my script, after the first line
$domain = Get-ADDomain -Current LocalComputer
add your code
File = "F:\Temp\GroupsInput.txt" #File must contain one group per line with no qualifiers, like quotes.
$group = ""
$groups =...
February 15, 2023 at 6:43 pm
the code I gave above show you how to do it - just adapt to your needs.
February 15, 2023 at 2:00 pm
your try/catch would need to be done differently as it needs to be outside the variable assignment
Constant variables should also be set outside of loops - that is the case...
February 14, 2023 at 8:22 pm
it all depends on one's needs - but normally checkdb is done once a week instead of daily.
as for checksum - its advisable to have it assuming your server can...
February 12, 2023 at 5:17 pm
one thing for you to do is to add compression to the backup - it will speed it up and will reduce the size of files as well.
depending on how...
February 12, 2023 at 2:57 pm
and you may as well tell us HOW you determine which ones are the top 4. e.g. how do you order them on your query so they are on your...
February 9, 2023 at 7:25 pm
That’s why I like you Jeff, you’re such a smart guy 😍🥳
Heh... if I were really smart, I'd just up and retire. That would...
February 8, 2023 at 4:18 pm
Jeffery is a spammer - ignore
February 7, 2023 at 7:06 pm
yup - and in the majority of cases I would also report this main thread to get ride of it - if not for some of the replies being useful.
February 7, 2023 at 4:50 pm
if you are getting 2 emails it means your code is executing the sendmail twice or you are sending to more than one account (including a distribution group) and getting...
February 7, 2023 at 4:48 pm
you are setting $html twice - to different things - so as mentioned before for other things YOU need to DEBUG your scripts to see at what point you got...
February 7, 2023 at 3:25 pm
and what have you tried so far? there are too many examples of sending email from powershell - some full blown as you seem to wanna do.
we are not here...
February 7, 2023 at 1:28 pm
if not spam go read the answers to your original question in reddit - https://www.reddit.com/r/googlecloud/comments/10kloy5/do_entrylevel_cloud_positions_exist/
February 4, 2023 at 11:55 am
you are doing what should never be done - setting the users/group as sysadmin - there is never any need for anyone other than DBA's to have sysadmin.
As sysadmin you...
February 3, 2023 at 10:10 pm
using the trigger you can filter down logging the change when the user is the service account - and only log the other updates (including host name)
BUT any DBA that...
February 3, 2023 at 3:28 pm
Viewing 15 posts - 631 through 645 (of 2,694 total)