How to synchronize system date/time with the date/time on workstation in Windows 7? I am trying to use ADO.Net from devArt to connect to Oracle DB from Windows CE (Compact Framework). I want to use 30 days trial to test it before I buy it.
I am getting this error:
Sorry, your trial period has expired.
Support:
The possible reason may be that the system date/time of the device is
not synchronized with the date/time on your workstation; hence, the
issue can be resolved by setting the same date/time as set on the
workstation.
Please refer to http://windowstipoftheday.blogspot.cz/2010/03/windows-7-automatically-syncronzing.html
FTA:
In the Start menu search field type "Date and Time" and press Enter, this should be bring the Date and Time control panel
In the Date and Time dialog box, click the Internet Time tab.
Press the Change Settings button. Press the Continue button in the User Account Control dialog box (if it displays).
In the Internet Time Settings dialog, click the Server drop-down arrow and select another time server. The default is time.windows.com, try using time.nist.gov and see it works for you.
Press the Update now button to update your computer's clock, and test your computer's
Press the OK buttons close the dialog boxes.
For users with domain accounts, try using this command line command: w32tm /config /syncfromflags:MANUAL /manualpeerlist:time.nist.gov w32tm /config /update (thanks to #user6852928 for this).
Related
I have an Access VBA macro that generates a report, saves it in .pdf and then sends it by e-mail using CDO. Everything works fine if I run it manually or if I set it to be run on Task Scheduler with the security option "Run only when user is logged on". However, if I set the option to "Run whether user is logged on or not" (even with the option "Run with highest privileges") the program crashes on the second line of:
strFileFullPath = CurrentProject.Path & "\Test Report.pdf"
DoCmd.OutputTo acOutputReport, strReportName, acFormatPDF, strFileFullPath
with the error
Microsoft Access can't save the output data to the file you've
selected.
I am pretty sure that this happens because the macro runs with other user in the background. I have been searching for a solution but all I have found is that it is not possible and that I should change for other printing methods, such as PDF Creator (which brings a lot of other issues).
I am using Access 2016 in Windows Server 2012 R2 Standard.
It sounds crazy, but after a few days with no results, I managed to solve my problem just by creating these two empty folders:
C:\Windows\System32\config\systemprofile\Desktop
C:\Windows\SysWOW64\config\systemprofile\Desktop
All the credits to Faye's comment on the bottom of this page: https://blogs.technet.microsoft.com/askperf/2015/02/18/help-my-scheduled-task-does-not-run/
Although the comment regards Excel, it solved my issue on Access. It seems that is related with Office having trouble with running some processes (in my case, a pdf generation) in non-interactive mode (which is the mode that Task Scheduler runs when "Run whether user is logged on or not" is checked).
In Gnome on Centos 7, does anyone know how to disable "Log in as another user" on the lock screen? I can disable user switching using:
disable-user-switching=true
I achieve this be adding:
/etc/dconf/db/local.d/00-user-switching
[org/gnome/desktop/lockdown]
# Prevent the user from user switching
disable-user-switching=true
/etc/dconf/db/local.d/locks/lockdown
# Lock this key to disable user switching
/org/gnome/desktop/lockdown/disable-user-switching
This works nicely preventing the user switching option, but you can still switch users via the lock screen .
The reason as to why I'm doing this is because we're implementing a VNC recording solution. If a second person logs in, they are on a different display and therefore, VNC does not present that display to the client trying to record the screen as the original user stays on display 0 and the new user logged in is on display 1.
e.g.
[support#mymachine ~]$ who
fred :0 2018-09-26 08:27 (:0)
jenny pts/0 2018-09-28 09:43 (192.168.1.3)
pete :1 2018-09-28 08:13 (:1)
So what happens is that Fred logs locks his screen, Jenny clicks on "Log in as another user" and logs in which is fine, but it does not log Fred out. She therefore generates a new display and when you try and VNC, we can only see Freds original lock screen on Display 0 because Jenny has a new Display on 1.
Disable autospawning secondary VTs
In /etc/systemd/logind.conf set these two lines:
NAutoVTs=2
ReserveVT=2
Note that systemd wants logind to always have one VT reserved for TUI login. Setting both values to =1 overrides gdm's ability to spawn on VT1. Cf. systemd for Administrators, Part XVI at the systemd designer's blog.
After reboot, you have VT1 running gdm, and VT2 reserved for TUI login. "Log in as another user" cannot spawn another VT.
Note: this might be a useless answer since it doesn't prevent Xwayland systems (EL8) spawning the login window (on my test box at :1024). Even on EL7 it might not prevent gdm from trying to find another VT. In which case it's a bug in either gdm, or in the Gnome screenlock.
Im hoping i could have a push in the right direction for an issue I'm having. Im not even sure it is possible.
Idea:
Id like to have a batch file that runs on logon to check the logon type that is shown in the event viewer.
The ultimate goal is to allow logon with a keyboard at the station - password entered > logon type checked from event viewer (logon type 2)> if logon type 2 check to see if a USB with a certain serial is connected> if yes allow >if no lock PC right away.
issues:
I have no idea and have not found a way to get the logon type from the event viewer, It will only have to check the newest record.
i have the file that checks for the serial and if not EQU locks PC. its the event viewer I'm not sure on.
Im looking for this in a batch file. or Powershell (if this can be run at logon, i have never used this before)
Thanks for any and all help!!
How can I create a program that controls my computer based on commands which I have entered ahead of time.
For example:
My application should at 6pm enter facebook, enter my user credentials to log me in, and then leave a comment in the comment field which I have entered at 1PM.
Told means commend that I stored in this software.
My background is c++ and I realize programming philosophy since I program in machine language-I'm electrical engineer.
Thanks
Is this just for your own personal usage?
If so, I would advise not actually trying to develop an application yourself for this but instead use a Macro program. About 8 years ago when I was extremeley inexperienced at programming or doing anything, I used some macro programs to create bots in games, so doing something as trivial as logging you in would be simple.
Just have it..
Launch C:/Program Files/Mozilla/Firefox.exe (or something similar)
Press F6
Type: "http://www.facebook.com"
Press ENTER
Check pixel at local XXX x YYY to see if you are already logged in, in which case you don't need to enter your username and password
If you are not logged in, move mouse to coords XXX and left click.
Type username
Repeat for password.
Press ENTER
Navigate to profile.
Check the time on your system. If time is not 1PM, wait one minute and try again.
Repeat above.
Time is now 1PM so post your message.
End macro.
You could make that using a program like Macro Express within about 10 minutes. It also has a Capture editor, so that you can record your own macro and then edit it as you require.
http://www.macros.com/
This answer obviously assumes it is for personal usage.
I'm looking for software that will allow me to write a macro/script to get EasyTether to re-connect my Android O/S phone (Ally) to the internet (desktop PC) when the connection gets dropped. The problem is that EasyTether constantly drops the connection. (Every few minutes - a bit random.) I have checked the forums and many, many people have been having the same problem for a long time.
I want the macro/script to check the internet connection every few seconds, and if there's no connection then do a I right click on the EasyTether status bar icon, and select "connect."
I will write the script. I'm looking for the software.
Thanks for any help.
You could do this with AutoIt. (http://www.autoitscript.com/site/autoit/) You can use the "Ping" function (AutoIt) once every few min/sec/whatever and if it returns 0 you run the subroutine to "click" (AutoIt) on the re-connect menu item.