ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Categories
    3. IT Discussion
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • P

      server 2019 + elevated cli in a script

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      1 Votes
      8 Posts
      1k Views
      J

      We prepend our bat and cmd batch files with this code to ensure we are elevated. This code will allow a batch file to elevate itself!

      Credit and a newer version here:
      https://stackoverflow.com/questions/7044985/how-can-i-auto-elevate-my-batch-file-so-that-it-requests-from-uac-administrator/25238418

      :::::::::::::::::::::::::::::::::::::::::::: :: Automatically check & get admin rights V2 :::::::::::::::::::::::::::::::::::::::::::: @echo off CLS ECHO. ECHO ============================= ECHO Running Admin shell ECHO ============================= :init setlocal DisableDelayedExpansion set "batchPath=%~0" for %%k in (%0) do set batchName=%%~nk set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs" setlocal EnableDelayedExpansion :checkPrivileges NET FILE 1>NUL 2>NUL if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges ) :getPrivileges if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges) ECHO. ECHO ************************************** ECHO Invoking UAC for Privilege Escalation ECHO ************************************** ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%" ECHO args = "ELEV " >> "%vbsGetPrivileges%" ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%" ECHO args = args ^& strArg ^& " " >> "%vbsGetPrivileges%" ECHO Next >> "%vbsGetPrivileges%" ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%" "%SystemRoot%\System32\WScript.exe" "%vbsGetPrivileges%" %* exit /B :gotPrivileges setlocal & pushd . cd /d %~dp0 if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1) :::::::::::::::::::::::::::: ::START :::::::::::::::::::::::::::: REM Run shell as admin (example) - put here code as you like ECHO %batchName% Arguments: %1 %2 %3 %4 %5 %6 %7 %8 %9 :::::::::::::::::::::::::::: ::Begin Your Code here ::::::::::::::::::::::::::::
    • WrCombsW

      Windows 7 Pro 32 bit - Low on Memory... Ideas?

      Watching Ignoring Scheduled Pinned Locked Moved windows 7 pro ram 32-bit systems
      116
      1 Votes
      116 Posts
      21k Views
      ObsolesceO

      @WrCombs said in Windows 7 Pro 32 bit - Low on Memory... Ideas?:

      @scottalanmiller said in Windows 7 Pro 32 bit - Low on Memory... Ideas?:

      @WrCombs said in Windows 7 Pro 32 bit - Low on Memory... Ideas?:

      SO correct me here - But If I use a database server instance to compile data into folders and then use a mapped drive to send data to and from on mapped drives then wouldn't I be a fileserver using a database instance - not making it a database server?

      Then you are in even worse shape because this is so ridiculous a court would see it as "intent to defraud" by making a slow, terrible system that makes no sense except to attempt to hide that you are violating a license.

      This would be still having a database server (can you get data from the database? Then you have a server), but coopting the file server protocols to do it turning them into an API and thereby requiring that they be licensed as a server to keep using.

      No matter how you skin the cat here, it's still a cat. There is a database server, it is managing data, and it is getting that data to other machines. That another service is put into that process to hide that is bad programming practice, but doesn't change licensing. Licensing is by use and intent, not visible protocol.

      again - I might not have all of the information here to be able to tell you one way or another as this conversation goes on, I was simply asking -

      Buy a Windows Server license and enough CALs, slap the sticker on the Win7 box, then go home and sleep peacefully.

    • syko24S

      Two Backups using CBT

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      579 Views
      scottalanmillerS

      @wrx7m said in Two Backups using CBT:

      https://helpcenter.veeam.com/docs/agentforwindows/userguide/backup_hiw.html?ver=30
      Says it uses Microsoft's VSS

      yeah, that is the native CBT provider.

    • scottalanmillerS

      Database Server vs File Server: What's Different

      Watching Ignoring Scheduled Pinned Locked Moved file server database server server database
      6
      0 Votes
      6 Posts
      4k Views
      scottalanmillerS

      @WrCombs said in Database Server vs File Server: What's Different:

      @scottalanmiller said in Database Server vs File Server: What's Different:

      @WrCombs said in Database Server vs File Server: What's Different:

      Is it possible for a File server to run a database server ? how would that be classified at that point ?

      No, conceptually that would not mean anything. A file server and a database server are discrete concepts.

      A single operating system can run neither, either, or both. But as servers themselves, they are discrete.

      I gotcha. It was one of those hypothetical questions

      What's messy is that technical file servers are a very, very specific form of database server. Because a file server presents a file system over a network. And a file system is a special case database.

      No one really thinks about this and absolutely no one will talk about file servers this way, but for understanding what is actually happening... file servers are special purpose database servers. And that is very easy to prove.

      So a file server is a database server, but a database server is not a file server. But file servers are so common, unique, and discrete, we treat them as totally different animals and no one considers the two to even be similar.

    • F

      Epson TM-T20II receipt printer - sometimes prints larger cutting off right side of receipt

      Watching Ignoring Scheduled Pinned Locked Moved Solved
      4
      0 Votes
      4 Posts
      774 Views
      F

      We found a solution - setting the Epson printer as the default resolved the issue. Makes no sense. We discovered this because we moved the printer to a different computer and immediately had no issues. Then we realized Windows had set the Epson as the default because in settings this computer was set to "let windows manage my printer." When we went back to the other computer and switched it to the Epson receipt printer as default - voila - no weird issues on the first print.

    • RomoR

      Robocopy script not running from task scheduler

      Watching Ignoring Scheduled Pinned Locked Moved windows 2012 r2 robocopy powershell
      22
      1 Votes
      22 Posts
      7k Views
      RomoR

      @Obsolesce Haven't tried it by running it directly as SYSTEM, it has been run as a user and checked to be run with the highest privileges. As it was when it was working before.

    • siringoS

      Teamviewer alt?

      Watching Ignoring Scheduled Pinned Locked Moved
      17
      0 Votes
      17 Posts
      1k Views
      wrx7mW

      Hosted screenconnect, here. Have been using it for a few years now. Side note- Just added to one of the Macs we have and it works well.

    • DashrenderD

      Moving to Cloudflare proxy

      Watching Ignoring Scheduled Pinned Locked Moved haproxy
      16
      0 Votes
      16 Posts
      2k Views
      scottalanmillerS

      @Dashrender said in Moving to Cloudflare proxy:

      Seriously you want me to buy another domain to fix this?

      Yes, because someone screwed up with the original domain, so yes, you need to either fix that or do something to work around it. Mistakes have costs, this is a pretty trivial one.

    • travisdh1T

      Exchange auto mapped account removal.

      Watching Ignoring Scheduled Pinned Locked Moved auto map account remove exchange
      8
      5 Votes
      8 Posts
      1k Views
      travisdh1T

      @jt1001001 said in Exchange auto mapped account removal.:

      Umm..Where was this like 2 weeks ago when I needed it? Thanks!!!

      Hiding in the 3rd page of Google results, that's where!

    • ILikeCarrotsI

      Anyone start an MVNO?

      Watching Ignoring Scheduled Pinned Locked Moved
      15
      0 Votes
      15 Posts
      3k Views
      scottalanmillerS

      @kevin-k said in Anyone start an MVNO?:

      @bigbear I have an idea to put your money to work.

      he's been gone a long time. Almost a year.

    • SuyeinsS

      Estación de trabajo con 10 segundos de atraso en el reloj

      Watching Ignoring Scheduled Pinned Locked Moved windows time synchronization active directory ntp sntp
      15
      2 Votes
      15 Posts
      2k Views
      dbeatoD

      @scottalanmiller said in Estación de trabajo con 10 segundos de atraso en el reloj:

      @dbeato said in Estación de trabajo con 10 segundos de atraso en el reloj:

      @scottalanmiller said in Estación de trabajo con 10 segundos de atraso en el reloj:

      Anyone know what the normal variance on Windows boxes is when not using a local time source? How close in seconds would we even expect a site to be able to be?

      You can have it up to 5 minutes from the Domain Controller Servers time.

      No DCs. No AD.

      Gotcha, I am still trying to see what is the issue. 10 seconds is almost unnoticeable. What is the purpose?

    • DashrenderD

      Locally hosted email with CloudFlare Origin cert - SMTP?

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      317 Views
      DashrenderD

      @JaredBusch said in Locally hosted email with CloudFlare Origin cert - SMTP?:

      @Dashrender said in Locally hosted email with CloudFlare Origin cert - SMTP?:

      @JaredBusch said in Locally hosted email with CloudFlare Origin cert - SMTP?:

      @Dashrender said in Locally hosted email with CloudFlare Origin cert - SMTP?:

      This is related to my moving to CloudFlare proxy thread.

      The issue is - if the email server only has the CF Origin TLS cert, how will SMTP over TLS work? I would assume that other mail servers might reject that cert because it's not signed by a trusted CA.

      Does this only affect inbound mail?

      I have never actually tested this with Exchange, but I do know that I can tell postfix to send with TLS without configuring any certificates.

      Sure, that's not really secure though, it's TLS with no security.

      As for what it affects - I frankly don't know. For all I know a self signed cert would be fine - but I don't know what happens when you both a assumed allowable cert and a CF origin cert on the same machine.

      Umm I think you misunderstand. When you send, you don't need a cert. Just like you don't need a cert in your browser to access HTTPS pages. the other side has that.

      Yes, I assume you need something valid for the inbound SMTP.

      OK - yeah, I suppose the receiving side is what sets up the tunnel.. Ok good point...

    • jmooreJ

      Windows 1803 Known Issues

      Watching Ignoring Scheduled Pinned Locked Moved windows 10 1803 windows updates microsoft windows [version 10.0.1713
      40
      0 Votes
      40 Posts
      8k Views
      K

      hello,

      I 've had the same issues, and after many attempts and trying most suggestions I 've found online such as uninstall hyper v, remove antivirus, run windows update troubleshooter changing bios settings for virtualisation, and clearing windows>softwaredistribution folder, fixing Windows corruption errors with DISM & SFC tools and restarting bits and windows installer... and nothing seemed to do the trick.. until I thought to try decrypting the C drive i had encrypted with VeraCrypt... and bingo this fixed it for me...

    • J

      Another FreePBX Sangoma Query . . .

      Watching Ignoring Scheduled Pinned Locked Moved
      36
      0 Votes
      36 Posts
      5k Views
      JaredBuschJ

      @Dashrender said in Another FreePBX Sangoma Query . . .:

      @JaredBusch said in Another FreePBX Sangoma Query . . .:

      @Dashrender said in Another FreePBX Sangoma Query . . .:

      all they have to do then is pickup the phone and the call would be there.

      Without even hitting a button to take the call off of hold? WTF?

      What if I need to call someone else first, before taking the call?

      OK OK OK - they might have to push a button, but that wasn't the point. Again you're reading to much into it JB.

      No, I am being specific. There is a huge difference inthe two actions.

      You can set a button to pick up the parked call simply enough.

    • IRJI

      Packetfence Open Source NAC

      Watching Ignoring Scheduled Pinned Locked Moved packetfence nac network access control
      5
      2 Votes
      5 Posts
      868 Views
      dbeatoD

      I have not used it, only provided some guidance in SW for that.

    • wirestyle22W

      IT reporting website for every day users

      Watching Ignoring Scheduled Pinned Locked Moved
      78
      0 Votes
      78 Posts
      6k Views
      wirestyle22W

      @stacksofplates This looks fantastic. Thanks

    • scottalanmillerS

      Zimbra 8.8.12 Released

      Watching Ignoring Scheduled Pinned Locked Moved zimbra zimbra 8.8 zimbra 8.8.12 open source email smtp
      6
      2 Votes
      6 Posts
      2k Views
      scottalanmillerS

      @dbeato said in Zimbra 8.8.12 Released:

      @scottalanmiller said in Zimbra 8.8.12 Released:

      Wow, They release Open Drive and it only works up to NextCloud 13? NextCloud 16 is in RC today. What the heck?

      Yeah, that is weird. Behind the times.

      My level of impressed keeps slipping.

    • M

      How to screen record the session

      Watching Ignoring Scheduled Pinned Locked Moved ffmpeg ssh
      16
      2 Votes
      16 Posts
      3k Views
      black3dynamiteB

      @IRJ said in How to screen record the session:

      @black3dynamite said in How to screen record the session:

      @IRJ said in How to screen record the session:

      @black3dynamite said in How to screen record the session:

      Using the script command can make typescript of terminal session.

      https://www.tecmint.com/record-and-replay-linux-terminal-session-commands-using-script/

      https://noise.getoto.net/2016/06/14/how-to-record-ssh-sessions-established-through-a-bastion-host/

      https://unix.stackexchange.com/questions/25639/how-to-automatically-record-all-your-terminal-sessions-with-script-utility#25725

      User can easily delete though

      What about using something like chattr or SELinux to prevent deletion?
      https://serverfault.com/questions/448891/how-to-prevent-file-owner-from-changing-deleting-their-own-file-linux-centos

      Do you think using auditd would be better?

      https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sec-configuring_pam_for_auditing

      Looks a lot less complicating to use.

    • scottalanmillerS

      Veeam Agent for Windows VSS Snapshot Error with SqlServerWriter

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved veeam vss shadow copy sql server veeam agent for windows windows server windows backup disaster recovery windows server 2012 r2
      7
      0 Votes
      7 Posts
      15k Views
      notverypunnyN

      Our go-to solution for VSS problems is to set up a dedicated snapshot volume. Otherwise we were getting timeouts and M$ does ugly things that don't make sense when VSS doesn't work properly.

    • 1

      How do I force standard 80x25 text mode?

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved linux debian grub kernel
      7
      1 Votes
      7 Posts
      1k Views
      J

      We use ghost adapters to allow EDID hi res with no head attached, I wonder if there is one that forces 640x480? I'll search around...

    • 1
    • 2
    • 154
    • 155
    • 156
    • 157
    • 158
    • 699
    • 700
    • 156 / 700