Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unique Time Settings for one Domain PC

Posted on 2014-03-27
4
Medium Priority
?
167 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

971 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