Solved

Unique Time Settings for one Domain PC

Posted on 2014-03-27
4
162 Views
Last Modified: 2014-04-20
We have a process that runs on a domain PC that usually completes at 4AM in the morning and generates a time stamp on process records.  We'd like these records to show the previous day's date. The application developer tells us to simply set the clock on the PC accordingly so it is 5 hours behind current local time. The challenge is that since it's in the domain, the GPO keeps resetting the time.

Any suggestions on how to force this single PC to a different time setting?

Thanks,
  Troy Taylor
0
Comment
Question by:tset63
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Christopher Jay Wolff
ID: 39959739
I figure you want the files timestamp to change to previous day.  If you are familiar with Powershell, you can do it.  Depends on the details of your process of course.  After the process is done, add the type of Powershell script referred to here to change a file's timestamp.  This way your PC can keep the correct time, which should prove useful down the road.
http://blogs.technet.com/b/heyscriptingguy/archive/2012/06/01/use-powershell-to-modify-file-access-time-stamps.aspx

You may want to investigate the use of

 -Uformat parameter for Get-Date.  Open your powershell window and type ...

Get-Help Get-Date -full

and you will see a complete list of the parameters.

Is this helpful?  Please let us know.
0
 
LVL 9

Expert Comment

by:Christopher Jay Wolff
ID: 39959861
I should have added that obviously in his script he is changing to the current time.  For your application, you would have to either pick a constant like 11:59pm previous day, and set all records to that, or backdate only day and date and hour leaving minutes alone.  Any number of ways.   If you are stamping records in a database you should have some System variables with which to work in your db, to get time.
0
 

Accepted Solution

by:
tset63 earned 0 total points
ID: 40001401
I was able to set the timezone 5 hours behind on the PC control panel so that the report date would be as desired.
0
 

Author Closing Comment

by:tset63
ID: 40011172
Sometimes the simple answer is the right one.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The default behavior of the User Account Control (UAC) dialog is to disable (gray-out) the rest of the desktop when prompting for elevation. This is known as secure desktop. There are reasons that you may want to disable this secure desktop behavior…
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The goal of this Micro Tutorial is to help navigate beginning users with the app store on Windows 8. It will explain exciting features how to maximize your PC through these apps. This will be demonstrated using Windows 8 operating system.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question