Solved

Unique Time Settings for one Domain PC

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
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…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.

863 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

18 Experts available now in Live!

Get 1:1 Help Now