Solved

Unique Time Settings for one Domain PC

Posted on 2014-03-27
4
158 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Ever wondered why Windows 8 and 10 don't seem to accept your GPO-based software deployment while Windows 7 does? Read on.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now